public class ExtendedNavigationStateBuilder
extends UrlNavigationStateBuilder
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
ExtendedNavigationStateBuilder() |
Modifier and Type | Method and Description |
---|---|
NavigationStateProcessor[] |
getNavigationStateProcessors() |
RecordFilterBuilder[] |
getNonSecurityFilterBuilders() |
RangeFilterBuilder[] |
getRangeFilterBuilders() |
RecordFilterBuilder[] |
getRecordFilterBuilders() |
RecordFilterBuilder |
getSecurityFilterBuilder() |
RecordFilterBuilder[] |
getSecurityFilterBuilders() |
protected FilterState |
parseFilterState(UrlState pUrlState)
Allows the security filter to be provided by securityFilterBuilder, thus allowing us to
calculate security filter based on user profile, etc.
|
NavigationState |
parseNavigationState(java.lang.String pQueryString,
java.lang.String pPathInfo,
java.lang.String pCharacterEncoding)
Retrieve the NavigationStateProcessor component and invoke its process
method passing in the NavigationState returned from calling super.
|
protected java.util.List<RangeFilter> |
parseRangeFilters(UrlState urlState)
Adds custom range filters provided by the rangeFilterBuilders property to
the NavigationState.
|
protected java.util.List<java.lang.String> |
parseRecordFilters(UrlState pUrlState)
Adds custom record filters provided by record filter builders.
|
RecordState |
parseRecordState(java.lang.String pQueryString,
java.lang.String pPathInfo,
java.lang.String pCharacterEncoding)
This overridden method ensures that the current request's pathInfo
parameter has a value.
|
void |
setNavigationStateProcessors(NavigationStateProcessor[] pNavigationStateProcessors) |
void |
setRangeFilterBuilders(RangeFilterBuilder[] pRangeFilterBuilders) |
void |
setRecordFilterBuilders(RecordFilterBuilder[] pRecordFilterBuilders) |
static java.util.List<java.lang.String> |
splitRecordFilters(java.util.List<java.lang.String> pRecordFilters)
For each record filter in the list the method checks whether the filter
is a union of filters and if so splits it into individual record filters.
|
protected static final java.lang.String CLASS_VERSION
public RangeFilterBuilder[] getRangeFilterBuilders()
public void setRangeFilterBuilders(RangeFilterBuilder[] pRangeFilterBuilders)
public RecordFilterBuilder[] getRecordFilterBuilders()
public void setRecordFilterBuilders(RecordFilterBuilder[] pRecordFilterBuilders)
pRecordFilterBuilders
- the recordFilterBuilders to setpublic RecordFilterBuilder[] getNonSecurityFilterBuilders()
public RecordFilterBuilder getSecurityFilterBuilder()
public RecordFilterBuilder[] getSecurityFilterBuilders()
public NavigationStateProcessor[] getNavigationStateProcessors()
public void setNavigationStateProcessors(NavigationStateProcessor[] pNavigationStateProcessors)
mNavigationStateProcessor
- the mNavigationStateProcessor to setprotected java.util.List<java.lang.String> parseRecordFilters(UrlState pUrlState) throws NavigationException
NavigationException
protected java.util.List<RangeFilter> parseRangeFilters(UrlState urlState) throws NavigationException
NavigationException
public static java.util.List<java.lang.String> splitRecordFilters(java.util.List<java.lang.String> pRecordFilters)
pRecordFilters
- The initial list of record filters to splitprotected FilterState parseFilterState(UrlState pUrlState) throws NavigationException
null
, uses the default
security filter provided by the default filter state.NavigationException
public NavigationState parseNavigationState(java.lang.String pQueryString, java.lang.String pPathInfo, java.lang.String pCharacterEncoding) throws NavigationException
Retrieve the NavigationStateProcessor component and invoke its process method passing in the NavigationState returned from calling super.
This method also ensures that the current request's pathInfo parameter has a value. This is necessary because when the Endeca SeoUrlFormatter is being used, it requires the pathInfo to parse the request.
NavigationException
public RecordState parseRecordState(java.lang.String pQueryString, java.lang.String pPathInfo, java.lang.String pCharacterEncoding) throws NavigationException
NavigationException