Class InCategoryEvaluator
- java.lang.Object
-
- org.alfresco.repo.action.CommonResourceAbstractBase
-
- org.alfresco.repo.action.ParameterizedItemAbstractBase
-
- org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
-
- org.alfresco.repo.action.evaluator.InCategoryEvaluator
-
- All Implemented Interfaces:
ActionConditionEvaluator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class InCategoryEvaluator extends ActionConditionEvaluatorAbstractBase
In category evaluator implementation.- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMERule constantsstatic java.lang.StringPARAM_CATEGORY_ASPECTstatic java.lang.StringPARAM_CATEGORY_VALUE-
Fields inherited from class org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase
actionConditionDefinition
-
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 InCategoryEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddParameterDefinitions(java.util.List<ParameterDefinition> paramList)Add the parameter definitionsprotected booleanevaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)Evaluation implementationvoidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)Sets the dictionary servicevoidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Sets the node service-
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, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Rule constants- See Also:
- Constant Field Values
-
PARAM_CATEGORY_ASPECT
public static final java.lang.String PARAM_CATEGORY_ASPECT
- See Also:
- Constant Field Values
-
PARAM_CATEGORY_VALUE
public static final java.lang.String PARAM_CATEGORY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service- Parameters:
nodeService- the node service
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service- Parameters:
dictionaryService- the dictionary service
-
addParameterDefinitions
protected void addParameterDefinitions(java.util.List<ParameterDefinition> paramList)
Add the parameter definitions- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
evaluateImpl
protected boolean evaluateImpl(ActionCondition ruleCondition, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class:ActionConditionEvaluatorAbstractBaseEvaluation implementation- Specified by:
evaluateImplin classActionConditionEvaluatorAbstractBase- Parameters:
ruleCondition- the action conditionactionedUponNodeRef- the actioned upon node reference- Returns:
- the result of the condition evaluation
- See Also:
ActionConditionEvaluatorAbstractBase.evaluateImpl(ActionCondition, org.alfresco.service.cmr.repository.NodeRef)
-
-