Package org.alfresco.service.cmr.action
Interface ParameterConstraint
- All Known Implementing Classes:
AspectParameterConstraint,BaseParameterConstraint,EnumParameterConstraint,FolderContentsParameterConstraint,MimetypeParameterConstraint,PropertyParameterConstraint,TypeParameterConstraint
@AlfrescoPublicApi
public interface ParameterConstraint
Parameter constraint. Helps to constraint the list of allowable values for a action parameter.
- Author:
- Roy Wetherall
-
Method Summary
Modifier and TypeMethodDescriptionThe implementers are expected to return allowed values in the insertion order.getName()Gets the unique name of the constraintgetValueDisplayLabel(String value) Returns possible constraint values.booleanisValidValue(String value) Indicates whether the provided value satisfies the constraint.
-
Method Details
-
getName
String getName()Gets the unique name of the constraint- Returns:
- String constraint name
-
isValidValue
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. -
getValues
Returns possible constraint values. By default returns getAllowableValues() to be backwards compatible.
-