Class EnumParameterConstraint
java.lang.Object
org.alfresco.repo.action.constraint.BaseParameterConstraint
org.alfresco.repo.action.constraint.EnumParameterConstraint
- All Implemented Interfaces:
ParameterConstraint,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Enumerated type parameter constraint
- Author:
- Roy Wetherall
-
Field Summary
Fields inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
actionService, allowableValues, cache, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of allowable values, calculating them every time it is called.voidsetEnumClassName(String enumClassName) Set the enum class nameMethods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.service.cmr.action.ParameterConstraint
getValues
-
Constructor Details
-
EnumParameterConstraint
public EnumParameterConstraint()
-
-
Method Details
-
setEnumClassName
Set the enum class name- Parameters:
enumClassName- enum class name
-
getAllowableValuesImpl
Description copied from class:BaseParameterConstraintGets the list of allowable values, calculating them every time it is called.- Specified by:
getAllowableValuesImplin classBaseParameterConstraint- Returns:
- map of allowable values
- See Also:
-