Package org.opencms.jsp.search.state
Class CmsSearchStateCommon
java.lang.Object
org.opencms.jsp.search.state.CmsSearchStateCommon
- All Implemented Interfaces:
I_CmsSearchStateCommon
Class for handling the state of the common search options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the map from the additional request parameters to their values.boolean
Getter for the flag indicating if the search is called the first time, or reloaded.Returns the last query string (as entered by the user).getQuery()
Returns the current query string (as entered by the user).void
setAdditionalParameters
(Map<String, String> parameters) Setter for the additional parameters and their values.void
setIsReloaded
(boolean isReloaded) Setter for the flag indicating if the search is called the first time, or reloaded.void
setLastQuery
(String lastquery) Setter for the last query string (as entered by the user).void
Setter for the current query string (as entered by the user).
-
Constructor Details
-
CmsSearchStateCommon
public CmsSearchStateCommon()
-
-
Method Details
-
getAdditionalParameters
Description copied from interface:I_CmsSearchStateCommon
Getter for the map from the additional request parameters to their values.- Specified by:
getAdditionalParameters
in interfaceI_CmsSearchStateCommon
- Returns:
- The map from the additional request parameters to their values.
- See Also:
-
getIsReloaded
Description copied from interface:I_CmsSearchStateCommon
Getter for the flag indicating if the search is called the first time, or reloaded.- Specified by:
getIsReloaded
in interfaceI_CmsSearchStateCommon
- Returns:
- Typically, false only if the search form is loaded the first time, otherwise it should be true.
- See Also:
-
getLastQuery
Description copied from interface:I_CmsSearchStateCommon
Returns the last query string (as entered by the user).- Specified by:
getLastQuery
in interfaceI_CmsSearchStateCommon
- Returns:
- The last query string (as entered by the user).
- See Also:
-
getQuery
Description copied from interface:I_CmsSearchStateCommon
Returns the current query string (as entered by the user).- Specified by:
getQuery
in interfaceI_CmsSearchStateCommon
- Returns:
- The current query string (as entered by the user).
- See Also:
-
setAdditionalParameters
Description copied from interface:I_CmsSearchStateCommon
Setter for the additional parameters and their values.- Specified by:
setAdditionalParameters
in interfaceI_CmsSearchStateCommon
- Parameters:
parameters
- Map from the additional parameters and their values.- See Also:
-
setIsReloaded
Description copied from interface:I_CmsSearchStateCommon
Setter for the flag indicating if the search is called the first time, or reloaded.- Specified by:
setIsReloaded
in interfaceI_CmsSearchStateCommon
- Parameters:
isReloaded
- Typically false only if the search form is loaded the first time, otherwise it should be true.- See Also:
-
setLastQuery
Description copied from interface:I_CmsSearchStateCommon
Setter for the last query string (as entered by the user).- Specified by:
setLastQuery
in interfaceI_CmsSearchStateCommon
- Parameters:
lastquery
- The last query string (as entered by the user).- See Also:
-
setQuery
Description copied from interface:I_CmsSearchStateCommon
Setter for the current query string (as entered by the user).- Specified by:
setQuery
in interfaceI_CmsSearchStateCommon
- Parameters:
query
- The current query string (as entered by the user).- See Also:
-