Class ActionSet


  • public class ActionSet
    extends java.lang.Object
    ActionSet defines a group of actions (which may share a single trigger) and provides convenience methods across the group.
    • Field Detail

      • actions

        private java.util.List<Action> actions
        The actual actions contained within the set
    • Constructor Detail

      • ActionSet

        public ActionSet()
    • Method Detail

      • performActions

        public void performActions​(SearchTransaction searchTransaction,
                                   Action.Phase phase)
        Perform any actions within the set should be run in the given phase.
        Parameters:
        searchTransaction - Current search transaction
        phase - current query lifecycle phase where the action is run
      • hasActionForPhase

        public boolean hasActionForPhase​(Action.Phase phase)
        Parameters:
        phase - current query lifecycle phase where the action is run
        Returns:
        true if any of the actions in this set should be run within the specified phase.
      • configure

        public void configure​(Configurer configurer)
        Perform any configuration required (e.g. autowiring beans needed by each Action).
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getActions

        public java.util.List<Action> getActions()
        The actual actions contained within the set
      • setActions

        public void setActions​(java.util.List<Action> actions)
        The actual actions contained within the set