org.alfresco.repo.action.evaluator
Class ActionConditionEvaluatorAbstractBase

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
All Implemented Interfaces:
ActionConditionEvaluator, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
ComparePropertyValueEvaluator, CompositeConditionEvaluator, HasAspectEvaluator, HasChildEvaluator, HasTagEvaluator, HasVersionHistoryEvaluator, InCategoryEvaluator, IsSubTypeEvaluator, NoConditionEvaluator, NodeEligibleForRethumbnailingEvaluator

public abstract class ActionConditionEvaluatorAbstractBase
extends ParameterizedItemAbstractBase
implements ActionConditionEvaluator

Rule condition evaluator abstract base implementation.


Field Summary
protected  ActionConditionDefinition actionConditionDefinition
          The action condition definition
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Constructor Summary
ActionConditionEvaluatorAbstractBase()
           
 
Method Summary
 boolean evaluate(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Evaluate the action condition
protected abstract  boolean evaluateImpl(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Evaluation implementation
 ActionConditionDefinition getActionConditionDefintion()
          Get the action condition definition.
 void init()
          Initialise method
 void setPublicCondition(boolean publicCondition)
          Set the value that indicates whether a condition is public or not
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
addParameterDefinitions, 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

actionConditionDefinition

protected ActionConditionDefinition actionConditionDefinition
The action condition definition

Constructor Detail

ActionConditionEvaluatorAbstractBase

public ActionConditionEvaluatorAbstractBase()
Method Detail

init

public void init()
Initialise method


setPublicCondition

public void setPublicCondition(boolean publicCondition)
Set the value that indicates whether a condition is public or not

Parameters:
publicCondition - true if the condition is public, false otherwise

getActionConditionDefintion

public ActionConditionDefinition getActionConditionDefintion()
Get the action condition definition.

Specified by:
getActionConditionDefintion in interface ActionConditionEvaluator
Returns:
the action condition definition

evaluate

public boolean evaluate(ActionCondition actionCondition,
                        org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from interface: ActionConditionEvaluator
Evaluate the action condition

Specified by:
evaluate in interface ActionConditionEvaluator
Parameters:
actionCondition - the action condition
actionedUponNodeRef - the actioned upon node
Returns:
true if the condition passes, false otherwise
See Also:
org.alfresco.repo.action.evaluator.ActionConditionEvaluator#evaluate(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef)

evaluateImpl

protected abstract boolean evaluateImpl(ActionCondition actionCondition,
                                        org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Evaluation implementation

Parameters:
actionCondition - the action condition
actionedUponNodeRef - the actioned upon node reference
Returns:
the result of the condition evaluation


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