Class ComparePropertyValueEvaluator
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator
- All Implemented Interfaces:
ActionConditionEvaluator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
CompareMimeTypeEvaluator
Compare property value evaluator
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentServiceThe content serviceprotected DictionaryServiceThe dictionary servicestatic final StringEvaluator constantsprotected NodeServiceThe node servicestatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinitionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Add parameter definitionsbooleanevaluateImpl(ActionCondition ruleCondition, NodeRef actionedUponNodeRef) Evaluation implementationvoidregisterComparator(QName dataType, PropertyValueComparator comparator) Registers a comparator for a given property data type.voidsetContentService(ContentService contentService) Set the content servicevoidsetDictionaryService(DictionaryService dictionaryService) Set the dictionary servicevoidsetNodeService(NodeService nodeService) Set node servicevoidsetPropertyValueComparators(List<PropertyValueComparator> comparators) Set the list of property value comparatorsMethods inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
evaluate, getActionConditionDefintion, init, setPublicConditionMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
Field Details
-
NAME
Evaluator constants- See Also:
-
PARAM_PROPERTY
- See Also:
-
PARAM_CONTENT_PROPERTY
- See Also:
-
PARAM_VALUE
- See Also:
-
PARAM_OPERATION
- See Also:
-
nodeService
The node service -
contentService
The content service -
dictionaryService
The dictionary service
-
-
Constructor Details
-
ComparePropertyValueEvaluator
public ComparePropertyValueEvaluator()
-
-
Method Details
-
setNodeService
Set node service- Parameters:
nodeService- the node service
-
setContentService
Set the content service- Parameters:
contentService- the content service
-
setDictionaryService
Set the dictionary service- Parameters:
dictionaryService- the dictionary service
-
setPropertyValueComparators
Set the list of property value comparators- Parameters:
comparators- the list of property value comparators
-
registerComparator
Registers a comparator for a given property data type.- Parameters:
dataType- property data typecomparator- property value comparator
-
addParameterDefinitions
Add parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
evaluateImpl
Description copied from class:ActionConditionEvaluatorAbstractBaseEvaluation implementation- Specified by:
evaluateImplin classActionConditionEvaluatorAbstractBase- Parameters:
ruleCondition- the action conditionactionedUponNodeRef- the actioned upon node reference- Returns:
- the result of the condition evaluation
- See Also:
-