Class CuratorConfig
- java.lang.Object
-
- com.funnelback.publicui.search.model.curator.config.CuratorConfig
-
public class CuratorConfig extends java.lang.ObjectCuratorConfig represents the configuration of the curator system which can be used to modify result presentation under certain conditions.- Since:
- 13.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TriggerActions>triggerActionsThe list of triggers and associated actions for this curator configuration.
-
Constructor Summary
Constructors Constructor Description CuratorConfig()CuratorConfig(java.util.List<TriggerActions> triggerActions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(java.util.List<TriggerActions> triggerActions)Add a list of TriggerActions (perhaps from another Curator[Yaml]Config object) to this CuratorConfig.protected booleancanEqual(java.lang.Object other)voidconfigure(Configurer configurer)booleanequals(java.lang.Object o)java.util.List<TriggerActions>getTriggerActions()The list of triggers and associated actions for this curator configuration.inthashCode()static booleanisCuratorActive(SearchTransaction searchTransaction)Determines, based on the given searchTransaction, whether the curator system should be activated.voidsetTriggerActions(java.util.List<TriggerActions> triggerActions)The list of triggers and associated actions for this curator configuration.java.lang.StringtoString()
-
-
-
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
curatorand 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.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
-
-