Package org.alfresco.repo.rule
Class RuleTypeImpl
- java.lang.Object
-
- org.alfresco.repo.action.CommonResourceAbstractBase
-
- org.alfresco.repo.rule.RuleTypeImpl
-
- All Implemented Interfaces:
RuleType,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class RuleTypeImpl extends CommonResourceAbstractBase implements RuleType
Rule type implementation class.- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description RuleTypeImpl(List<RuleTrigger> ruleTriggers)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayLabel()Get the display label of the rule type.StringgetName()Get the name of the rule type.voidinit()Rule type initialise methodvoidsetNodeService(NodeService nodeService)Set the node servicevoidsetRuleService(RuleService ruleService)Set the rule servicevoidtriggerRuleType(NodeRef nodeRef, NodeRef actionedUponNodeRef, boolean executeRuleImmediately)Trigger the rules of the rule type for the node on the actioned upon node.-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Constructor Detail
-
RuleTypeImpl
public RuleTypeImpl(List<RuleTrigger> ruleTriggers)
Constructor- Parameters:
ruleTriggers- the rule triggers
-
-
Method Detail
-
setRuleService
public void setRuleService(RuleService ruleService)
Set the rule service- Parameters:
ruleService- the rule service
-
setNodeService
public void setNodeService(NodeService nodeService)
Set the node service- Parameters:
nodeService- the node service
-
init
public void init()
Rule type initialise method
-
getName
public String getName()
Description copied from interface:RuleTypeGet the name of the rule type.The name is unique and is used to identify the rule type.
- Specified by:
getNamein interfaceRuleType- Returns:
- the name of the rule type
- See Also:
RuleType.getName()
-
getDisplayLabel
public String getDisplayLabel()
Description copied from interface:RuleTypeGet the display label of the rule type.- Specified by:
getDisplayLabelin interfaceRuleType- Returns:
- the display label
- See Also:
RuleType.getDisplayLabel()
-
triggerRuleType
public void triggerRuleType(NodeRef nodeRef, NodeRef actionedUponNodeRef, boolean executeRuleImmediately)
Description copied from interface:RuleTypeTrigger the rules of the rule type for the node on the actioned upon node.- Specified by:
triggerRuleTypein interfaceRuleType- Parameters:
nodeRef- the node ref whos rule of rule type are to be triggeredactionedUponNodeRef- the node ref that the triggered rule will action uponexecuteRuleImmediately- indicates whether the rule should be executed immediately or not- See Also:
RuleType.triggerRuleType(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef, boolean)
-
-