fr.paris.lutece.plugins.document.service.attributes
Class ListBoxManager

java.lang.Object
  extended by fr.paris.lutece.plugins.document.service.attributes.DefaultManager
      extended by fr.paris.lutece.plugins.document.service.attributes.ListBoxManager
All Implemented Interfaces:
AttributeManager

public class ListBoxManager
extends DefaultManager

Manager for ListBox Attribute


Constructor Summary
ListBoxManager()
           
 
Method Summary
 String getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters, Locale locale)
          Gets the part of an HTML form to enter parameters data
 Collection<AttributeTypeParameter> getExtraParametersValues(Locale locale, int nAttributeId)
          Gets extra parameters values for the attribute
protected  Map<String,List<String>> getParameters(int nAttributeId, Locale locale)
          Get parameters map
 List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request, Locale locale)
          Get the value parameters
 String validateValueParameters(List<AttributeTypeParameter> listParameters, Locale locale)
          Validate the value for the parameters
 
Methods inherited from class fr.paris.lutece.plugins.document.service.attributes.DefaultManager
canBeUsedAsThumbnail, getAttributeParametersValues, getAttributeTypeCode, getAttributeXmlValue, getCreateFormHtml, getCreateParametersFormHtml, getExtraParameters, getModifyFormHtml, getModifyParametersFormHtml, setAttributeTypeCode, validateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListBoxManager

public ListBoxManager()
Method Detail

validateValueParameters

public String validateValueParameters(List<AttributeTypeParameter> listParameters,
                                      Locale locale)
Validate the value for the parameters

Specified by:
validateValueParameters in interface AttributeManager
Overrides:
validateValueParameters in class DefaultManager
Parameters:
listParameters - The list of parameters to check
locale - The current Locale
Returns:
null if valid, otherwise message property

getCreateParametersFormHtml

public String getCreateParametersFormHtml(List<AttributeTypeParameter> listParameters,
                                          Locale locale)
Gets the part of an HTML form to enter parameters data

Specified by:
getCreateParametersFormHtml in interface AttributeManager
Overrides:
getCreateParametersFormHtml in class DefaultManager
Parameters:
listParameters - list attribute type parameters
locale - The current Locale
Returns:
A part of the HTML form

getExtraParametersValues

public Collection<AttributeTypeParameter> getExtraParametersValues(Locale locale,
                                                                   int nAttributeId)
Gets extra parameters values for the attribute

Specified by:
getExtraParametersValues in interface AttributeManager
Overrides:
getExtraParametersValues in class DefaultManager
Parameters:
locale - The current Locale
Returns:
The extra parameters values for the attribute

getValueParameters

public List<AttributeTypeParameter> getValueParameters(javax.servlet.http.HttpServletRequest request,
                                                       Locale locale)
Get the value parameters

Specified by:
getValueParameters in interface AttributeManager
Overrides:
getValueParameters in class DefaultManager
Parameters:
request - the HTTP request
locale - the locale
Returns:
a list of AttributeTypeParameter

getParameters

protected Map<String,List<String>> getParameters(int nAttributeId,
                                                 Locale locale)
Get parameters map

Overrides:
getParameters in class DefaultManager
Parameters:
nAttributeId - the attribute identifier
locale - The current locale
Returns:
a map of parameters


Copyright © 2014 Mairie de Paris. All Rights Reserved.