Class UserSegmentTrigger
- java.lang.Object
-
- com.funnelback.publicui.search.model.curator.trigger.UserSegmentTrigger
-
-
Field Summary
Fields Modifier and Type Field Description private StringMatchTypematchTypeThe type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle).private java.lang.StringsegmentTypeThe type of segment to check.private java.lang.StringsegmentValueThe 'value' to check for in the segment data (currently a substring check)
-
Constructor Summary
Constructors Constructor Description UserSegmentTrigger()UserSegmentTrigger(java.lang.String segmentType, java.lang.String segmentValue, StringMatchType matchType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactivatesOn(SearchTransaction searchTransaction)Check whether the given searchTransaction originates from a country listed in targetCountries.protected booleancanEqual(java.lang.Object other)voidconfigure(Configurer configurer)Configure this trigger (expected to autowire in any dependencies)booleanequals(java.lang.Object o)StringMatchTypegetMatchType()The type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle).java.lang.StringgetSegmentType()The type of segment to check.java.lang.StringgetSegmentValue()The 'value' to check for in the segment data (currently a substring check)inthashCode()voidsetMatchType(StringMatchType matchType)The type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle).voidsetSegmentType(java.lang.String segmentType)The type of segment to check.voidsetSegmentValue(java.lang.String segmentValue)The 'value' to check for in the segment data (currently a substring check)java.lang.StringtoString()
-
-
-
Field Detail
-
segmentType
private java.lang.String segmentType
The type of segment to check. Available segments depend on the fields in the predictive segmenter database in use.
-
segmentValue
private java.lang.String segmentValue
The 'value' to check for in the segment data (currently a substring check)
-
matchType
private StringMatchType matchType
The type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle). Default setting is case sensitive substring matching.
-
-
Constructor Detail
-
UserSegmentTrigger
public UserSegmentTrigger(java.lang.String segmentType, java.lang.String segmentValue, StringMatchType matchType)
-
UserSegmentTrigger
public UserSegmentTrigger()
-
-
Method Detail
-
activatesOn
public boolean activatesOn(SearchTransaction searchTransaction)
Check whether the given searchTransaction originates from a country listed in targetCountries. If it does, return true, otherwise false.- Specified by:
activatesOnin interfaceTrigger- Parameters:
searchTransaction- Current search transaction- Returns:
- true if this trigger should activate on the given searchTransaction, and false otherwise.
-
configure
public void configure(Configurer configurer)
Configure this trigger (expected to autowire in any dependencies)
-
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
-
getSegmentType
public java.lang.String getSegmentType()
The type of segment to check. Available segments depend on the fields in the predictive segmenter database in use.
-
setSegmentType
public void setSegmentType(java.lang.String segmentType)
The type of segment to check. Available segments depend on the fields in the predictive segmenter database in use.
-
getSegmentValue
public java.lang.String getSegmentValue()
The 'value' to check for in the segment data (currently a substring check)
-
setSegmentValue
public void setSegmentValue(java.lang.String segmentValue)
The 'value' to check for in the segment data (currently a substring check)
-
getMatchType
public StringMatchType getMatchType()
The type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle). Default setting is case sensitive substring matching.
-
setMatchType
public void setMatchType(StringMatchType matchType)
The type of matching to be performed between the user's detected segment (haystack) and the given segmentValue (needle). Default setting is case sensitive substring matching.
-
-