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
Fields Modifier and Type Field Description protected ActionConditionDefinitionactionConditionDefinitionThe action condition definition-
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
-
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
-
-
Constructor Summary
Constructors Constructor Description ActionConditionEvaluatorAbstractBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanevaluate(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Evaluate the action conditionprotected abstract booleanevaluateImpl(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Evaluation implementationActionConditionDefinitiongetActionConditionDefintion()Get the action condition definition.voidinit()Initialise methodvoidsetPublicCondition(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, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Field Detail
-
actionConditionDefinition
protected ActionConditionDefinition actionConditionDefinition
The action condition definition
-
-
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:
getActionConditionDefintionin interfaceActionConditionEvaluator- Returns:
- the action condition definition
-
evaluate
public boolean evaluate(ActionCondition actionCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
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:
ActionConditionEvaluator.evaluate(org.alfresco.service.cmr.action.ActionCondition, 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 conditionactionedUponNodeRef- the actioned upon node reference- Returns:
- the result of the condition evaluation
-
-