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
public class EnumParameterConstraint extends BaseParameterConstraint
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 Constructor Description EnumParameterConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>getAllowableValuesImpl()Gets the list of allowable values, calculating them every time it is called.voidsetEnumClassName(java.lang.String enumClassName)Set the enum class name-
Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValues
-
-
-
-
Method Detail
-
setEnumClassName
public void setEnumClassName(java.lang.String enumClassName)
Set the enum class name- Parameters:
enumClassName- enum class name
-
getAllowableValuesImpl
protected java.util.Map<java.lang.String,java.lang.String> 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:
ParameterConstraint.getAllowableValues()
-
-