Class 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 Details

    • RuleTypeImpl

      public RuleTypeImpl(List<RuleTrigger> ruleTriggers)
      Constructor
      Parameters:
      ruleTriggers - the rule triggers
  • Method Details

    • 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: 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:
    • getDisplayLabel

      public 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:
    • triggerRuleType

      public void triggerRuleType(NodeRef nodeRef, 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
      executeRuleImmediately - indicates whether the rule should be executed immediately or not
      See Also: