public class RuleTypeImpl extends CommonResourceAbstractBase implements RuleType
name| Constructor and Description |
|---|
RuleTypeImpl(List<RuleTrigger> ruleTriggers)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayLabel()
Get the display label of the rule type.
|
String |
getName()
Get the name of the rule type.
|
void |
init()
Rule type initialise method
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setRuleService(RuleService ruleService)
Set the rule service
|
void |
triggerRuleType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean executeRuleImmediately)
Trigger the rules of the rule type for the node on the actioned upon node.
|
setBeanNamepublic RuleTypeImpl(List<RuleTrigger> ruleTriggers)
ruleTriggers - the rule triggerspublic void setRuleService(RuleService ruleService)
ruleService - the rule servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the node servicepublic void init()
public String getName()
RuleTypeThe name is unique and is used to identify the rule type.
getName in interface RuleTypeRuleType.getName()public String getDisplayLabel()
RuleTypegetDisplayLabel in interface RuleTypeRuleType.getDisplayLabel()public void triggerRuleType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean executeRuleImmediately)
RuleTypetriggerRuleType in interface RuleTypenodeRef - 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 notRuleType.triggerRuleType(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef, boolean)Copyright © 2005–2018 Alfresco Software. All rights reserved.