org.alfresco.repo.rule
Class RuleTypeImpl

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.rule.RuleTypeImpl
All Implemented Interfaces:
RuleType, org.springframework.beans.factory.BeanNameAware

public class RuleTypeImpl
extends CommonResourceAbstractBase
implements RuleType

Rule type implementation class.


Field Summary
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Fields inherited from interface org.alfresco.service.cmr.rule.RuleType
INBOUND, OUTBOUND, UPDATE
 
Constructor Summary
RuleTypeImpl(java.util.List ruleTriggers)
          Constructor
 
Method Summary
 java.lang.String getDisplayLabel()
          Get the display label of the rule type.
 java.lang.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.
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleTypeImpl

public RuleTypeImpl(java.util.List 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(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service

Parameters:
nodeService - the node service

init

public void init()
Rule type initialise method


getName

public java.lang.String getName()
Description copied from interface: RuleType
Get the name of the rule type.

The name is unique and is used to identify the rule type.

Specified by:
getName in interface RuleType
Returns:
the name of the rule type
See Also:
RuleType.getName()

getDisplayLabel

public java.lang.String getDisplayLabel()
Description copied from interface: RuleType
Get the display label of the rule type.

Specified by:
getDisplayLabel in interface RuleType
Returns:
the display label
See Also:
RuleType.getDisplayLabel()

triggerRuleType

public void triggerRuleType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
                            boolean executeRuleImmediately)
Description copied from interface: RuleType
Trigger the rules of the rule type for the node on the actioned upon node.

Specified by:
triggerRuleType in interface RuleType
Parameters:
nodeRef - the node ref whos rule of rule type are to be triggered
actionedUponNodeRef - the node ref that the triggered rule will action upon
See Also:
org.alfresco.service.cmr.rule.RuleType#triggerRuleType(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.