org.alfresco.repo.action.evaluator
Class ComparePropertyValueEvaluator

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
              extended by org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator
All Implemented Interfaces:
ActionConditionEvaluator, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
CompareMimeTypeEvaluator

public class ComparePropertyValueEvaluator
extends ActionConditionEvaluatorAbstractBase

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

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

Constructor Detail

ComparePropertyValueEvaluator

public ComparePropertyValueEvaluator()
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 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 type
comparator - property value comparator

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Add parameter definitions

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list

evaluateImpl

public boolean evaluateImpl(ActionCondition ruleCondition,
                            org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionConditionEvaluatorAbstractBase
Evaluation implementation

Specified by:
evaluateImpl in class ActionConditionEvaluatorAbstractBase
Parameters:
ruleCondition - the action condition
actionedUponNodeRef - the actioned upon node reference
Returns:
the result of the condition evaluation
See Also:
ActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, NodeRef)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.