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
Rule type implementation class.
- Author:
- Roy Wetherall
-
Field Summary
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the display label of the rule type.getName()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 Details
-
RuleTypeImpl
Constructor- Parameters:
ruleTriggers- the rule triggers
-
-
Method Details
-
setRuleService
Set the rule service- Parameters:
ruleService- the rule service
-
setNodeService
Set the node service- Parameters:
nodeService- the node service
-
init
public void init()Rule type initialise method -
getName
Description copied from interface:RuleTypeGet the name of the rule type.The name is unique and is used to identify the rule type.
-
getDisplayLabel
Description copied from interface:RuleTypeGet the display label of the rule type.- Specified by:
getDisplayLabelin interfaceRuleType- Returns:
- the display label
- See Also:
-
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:
-