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 Summary

      Constructors 
      Constructor Description
      RuleTypeImpl​(java.util.List<RuleTrigger> ruleTriggers)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RuleTypeImpl

        public RuleTypeImpl​(java.util.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​(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()