Class CuratorConfig
- java.lang.Object
-
- com.funnelback.publicui.search.model.curator.config.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 Summary
Fields Modifier and Type Field Description private java.util.List<TriggerActions>
triggerActions
The 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 void
addAll(java.util.List<TriggerActions> triggerActions)
Add a list of TriggerActions (perhaps from another Curator[Yaml]Config object) to this CuratorConfig.protected boolean
canEqual(java.lang.Object other)
void
configure(Configurer configurer)
boolean
equals(java.lang.Object o)
java.util.List<TriggerActions>
getTriggerActions()
The list of triggers and associated actions for this curator configuration.int
hashCode()
static boolean
isCuratorActive(SearchTransaction searchTransaction)
Determines, based on the given searchTransaction, whether the curator system should be activated.void
setTriggerActions(java.util.List<TriggerActions> triggerActions)
The list of triggers and associated actions for this curator configuration.java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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
-
-