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

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

public class DateManager
extends DefaultManager

Manager for Date Attribute


Constructor Summary
DateManager()
           
 
Method Summary
 java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId, java.util.Locale locale)
          Gets parameters values for the attribute
 java.lang.String validateValue(int nAttributeId, java.lang.String strValue, java.util.Locale locale)
          Validate the value for the attribute
 java.lang.String validateValueParameters(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, getExtraParameters, getExtraParametersValues, getModifyFormHtml, getModifyParametersFormHtml, setAttributeTypeCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateManager

public DateManager()
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:
validateValue in interface AttributeManager
Overrides:
validateValue in class DefaultManager
Parameters:
nAttributeId - The attribute identifier
strValue - The value to check
locale - 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:
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

getAttributeParametersValues

public java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId,
                                                                                 java.util.Locale locale)
Gets parameters values for the attribute

Overrides:
getAttributeParametersValues in class DefaultManager
Parameters:
nAttributeId - The attribute Id
locale - The current Locale
Returns:


Copyright © 2009 Mairie de Paris. All Rights Reserved.