Class DateManager
- java.lang.Object
-
- fr.paris.lutece.plugins.document.service.attributes.DefaultManager
-
- fr.paris.lutece.plugins.document.service.attributes.DateManager
-
- All Implemented Interfaces:
AttributeManager
public class DateManager extends DefaultManager
Manager for Date Attribute
-
-
Constructor Summary
Constructors Constructor Description DateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AttributeTypeParameter>getAttributeParametersValues(int nAttributeId, java.util.Locale locale)Gets parameters values for the attributejava.lang.StringvalidateValue(int nAttributeId, java.lang.String strValue, java.util.Locale locale)Validate the value for the attributejava.lang.StringvalidateValueParameters(java.util.List<AttributeTypeParameter> listParameters, java.util.Locale locale)Validate the value for the parameters-
Methods inherited from class fr.paris.lutece.plugins.document.service.attributes.DefaultManager
canBeUsedAsThumbnail, getAttributeTypeCode, getAttributeXmlValue, getCreateFormHtml, getCreateParametersFormHtml, getCreateParametersFormHtml, getCreateParametersFormHtml, getExtraParameters, getExtraParametersValues, getModifyFormHtml, getModifyParametersFormHtml, getModifyParametersFormHtml, getValueParameters, setAttributeTypeCode
-
-
-
-
Method Detail
-
validateValue
public java.lang.String validateValue(int nAttributeId, java.lang.String strValue, java.util.Locale locale)Validate the value for the attribute- Specified by:
validateValuein interfaceAttributeManager- Overrides:
validateValuein classDefaultManager- Parameters:
nAttributeId- The attribute identifierstrValue- The value to checklocale- The current Locale- Returns:
- null if valid, otherwise error message
-
validateValueParameters
public java.lang.String validateValueParameters(java.util.List<AttributeTypeParameter> listParameters, java.util.Locale locale)
Validate the value for the parameters- Specified by:
validateValueParametersin interfaceAttributeManager- Overrides:
validateValueParametersin classDefaultManager- Parameters:
listParameters- The list of parameters to checklocale- The current Locale- Returns:
- null if valid, otherwise message property
-
getAttributeParametersValues
public java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId, java.util.Locale locale)
Gets parameters values for the attribute- Overrides:
getAttributeParametersValuesin classDefaultManager- Parameters:
nAttributeId- The attribute Idlocale- The current Locale- Returns:
- The collection of attribute type parameters
-
-