org.alfresco.service.cmr.action
Interface ParameterConstraint
@org.alfresco.api.AlfrescoPublicApi
public interface ParameterConstraint
Parameter constraint. Helps to constraint the list of allowable values for a action parameter.
Author:
-
Roy Wetherall
getName
-
Gets the unique name of the constraint
Returns:
-
String constraint name
isValidValue
boolean isValidValue(String value) -
Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.
-
Returns:
-
boolean true if valid, false otherwise
getValueDisplayLabel
-
Parameters:
-
value - String
Returns:
-
String
getAllowableValues
-
The implementers are expected to return allowed values in the insertion order.