Class ActionConditionEvaluatorAbstractBase
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
- All Implemented Interfaces:
ActionConditionEvaluator,org.springframework.beans.factory.Aware,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.
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionConditionDefinitionThe action condition definitionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ActionCondition actionCondition, NodeRef actionedUponNodeRef) Evaluate the action conditionprotected abstract booleanevaluateImpl(ActionCondition actionCondition, NodeRef actionedUponNodeRef) Evaluation implementationGet the action condition definition.voidinit()Initialise methodvoidsetPublicCondition(boolean publicCondition) Set the value that indicates whether a condition is public or notMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
addParameterDefinitions, checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
Field Details
-
actionConditionDefinition
The action condition definition
-
-
Constructor Details
-
ActionConditionEvaluatorAbstractBase
public ActionConditionEvaluatorAbstractBase()
-
-
Method Details
-
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
Get the action condition definition.- Specified by:
getActionConditionDefintionin interfaceActionConditionEvaluator- Returns:
- the action condition definition
-
evaluate
Description copied from interface:ActionConditionEvaluatorEvaluate the action condition- Specified by:
evaluatein interfaceActionConditionEvaluator- Parameters:
actionCondition- the action conditionactionedUponNodeRef- the actioned upon node- Returns:
- true if the condition passes, false otherwise
- See Also:
-
evaluateImpl
protected abstract boolean evaluateImpl(ActionCondition actionCondition, NodeRef actionedUponNodeRef) Evaluation implementation- Parameters:
actionCondition- the action conditionactionedUponNodeRef- the actioned upon node reference- Returns:
- the result of the condition evaluation
-