|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NavigationState
The NavigationState interface represents a request state
that consists of a FilterState
and a collection of
URL parameters.
The interface provides methods for the following operations
Method Summary | |
---|---|
NavigationState |
augment(FilterState filterState)
Create a new NavigationState relative to this one, augmented with the specified FilterState object. |
NavigationState |
clearFilterState()
Create a new NavigationState relative to this one, clearing the FilterState object of the following: FilterState.getSearchFilters() - clears to an empty list
FilterState.getNavigationFilters() - clears to an empty list
FilterState.getRangeFilters() - clears to an empty list
FilterState.getRecordFilters() - clears to an empty list
FilterState.getFeaturedRecords() - clears to an empty list
FilterState.getGeoFilter() - clears to null |
NavigationState |
clearGeoFilter()
Create a new NavigationState relative to this one, removing the geo filter. |
NavigationState |
clearNavigationFilters()
Create a new NavigationState relative to this one, clearing the navigation filters. |
NavigationState |
clearParameters()
Create a new NavigationState relative to this one, clearing the parameters map. |
NavigationState |
clearRangeFilters()
Create a new NavigationState relative to this one, removing the range filters. |
NavigationState |
clearRecordFilters()
Create a new NavigationState relative to this one, removing the record filters. |
NavigationState |
clearSearchFilters()
Create a new NavigationState relative to this one, removing the searches. |
String |
getEncoding()
Returns the character encoding that is used when marshaling parameters and strings contained within this UrlState. |
FilterState |
getFilterState()
|
String |
getParameter(String name)
Returns the value of the parameter with the given name, or null . |
void |
inform(com.endeca.navigation.DimLocation dimLocation)
Informs this class of important meta-information. |
void |
inform(com.endeca.navigation.DimLocationList dimLocations)
Informs this class of important meta-information. |
void |
inform(com.endeca.navigation.ENEQueryResults results)
Informs this class of important meta-information. |
NavigationState |
putAllParameters(Map<String,String> parameters)
Create a new NavigationState relative to this one, updating all of the specified parameters. |
NavigationState |
putParameter(String name,
String value)
Create a new NavigationState relative to this one, updating the specified parameter. |
NavigationState |
removeNavigationFilter(String dvalId)
Create a new NavigationState relative to this one, removing the specified navigation filter. |
NavigationState |
removeParameter(String name)
Create a new NavigationState relative to this one, removing the specified parameter. |
NavigationState |
selectNavigationFilter(String dvalId)
Create a new NavigationState relative to this one, selecting the specified navigation filter. |
RecordState |
selectRecord(String recordSpec,
boolean isAggregateRecord)
Create a new RecordState from the given record spec. |
NavigationState |
updateFilterState(FilterState filterState)
Create a new NavigationState relative to this one, replacing the existing FilterState object with the given one. |
NavigationState |
updateGeoFilter(GeoFilter geoFilter)
Create a new NavigationState relative to this one, with the existing GeoFilter (if any) replaced by the given one. |
NavigationState |
updateParameters(Map<String,String> parameters)
Create a new NavigationState relative to this one, replacing the entire existing parameter map with the given one. |
NavigationState |
updateRangeFilters(List<RangeFilter> rangeFilters)
Create a new NavigationState relative to this one, with any existing range filters replaced by those in the given list. |
NavigationState |
updateRecordFilters(List<String> recordFilters)
Create a new NavigationState relative to this one, with any existing record filters replaced by those in the given list. |
NavigationState |
updateSearchFilters(List<SearchFilter> searchFilters)
Create a new NavigationState relative to this one, with any existing search filters replaced by those in the given list. |
Method Detail |
---|
NavigationState updateParameters(Map<String,String> parameters)
parameters
- the new parameter map
NavigationState removeParameter(String name)
name
- the name of the parameter to remove
NavigationState putParameter(String name, String value)
name
- the name of the parameter to updatevalue
- the value to update the parameter to
NavigationState putAllParameters(Map<String,String> parameters)
This method is needed when adding more than one "remove always" parameter. Since such parameters have been configured to be removed whenever a new NavigationState is constructed from an existing one, they must be added all at once rather than one at a time. Otherwise, for example, the first would be removed when the second was added.
parameters
- a map containing entries where the key
corresponds to the name of the parameter to update and the
value corresponds to the value to update it to
NavigationState clearParameters()
FilterState getFilterState()
NavigationState updateFilterState(FilterState filterState)
filterState
- the new FilterState object
NavigationState clearFilterState()
FilterState.getSearchFilters()
- clears to an empty listFilterState.getNavigationFilters()
- clears to an empty listFilterState.getRangeFilters()
- clears to an empty listFilterState.getRecordFilters()
- clears to an empty listFilterState.getFeaturedRecords()
- clears to an empty listFilterState.getGeoFilter()
- clears to null
NavigationState augment(FilterState filterState)
If the auxiliary filter state includes a dimensional refinement, then any refinements of the same dimension in this NavigationState are excluded from the result, except in the case of a multi-select dimension, in which case they are merged into the result.
filterState
- A set of filter terms that supplement and/or
replace those of this NavigationState
NavigationState selectNavigationFilter(String dvalId)
This method can be used to select both refinements and ancestors.
dvalId
- the navigation filter (i.e. dimension value ID)
NavigationState removeNavigationFilter(String dvalId)
This method can be used to remove a single descriptor. It can also be used to remove all navigation filters from a single dimension by supplying the root navigation filter (i.e. dimension ID).
dvalId
- - the navigation filter (i.e. dimension value ID)
NavigationState clearNavigationFilters()
FilterState.getNavigationFilters()
NavigationState clearSearchFilters()
FilterState.getSearchFilters()
NavigationState clearRangeFilters()
FilterState.getRangeFilters()
NavigationState clearGeoFilter()
FilterState.getGeoFilter()
NavigationState clearRecordFilters()
FilterState.getRecordFilters()
NavigationState updateSearchFilters(List<SearchFilter> searchFilters)
searchFilters
- the new searches
FilterState.getSearchFilters()
NavigationState updateRangeFilters(List<RangeFilter> rangeFilters)
rangeFilters
- the new range filters
FilterState.getRangeFilters()
NavigationState updateGeoFilter(GeoFilter geoFilter)
geoFilter
- the new GeoFilter
FilterState.getGeoFilter()
NavigationState updateRecordFilters(List<String> recordFilters)
recordFilters
- the new record filters
FilterState.getRecordFilters()
RecordState selectRecord(String recordSpec, boolean isAggregateRecord)
recordSpec
- the record specisAggregateRecord
- whether the spec represents an aggregate record
void inform(com.endeca.navigation.ENEQueryResults results)
results
- a Presentation API ENEQueryResults object
containing the meta-informationvoid inform(com.endeca.navigation.DimLocation dimLocation)
dimLocation
- a Presentation API DimLocation object
containing the meta-informationvoid inform(com.endeca.navigation.DimLocationList dimLocations)
dimLocations
- a Presentation API DimLocationList object
containing the meta-informationString getParameter(String name)
null
.
String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |