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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the map from the additional request parameters to their values.booleanGetter 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).voidsetAdditionalParameters(Map<String, String> parameters) Setter for the additional parameters and their values.voidsetIsReloaded(boolean isReloaded) Setter for the flag indicating if the search is called the first time, or reloaded.voidsetLastQuery(String lastquery) Setter for the last query string (as entered by the user).voidSetter for the current query string (as entered by the user).
-
Constructor Details
-
CmsSearchStateCommon
public CmsSearchStateCommon()
-
-
Method Details
-
getAdditionalParameters
Description copied from interface:I_CmsSearchStateCommonGetter for the map from the additional request parameters to their values.- Specified by:
getAdditionalParametersin interfaceI_CmsSearchStateCommon- Returns:
- The map from the additional request parameters to their values.
- See Also:
-
getIsReloaded
Description copied from interface:I_CmsSearchStateCommonGetter for the flag indicating if the search is called the first time, or reloaded.- Specified by:
getIsReloadedin 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_CmsSearchStateCommonReturns the last query string (as entered by the user).- Specified by:
getLastQueryin interfaceI_CmsSearchStateCommon- Returns:
- The last query string (as entered by the user).
- See Also:
-
getQuery
Description copied from interface:I_CmsSearchStateCommonReturns the current query string (as entered by the user).- Specified by:
getQueryin interfaceI_CmsSearchStateCommon- Returns:
- The current query string (as entered by the user).
- See Also:
-
setAdditionalParameters
Description copied from interface:I_CmsSearchStateCommonSetter for the additional parameters and their values.- Specified by:
setAdditionalParametersin interfaceI_CmsSearchStateCommon- Parameters:
parameters- Map from the additional parameters and their values.- See Also:
-
setIsReloaded
Description copied from interface:I_CmsSearchStateCommonSetter for the flag indicating if the search is called the first time, or reloaded.- Specified by:
setIsReloadedin 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_CmsSearchStateCommonSetter for the last query string (as entered by the user).- Specified by:
setLastQueryin interfaceI_CmsSearchStateCommon- Parameters:
lastquery- The last query string (as entered by the user).- See Also:
-
setQuery
Description copied from interface:I_CmsSearchStateCommonSetter for the current query string (as entered by the user).- Specified by:
setQueryin interfaceI_CmsSearchStateCommon- Parameters:
query- The current query string (as entered by the user).- See Also:
-