Class CustomParameterConstraint
- java.lang.Object
-
- org.alfresco.repo.action.constraint.BaseParameterConstraint
-
- org.alfresco.module.org_alfresco_module_rm.action.constraint.CustomParameterConstraint
-
- All Implemented Interfaces:
ParameterConstraint
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
public class CustomParameterConstraint extends BaseParameterConstraint
A parameter constraint that reads in a list of allowable values from Spring configuration- Since:
- 2.1
- Author:
- Craig Tan
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
actionService, allowableValues, cache, name
-
-
Constructor Summary
Constructors Constructor Description CustomParameterConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
getAllowableValuesImpl()
void
setParameterValues(List<String> parameterValues)
Sets the parameter values-
Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValues
-
-
-
-
Method Detail
-
setParameterValues
public void setParameterValues(List<String> parameterValues)
Sets the parameter values- Parameters:
parameterValues
- The parameter values
-
getAllowableValuesImpl
protected Map<String,String> getAllowableValuesImpl()
- Specified by:
getAllowableValuesImpl
in classBaseParameterConstraint
- See Also:
ParameterConstraint.getAllowableValues()
-
-