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_PARAMFields inherited from class org.alfresco.repo.dictionary.constraint.AbstractConstraint
ERR_EVALUATE_EXCEPTION, ERR_PROP_NOT_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidevaluateSingleValue(Object value) getDisplayLabel(String constraintAllowableValue, MessageLookup messageLookup) Get the allowed values.voidvoidsetAllowedValues(List allowedValues) Set the values that are allowed by the constraint.voidsetCaveatConfigService(RMCaveatConfigService caveatConfigService) voidsetMatchLogic(String matchLogicStr) toString()Methods inherited from class org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint
getAllowedValues, getType, isCaseSensitive, isSorted, setCaseSensitive, setSortedMethods 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:
toStringin 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:
getRawAllowedValuesin classListOfValuesConstraint- Returns:
- Returns the values allowed
-
getDisplayLabel
- Overrides:
getDisplayLabelin classListOfValuesConstraint
-
setAllowedValues
Set the values that are allowed by the constraint.- Overrides:
setAllowedValuesin classListOfValuesConstraint- Parameters:
allowedValues- a list of allowed values
-
initialize
public void initialize()- Specified by:
initializein interfaceConstraint- Overrides:
initializein classListOfValuesConstraint
-
getParameters
- Specified by:
getParametersin interfaceConstraint- Overrides:
getParametersin classListOfValuesConstraint
-
getMatchLogicEnum
-
getMatchLogic
-
setMatchLogic
-
evaluateSingleValue
- Overrides:
evaluateSingleValuein classListOfValuesConstraint
-