Class CmsSearchController
java.lang.Object
org.opencms.jsp.search.controller.CmsSearchController
- All Implemented Interfaces:
I_CmsSearchController,I_CmsSearchControllerMain
The main controller that allows to access all single sub-controllers.
-
Field Summary
Fields inherited from interface org.opencms.jsp.search.controller.I_CmsSearchController
SET_VARIABLES -
Constructor Summary
ConstructorsConstructorDescriptionConstructor that sets up the controller with a given configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParametersForCurrentState(Map<String, String[]> parameters) Add the request parameters that reflect the controllers current state (useful for link generation outside of a form).voidaddQueryParts(CmsSolrQuery query, CmsObject cms) Generate the Solr query part specific for the controller, e.g., the part for a field facet.Returns the controller for common search (form) configurations.Returns the controller for "Did you mean ...?".Returns the controller for field facets.Returns the controller for the Geo filter.Returns the controller for highlighting.Returns the controller for pagination.Returns the controller for the query facet.Returns the controller for range facets.Returns the controller for sorting.voidUpdate the controllers state in case the term that is search for (the query as given by the user) has changed.voidupdateFromRequestParameters(Map<String, String[]> parameters, boolean unused) Update the controllers state from the given request parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.jsp.search.controller.I_CmsSearchController
addQueryParts
-
Constructor Details
-
CmsSearchController
Constructor that sets up the controller with a given configuration.- Parameters:
config- The search configuration handled by the controller.
-
-
Method Details
-
addParametersForCurrentState
Description copied from interface:I_CmsSearchControllerAdd the request parameters that reflect the controllers current state (useful for link generation outside of a form).- Specified by:
addParametersForCurrentStatein interfaceI_CmsSearchController- Parameters:
parameters- The request parameters reflecting the controllers currents state.- See Also:
-
addQueryParts
Description copied from interface:I_CmsSearchControllerGenerate the Solr query part specific for the controller, e.g., the part for a field facet.- Specified by:
addQueryPartsin interfaceI_CmsSearchController- Parameters:
query- A, possibly empty, query, where further query parts are addedcms- the current context to resolve context-specific macros.- See Also:
-
getCommon
Description copied from interface:I_CmsSearchControllerMainReturns the controller for common search (form) configurations.- Specified by:
getCommonin interfaceI_CmsSearchControllerMain- Returns:
- The controller for common search (form) configurations.
- See Also:
-
getDidYouMean
Description copied from interface:I_CmsSearchControllerMainReturns the controller for "Did you mean ...?".- Specified by:
getDidYouMeanin interfaceI_CmsSearchControllerMain- Returns:
- The controller for "Did you mean ...?".
- See Also:
-
getFieldFacets
Description copied from interface:I_CmsSearchControllerMainReturns the controller for field facets.- Specified by:
getFieldFacetsin interfaceI_CmsSearchControllerMain- Returns:
- The controller for field facets.
- See Also:
-
getGeoFilter
Description copied from interface:I_CmsSearchControllerMainReturns the controller for the Geo filter.- Specified by:
getGeoFilterin interfaceI_CmsSearchControllerMain- Returns:
- the controller for the Geo filter
- See Also:
-
getHighlighting
Description copied from interface:I_CmsSearchControllerMainReturns the controller for highlighting.- Specified by:
getHighlightingin interfaceI_CmsSearchControllerMain- Returns:
- The controller for highlighting.
- See Also:
-
getPagination
Description copied from interface:I_CmsSearchControllerMainReturns the controller for pagination.- Specified by:
getPaginationin interfaceI_CmsSearchControllerMain- Returns:
- The controller for highlighting.
- See Also:
-
getQueryFacet
Description copied from interface:I_CmsSearchControllerMainReturns the controller for the query facet.- Specified by:
getQueryFacetin interfaceI_CmsSearchControllerMain- Returns:
- The controller for the query facet.
- See Also:
-
getRangeFacets
Description copied from interface:I_CmsSearchControllerMainReturns the controller for range facets.- Specified by:
getRangeFacetsin interfaceI_CmsSearchControllerMain- Returns:
- The controller for range facets.
- See Also:
-
getSorting
Description copied from interface:I_CmsSearchControllerMainReturns the controller for sorting.- Specified by:
getSortingin interfaceI_CmsSearchControllerMain- Returns:
- The controller for sorting.
- See Also:
-
updateForQueryChange
Description copied from interface:I_CmsSearchControllerUpdate the controllers state in case the term that is search for (the query as given by the user) has changed.- Specified by:
updateForQueryChangein interfaceI_CmsSearchController- See Also:
-
updateFromRequestParameters
Description copied from interface:I_CmsSearchControllerUpdate the controllers state from the given request parameters.- Specified by:
updateFromRequestParametersin interfaceI_CmsSearchController- Parameters:
parameters- The request parameters.unused- a flag, indicating, if the search is performed repeatedly, opposed to entering the search page for the first time.- See Also:
-