|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.navigation.model.FilterState
public class FilterState
A class that contains the filters applied to an Endeca data set.
Exercise caution when modifying this object. Although this class
is fully mutable, the FilterState contained by the main NavigationState
should not be modified directly. Instead use clone()
before modifying the
filter state returned from NavigationState.getFilterState()
.
Constructor Summary | |
---|---|
FilterState()
Creates a new empty FilterState object. |
|
FilterState(List<String> navigationFilters,
List<SearchFilter> searches,
List<RangeFilter> rangeFilters,
GeoFilter geoFilter,
List<String> recordFilters,
List<String> featuredRecords,
String securityFilter,
String languageId,
String rollupKey,
boolean autoPhraseEnabled)
Deprecated. use the empty constructor FilterState() and the requisite setter methods instead. |
Method Summary | |
---|---|
FilterState |
clone()
Returns a deep copy of this FilterState object. |
boolean |
containsRollupKey()
|
boolean |
equals(Object obj)
Returns true if the given object is equal to this filter state, false otherwise. |
EqlFilter |
getEqlFilter()
Returns the EQL filter associated with this filter state. |
List<String> |
getFeaturedRecords()
Returns a List of featured records, or an empty list if no featured records are specified. |
GeoFilter |
getGeoFilter()
|
String |
getLanguageId()
|
List<String> |
getNavigationFilters()
Returns a List of navigation filters (dimension value IDs), or an empty list if no navigation filters are specified. |
List<RangeFilter> |
getRangeFilters()
Returns a List of range filters, or an empty list if no range filters are specified. |
List<String> |
getRecordFilters()
Returns a List of record filters, or an empty list if no record filters are specified. |
String |
getRollupKey()
|
List<SearchFilter> |
getSearchFilters()
Returns a List of search filters, or an empty list if no search filters are specified. |
String |
getSecurityFilter()
|
int |
hashCode()
|
boolean |
isAutoPhraseEnabled()
|
boolean |
isEmpty()
Returns true if this FilterState has no filters, false otherwise. |
void |
setAutoPhraseEnabled(boolean autoPhraseEnabled)
Turns on autophrase in the engine. |
void |
setEqlFilter(EqlFilter eqlFilter)
Sets the EQL filter associated with this filter state. |
void |
setFeaturedRecords(List<String> featuredRecords)
The List of featured records. |
void |
setGeoFilter(GeoFilter geoFilter)
The GeoFilter |
void |
setLanguageId(String languageId)
Sets the language ID that gets passed to the MDEX. |
void |
setNavigationFilters(List<String> navigationFilters)
The List of navigation filters (dimension value IDs). |
void |
setRangeFilters(List<RangeFilter> rangeFilters)
The List of range filters. |
void |
setRecordFilters(List<String> recordFilters)
The List of record filters. |
void |
setRollupKey(String rollupKey)
If aggregate records are being used, this specifies the MDEX rollup field. |
void |
setSearchFilters(List<SearchFilter> searchFilters)
The List of search filters. |
void |
setSecurityFilter(String securityFilter)
Sets a security filter, which is specified using an MDEX record filter string. |
FilterState |
shallowCopy()
Returns a shallow copy of a this FilterState object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterState()
@Deprecated public FilterState(List<String> navigationFilters, List<SearchFilter> searches, List<RangeFilter> rangeFilters, GeoFilter geoFilter, List<String> recordFilters, List<String> featuredRecords, String securityFilter, String languageId, String rollupKey, boolean autoPhraseEnabled)
FilterState()
and the requisite setter methods instead.
Method Detail |
---|
public List<String> getNavigationFilters()
public List<SearchFilter> getSearchFilters()
public List<RangeFilter> getRangeFilters()
public GeoFilter getGeoFilter()
public List<String> getRecordFilters()
public List<String> getFeaturedRecords()
public void setNavigationFilters(List<String> navigationFilters)
public void setSearchFilters(List<SearchFilter> searchFilters)
getSearchFilters()
public void setRangeFilters(List<RangeFilter> rangeFilters)
getRangeFilters()
public void setGeoFilter(GeoFilter geoFilter)
getGeoFilter()
public void setRecordFilters(List<String> recordFilters)
getRecordFilters()
public void setFeaturedRecords(List<String> featuredRecords)
getFeaturedRecords()
,
containsRollupKey()
public String getSecurityFilter()
public void setSecurityFilter(String securityFilter)
Sets a security filter, which is specified using an MDEX record filter string.
This filter will not get cleared by NavigationState.clearFilterState()
.
The intended use is for this filter to be set globally, and not get changed by individual cartridge handlers, whereas the setRecordFilters is intended to be used by cartridge handlers, and not intended to be used for a global security filter.
This filter will ultimately get combined with the record filters specified by getRecordFilters() and passed to the MDEX as:
AND(securityFilter,recordFilters[0],recordFilters[1],...)
securityFilter
- the security filter in MDEX record filter form - e.g. AND(propertyX:1,propertyY:admin)public boolean isAutoPhraseEnabled()
public void setAutoPhraseEnabled(boolean autoPhraseEnabled)
SearchSuggestionMdexQuery
has phraseSuggestionEnabled=true
autoPhraseEnabled
- public String getLanguageId()
public void setLanguageId(String languageId)
Setting this value to null will use the MDEX default
languageId
- public String getRollupKey()
setRollupKey(String)
public void setRollupKey(String rollupKey)
Used to specify the rollup key for records results, aggregate counts for refinements, dimension search, and breadcrumbs, and used as the rollup key for record spotlight results.
In the case of record spotlight results on an aggregate dataset, the spotlighted records are specified by the property value of this rollup field
Set to null to remove the rollup key
Note that this field must be enabled for Record Filtering in the MDEX.
public boolean containsRollupKey()
public EqlFilter getEqlFilter()
setEqlFilter(EqlFilter)
public void setEqlFilter(EqlFilter eqlFilter)
eqlFilter
- the EQL filter containing an EQL expression.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public FilterState clone()
clone
in class Object
public FilterState shallowCopy()
clone()
to create a deep copy.
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |