Package org.opencms.jsp.search.result
Class CmsSearchStateParameters
java.lang.Object
org.opencms.jsp.search.result.CmsSearchStateParameters
- All Implemented Interfaces:
I_CmsSearchStateParameters
State parameter wrapper that allows to manipulate the request parameters representing the state
of the current search. It can be used to generate links for an adjusted search.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
Logger for the class. -
Constructor Summary
ConstructorDescriptionCmsSearchStateParameters
(I_CmsSearchResultWrapper result, Map<String, String[]> params) Constructor for a state parameters object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the search state parameters with the parameter for ignoring a facet's (specified by first key) limit added.Returns the search state parameters with the filter query for facets (specified by first key) item (specified by the second key) added.Returns the search state parameters with the Query parameter's value adjusted to the key of the map.Returns the search state parameters with the parameter for ignoring a facet's (specified by first key) limit removed.Returns the search state parameters with all filter queries for facets removed.Returns the search state parameters with all filter queries for the facet specified as key removed.Returns the search state parameters with the additional parameter (specified by first key) set to the value (specified by the second key).Returns the search state parameters with the value for the current page's parameter replaced by the key.Returns the search state parameters with the value for the sort parameter replaced by the key.Returns the search state parameters with the filter query for facets (specified by first key) item (specified by the second key) removed.Returns the search state parameters with the additional parameter (specified by the key) removed.static String
paramMapToString
(Map<String, String[]> parameters) Converts a parameter map to the parameter string.toString()
-
Field Details
-
LOG
Logger for the class.
-
-
Constructor Details
-
CmsSearchStateParameters
Constructor for a state parameters object.- Parameters:
result
- The search result, according to which the parameters are manipulated.params
- The original parameter set.
-
-
Method Details
-
paramMapToString
Converts a parameter map to the parameter string.- Parameters:
parameters
- the parameter map.- Returns:
- the parameter string.
-
getAddIgnoreFacetLimit
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the parameter for ignoring a facet's (specified by first key) limit added.- Specified by:
getAddIgnoreFacetLimit
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the parameter for ignoring a facet's (specified by first key) limit added.
- See Also:
-
getCheckFacetItem
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the filter query for facets (specified by first key) item (specified by the second key) added.- Specified by:
getCheckFacetItem
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the filter query for facets (specified by first key) item (specified by the second key) added.
- See Also:
-
getNewQuery
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the Query parameter's value adjusted to the key of the map.- Specified by:
getNewQuery
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the Query parameter's value adjusted to the key of the map.
- See Also:
-
getRemoveIgnoreFacetLimit
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the parameter for ignoring a facet's (specified by first key) limit removed.- Specified by:
getRemoveIgnoreFacetLimit
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the parameter for ignoring a facet's (specified by first key) limit removed.
- See Also:
-
getResetAllFacetStates
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with all filter queries for facets removed.- Specified by:
getResetAllFacetStates
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with all filter queries for facets removed.
- See Also:
-
getResetFacetState
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with all filter queries for the facet specified as key removed.- Specified by:
getResetFacetState
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with all filter queries for the facet specified as key removed.
- See Also:
-
getSetAdditionalParam
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the additional parameter (specified by first key) set to the value (specified by the second key).- Specified by:
getSetAdditionalParam
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the additional parameter (specified by first key) set to the value (specified by the second key).
- See Also:
-
getSetPage
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the value for the current page's parameter replaced by the key.- Specified by:
getSetPage
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the value for the current page's parameter replaced by the key.
- See Also:
-
getSetSortOption
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the value for the sort parameter replaced by the key.- Specified by:
getSetSortOption
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the value for the sort parameter replaced by the key.
- See Also:
-
getUncheckFacetItem
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the filter query for facets (specified by first key) item (specified by the second key) removed.- Specified by:
getUncheckFacetItem
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the filter query for facets (specified by first key) item (specified by the second key) removed.
- See Also:
-
getUnsetAdditionalParam
Description copied from interface:I_CmsSearchStateParameters
Returns the search state parameters with the additional parameter (specified by the key) removed.- Specified by:
getUnsetAdditionalParam
in interfaceI_CmsSearchStateParameters
- Returns:
- The search state parameters with the additional parameter (specified by the key) removed.
- See Also:
-
toString
-