Interface Trigger
-
- All Known Implementing Classes:
AllQueryWordsTrigger
,AndTrigger
,CountryNameTrigger
,DateRangeTrigger
,ExactQueryTrigger
,FacetSelectionTrigger
,GroovyTrigger
,NotAnyTrigger
,OrTrigger
,QueryRegularExpressionTrigger
,QuerySubstringTrigger
,RequestParameterTrigger
,UserSegmentTrigger
public interface Trigger
Triggers control when curator actions are performed (or not).
Implementing classes must define, based on the current search transaction, whether the trigger activates or not.
NOTE: To avoid displaying the full package name for the implementing class in the curator config file add the implementing class to the aliasedTriggers array in publicui-web's com.funnelback.publicui.search.service.resource.impl.CuratorConfigResource
- Since:
- 13.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
activatesOn(SearchTransaction searchTransaction)
void
configure(Configurer configurer)
Perform any configuration required (e.g.static java.lang.String
queryToMatchAgainst(SearchTransaction searchTransaction)
Reads FrontEnd.ModernUi.Curator.QUERY_PARAMETER_PATTERN, finds matching input parameters and returns a single query for matching against.
-
-
-
Method Detail
-
activatesOn
boolean activatesOn(SearchTransaction searchTransaction)
- Parameters:
searchTransaction
- Current search transaction- Returns:
- true if this trigger should activate on the given searchTransaction, and false otherwise.
-
configure
void configure(Configurer configurer)
Perform any configuration required (e.g. autowiring beans needed by the Trigger).
-
queryToMatchAgainst
static java.lang.String queryToMatchAgainst(SearchTransaction searchTransaction)
Reads FrontEnd.ModernUi.Curator.QUERY_PARAMETER_PATTERN, finds matching input parameters and returns a single query for matching against. Values from each param are separated by a single space, and the values are ordered based on the Java String sort order of the keys.
-
-