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 java.lang.String |
NAME
Evaluator constants
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService
The node service
|
static java.lang.String |
PARAM_CONTENT_PROPERTY |
static java.lang.String |
PARAM_OPERATION |
static java.lang.String |
PARAM_PROPERTY |
static java.lang.String |
PARAM_VALUE |
actionConditionDefinitionDISPLAY_LABEL, runtimeActionServicename| Constructor and Description |
|---|
ComparePropertyValueEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(java.util.List 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(java.util.List comparators)
Set the list of property value comparators
|
evaluate, getActionConditionDefintion, init, setPublicConditioncheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNamepublic static final java.lang.String NAME
public static final java.lang.String PARAM_PROPERTY
public static final java.lang.String PARAM_CONTENT_PROPERTY
public static final java.lang.String PARAM_VALUE
public static final java.lang.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(java.util.List 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(java.util.List 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 - 2010 Alfresco Software, Inc. All Rights Reserved.