Class CuratorConfig


  • public class CuratorConfig
    extends java.lang.Object
    CuratorConfig represents the configuration of the curator system which can be used to modify result presentation under certain conditions.
    Since:
    13.0
    • Field Detail

      • triggerActions

        private java.util.List<TriggerActions> triggerActions

        The list of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4
    • Constructor Detail

      • CuratorConfig

        public CuratorConfig​(java.util.List<TriggerActions> triggerActions)
      • CuratorConfig

        public CuratorConfig()
    • Method Detail

      • addAll

        public void addAll​(java.util.List<TriggerActions> triggerActions)

        Add a list of TriggerActions (perhaps from another Curator[Yaml]Config object) to this CuratorConfig.

        Since:
        14.0
      • isCuratorActive

        public static boolean isCuratorActive​(SearchTransaction searchTransaction)

        Determines, based on the given searchTransaction, whether the curator system should be activated. If it is not activated the curator system will not modify the standard search response, so disabling it may be useful for debugging purposes.

        The current implementation of this check defaults to active, but examines the CGI parameter curator and will disable the curator system if it has any value other than 'true' (case insensitive).

        Parameters:
        searchTransaction - Current search transaction
        Returns:
        true if the curator is active, false otherwise
      • configure

        public void configure​(Configurer configurer)
      • 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
      • getTriggerActions

        public java.util.List<TriggerActions> getTriggerActions()

        The list of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4
      • setTriggerActions

        public void setTriggerActions​(java.util.List<TriggerActions> triggerActions)

        The list of triggers and associated actions for this curator configuration.

        The actions will be performed when a request matching the given trigger is detected.

        Since:
        13.4