Package org.alfresco.service.cmr.action
Interface ParameterConstraint
-
- All Known Implementing Classes:
AspectParameterConstraint,BaseParameterConstraint,EnumParameterConstraint,FolderContentsParameterConstraint,MimetypeParameterConstraint,PropertyParameterConstraint,TypeParameterConstraint
@AlfrescoPublicApi public interface ParameterConstraintParameter constraint. Helps to constraint the list of allowable values for a action parameter.- Author:
- Roy Wetherall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getAllowableValues()The implementers are expected to return allowed values in the insertion order.java.lang.StringgetName()Gets the unique name of the constraintjava.lang.StringgetValueDisplayLabel(java.lang.String value)booleanisValidValue(java.lang.String value)Indicates whether the provided value satisfies the constraint.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the unique name of the constraint- Returns:
- String constraint name
-
isValidValue
boolean isValidValue(java.lang.String value)
Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.- Returns:
- boolean true if valid, false otherwise
-
getValueDisplayLabel
java.lang.String getValueDisplayLabel(java.lang.String value)
- Parameters:
value- String- Returns:
- String
-
getAllowableValues
java.util.Map<java.lang.String,java.lang.String> getAllowableValues()
The implementers are expected to return allowed values in the insertion order.
-
-