|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator
public class ComparePropertyValueEvaluator
Compare property value evaluator
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase |
|---|
actionConditionDefinition |
| Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
|---|
DISPLAY_LABEL, runtimeActionService |
| Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
|---|
name |
| Constructor Summary | |
|---|---|
ComparePropertyValueEvaluator()
|
|
| Method Summary | |
|---|---|
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 |
| 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, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString |
| Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
|---|
setBeanName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public ComparePropertyValueEvaluator()
| Method Detail |
|---|
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 comparators
public 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 list
public boolean evaluateImpl(ActionCondition ruleCondition,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionConditionEvaluatorAbstractBase
evaluateImpl in class ActionConditionEvaluatorAbstractBaseruleCondition - the action conditionactionedUponNodeRef - the actioned upon node reference
ActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||