Class RMListOfValuesConstraint
java.lang.Object
org.alfresco.repo.dictionary.constraint.AbstractConstraint
org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
org.alfresco.module.org_alfresco_module_rm.caveat.RMListOfValuesConstraint
- All Implemented Interfaces:
Constraint
- Direct Known Subclasses:
RMListOfValuesConstraint
RM Constraint implementation that ensures the value is one of a constrained
list of values. By default, this constraint is case-sensitive.
- Author:
- janv
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
ALLOWED_VALUES_PARAM, CASE_SENSITIVE_PARAM, caseSensitive, CONSTRAINT_TYPE, sorted, SORTED_PARAM
Fields inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint
ERR_EVALUATE_EXCEPTION, ERR_PROP_NOT_SET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
evaluateSingleValue
(Object value) getDisplayLabel
(String constraintAllowableValue, MessageLookup messageLookup) Get the allowed values.void
void
setAllowedValues
(List allowedValues) Set the values that are allowed by the constraint.void
setCaveatConfigService
(RMCaveatConfigService caveatConfigService) void
setMatchLogic
(String matchLogicStr) toString()
Methods inherited from class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
getAllowedValues, getType, isCaseSensitive, isSorted, setCaseSensitive, setSorted
Methods inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint
checkPropertyNotNull, evaluate, evaluateCollection, getShortName, getTitle, set_shortName, setRegistry, setShortName, setTitle
-
Constructor Details
-
RMListOfValuesConstraint
public RMListOfValuesConstraint()
-
-
Method Details
-
setCaveatConfigService
-
toString
- Overrides:
toString
in classListOfValuesConstraint
-
getRawAllowedValues
Get the allowed values. Note that these are String instances, but may represent non-String values. It is up to the caller to distinguish.- Overrides:
getRawAllowedValues
in classListOfValuesConstraint
- Returns:
- Returns the values allowed
-
getDisplayLabel
- Overrides:
getDisplayLabel
in classListOfValuesConstraint
-
setAllowedValues
Set the values that are allowed by the constraint.- Overrides:
setAllowedValues
in classListOfValuesConstraint
- Parameters:
allowedValues
- a list of allowed values
-
initialize
public void initialize()- Specified by:
initialize
in interfaceConstraint
- Overrides:
initialize
in classListOfValuesConstraint
-
getParameters
- Specified by:
getParameters
in interfaceConstraint
- Overrides:
getParameters
in classListOfValuesConstraint
-
getMatchLogicEnum
-
getMatchLogic
-
setMatchLogic
-
evaluateSingleValue
- Overrides:
evaluateSingleValue
in classListOfValuesConstraint
-