public class ComparePropertyValueEvaluator extends ActionConditionEvaluatorAbstractBase
| Modifier and Type | Field and Description |
|---|---|
protected ContentService |
contentService
The content service
|
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService
The dictionary service
|
static String |
NAME
Evaluator constants
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
The node service
|
static String |
PARAM_CONTENT_PROPERTY |
static String |
PARAM_OPERATION |
static String |
PARAM_PROPERTY |
static String |
PARAM_VALUE |
actionConditionDefinitionadhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServicename| Constructor and Description |
|---|
ComparePropertyValueEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> paramList)
Add parameter definitions
|
boolean |
evaluateImpl(ActionCondition ruleCondition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluation implementation
|
void |
registerComparator(org.alfresco.service.namespace.QName dataType,
PropertyValueComparator comparator)
Registers a comparator for a given property data type.
|
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set node service
|
void |
setPropertyValueComparators(List<PropertyValueComparator> comparators)
Set the list of property value comparators
|
evaluate, getActionConditionDefintion, init, setPublicConditioncheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringsetBeanNamepublic static final String NAME
public static final String PARAM_PROPERTY
public static final String PARAM_CONTENT_PROPERTY
public static final String PARAM_VALUE
public static final String PARAM_OPERATION
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ContentService contentService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void setContentService(ContentService contentService)
contentService - the content servicepublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary servicepublic void setPropertyValueComparators(List<PropertyValueComparator> comparators)
comparators - the list of property value comparatorspublic void registerComparator(org.alfresco.service.namespace.QName dataType,
PropertyValueComparator comparator)
dataType - property data typecomparator - property value comparatorprotected void addParameterDefinitions(List<ParameterDefinition> paramList)
addParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions listpublic boolean evaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionConditionEvaluatorAbstractBaseevaluateImpl in class ActionConditionEvaluatorAbstractBaseruleCondition - the action conditionactionedUponNodeRef - the actioned upon node referenceActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)Copyright © 2005–2018 Alfresco Software. All rights reserved.