Class TriggerActions

  • All Implemented Interfaces:
    com.funnelback.api.core.models.Dated, com.funnelback.api.core.models.Identifiable, com.funnelback.api.core.models.IdentifiableAndDated, HasNoBeans

    public final class TriggerActions
    extends com.funnelback.api.core.models.AbstractIdentifiableDated
    implements HasNoBeans
    An association between a curator Trigger and the ActionSet to perform for this trigger. This is known as a RuleSet in the Admin UI interface.
    Since:
    13.4
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.funnelback.api.core.models.AbstractDated

        com.funnelback.api.core.models.AbstractDated.ZonedDateTimeJsonDeserializer, com.funnelback.api.core.models.AbstractDated.ZonedDateTimeJsonSerializer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<Action> actions
      Set of actions for the Trigger
      private java.lang.Boolean enabled
      Indicates whether this TriggerActions is enabled (i.e.
      private java.lang.String Id
      Id for the TriggerAction (a unique ID to refer to the specific item by)
      private java.lang.String label
      Label for the TriggerAction (a way to label the TriggerAction).
      private java.lang.String name
      Name for the TriggerAction (a nice name to present to the user)
      private Trigger trigger
      Trigger associated to the ActionSet
    • Constructor Summary

      Constructors 
      Constructor Description
      TriggerActions()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      void configure​(Configurer configurer)
      Configure this object and Triggers/Actions below
      boolean equals​(java.lang.Object o)  
      java.util.List<Action> getActions()
      Set of actions for the Trigger
      ActionSet getActionSet()
      Get the set of actions for this trigger.
      java.lang.Boolean getEnabled()
      Indicates whether this TriggerActions is enabled (i.e.
      java.lang.String getId()
      Id for the TriggerAction (a unique ID to refer to the specific item by)
      java.lang.String getLabel()
      Label for the TriggerAction (a way to label the TriggerAction).
      java.lang.String getName()
      Name for the TriggerAction (a nice name to present to the user)
      Trigger getTrigger()  
      int hashCode()  
      void setActions​(java.util.List<Action> actions)
      Set of actions for the Trigger
      void setEnabled​(java.lang.Boolean enabled)
      Indicates whether this TriggerActions is enabled (i.e.
      void setId​(java.lang.String Id)
      Id for the TriggerAction (a unique ID to refer to the specific item by)
      void setLabel​(java.lang.String label)
      Label for the TriggerAction (a way to label the TriggerAction).
      void setName​(java.lang.String name)
      Name for the TriggerAction (a nice name to present to the user)
      void setTrigger​(Trigger trigger)
      Trigger associated to the ActionSet
      java.lang.String toString()  
      • Methods inherited from class com.funnelback.api.core.models.AbstractDated

        getCreated, getLastModified, marshal, setCreated, setLastModified, unMarshal
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.funnelback.api.core.models.Dated

        getCreated, getLastModified, setCreated, setCreatedDateIfMissingAndSetLastModified, setLastModified
      • Methods inherited from interface com.funnelback.api.core.models.Identifiable

        setIdIfMissing
      • Methods inherited from interface com.funnelback.api.core.models.IdentifiableAndDated

        setIdOrCreatedDateIfMissingUpdateLastModified
    • Field Detail

      • name

        private java.lang.String name
        Name for the TriggerAction (a nice name to present to the user)
      • Id

        private java.lang.String Id
        Id for the TriggerAction (a unique ID to refer to the specific item by)
      • label

        private java.lang.String label
        Label for the TriggerAction (a way to label the TriggerAction).
      • enabled

        private java.lang.Boolean enabled
        Indicates whether this TriggerActions is enabled (i.e. should be considered for new requests).
      • actions

        private java.util.List<Action> actions
        Set of actions for the Trigger
    • Constructor Detail

      • TriggerActions

        public TriggerActions()
    • Method Detail

      • getActionSet

        public ActionSet getActionSet()
        Get the set of actions for this trigger. If null, an empty ActionSet is returned instead.
        Returns:
        The actions for this trigger (never null)
      • getTrigger

        public Trigger getTrigger()
      • configure

        public void configure​(Configurer configurer)
        Configure this object and Triggers/Actions below
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
        Overrides:
        canEqual in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • getName

        public java.lang.String getName()
        Name for the TriggerAction (a nice name to present to the user)
      • setName

        public void setName​(java.lang.String name)
        Name for the TriggerAction (a nice name to present to the user)
      • getId

        public java.lang.String getId()
        Id for the TriggerAction (a unique ID to refer to the specific item by)
        Specified by:
        getId in interface com.funnelback.api.core.models.Identifiable
        Overrides:
        getId in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • setId

        public void setId​(java.lang.String Id)
        Id for the TriggerAction (a unique ID to refer to the specific item by)
        Specified by:
        setId in interface com.funnelback.api.core.models.Identifiable
        Overrides:
        setId in class com.funnelback.api.core.models.AbstractIdentifiableDated
      • getLabel

        public java.lang.String getLabel()
        Label for the TriggerAction (a way to label the TriggerAction).
      • setLabel

        public void setLabel​(java.lang.String label)
        Label for the TriggerAction (a way to label the TriggerAction).
      • getEnabled

        public java.lang.Boolean getEnabled()
        Indicates whether this TriggerActions is enabled (i.e. should be considered for new requests).
      • setEnabled

        public void setEnabled​(java.lang.Boolean enabled)
        Indicates whether this TriggerActions is enabled (i.e. should be considered for new requests).
      • getActions

        public java.util.List<Action> getActions()
        Set of actions for the Trigger
      • setActions

        public void setActions​(java.util.List<Action> actions)
        Set of actions for the Trigger