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
public class ComparePropertyValueEvaluator extends ActionConditionEvaluatorAbstractBase
Compare property value evaluator- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentServicecontentServiceThe content serviceprotected org.alfresco.service.cmr.dictionary.DictionaryServicedictionaryServiceThe dictionary servicestatic java.lang.StringNAMEEvaluator constantsprotected org.alfresco.service.cmr.repository.NodeServicenodeServiceThe node servicestatic java.lang.StringPARAM_CONTENT_PROPERTYstatic java.lang.StringPARAM_OPERATIONstatic java.lang.StringPARAM_PROPERTYstatic java.lang.StringPARAM_VALUE-
Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinition
-
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
-
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
-
-
Constructor Summary
Constructors Constructor Description ComparePropertyValueEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Add parameter definitionsbooleanevaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Evaluation implementationvoidregisterComparator(org.alfresco.service.namespace.QName dataType, PropertyValueComparator comparator)Registers a comparator for a given property data type.voidsetContentService(ContentService contentService)Set the content servicevoidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)Set the dictionary servicevoidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Set node servicevoidsetPropertyValueComparators(java.util.List<PropertyValueComparator> comparators)Set the list of property value comparators-
Methods inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
evaluate, getActionConditionDefintion, init, setPublicCondition
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Evaluator constants- See Also:
- Constant Field Values
-
PARAM_PROPERTY
public static final java.lang.String PARAM_PROPERTY
- See Also:
- Constant Field Values
-
PARAM_CONTENT_PROPERTY
public static final java.lang.String PARAM_CONTENT_PROPERTY
- See Also:
- Constant Field Values
-
PARAM_VALUE
public static final java.lang.String PARAM_VALUE
- See Also:
- Constant Field Values
-
PARAM_OPERATION
public static final java.lang.String PARAM_OPERATION
- See Also:
- Constant Field Values
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeService
The node service
-
contentService
protected ContentService contentService
The content service
-
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
The dictionary service
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set node service- Parameters:
nodeService- the node service
-
setContentService
public void setContentService(ContentService contentService)
Set the content service- Parameters:
contentService- the content service
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service- Parameters:
dictionaryService- the dictionary service
-
setPropertyValueComparators
public void setPropertyValueComparators(java.util.List<PropertyValueComparator> comparators)
Set the list of property value comparators- Parameters:
comparators- the list of property value comparators
-
registerComparator
public void registerComparator(org.alfresco.service.namespace.QName dataType, PropertyValueComparator comparator)Registers a comparator for a given property data type.- Parameters:
dataType- property data typecomparator- property value comparator
-
addParameterDefinitions
protected void addParameterDefinitions(java.util.List<ParameterDefinition> paramList)
Add parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
evaluateImpl
public boolean evaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
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:
ActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)
-
-