public class CmsSearchController extends java.lang.Object implements I_CmsSearchControllerMain
SET_VARIABLES| Constructor and Description |
|---|
CmsSearchController(I_CmsSearchConfiguration config)
Constructor that sets up the controller with a given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParametersForCurrentState(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Add the request parameters that reflect the controllers current state (useful for link generation outside of a form).
|
void |
addQueryParts(CmsSolrQuery query,
CmsObject cms)
Generate the Solr query part specific for the controller, e.g., the part for a field facet.
|
I_CmsSearchControllerCommon |
getCommon()
Returns the controller for common search (form) configurations.
|
I_CmsSearchControllerDidYouMean |
getDidYouMean()
Returns the controller for "Did you mean ...?".
|
I_CmsSearchControllerFacetsField |
getFieldFacets()
Returns the controller for field facets.
|
I_CmsSearchControllerHighlighting |
getHighlighting()
Returns the controller for highlighting.
|
I_CmsSearchControllerPagination |
getPagination()
Returns the controller for pagination.
|
I_CmsSearchControllerFacetQuery |
getQueryFacet()
Returns the controller for the query facet.
|
I_CmsSearchControllerFacetsRange |
getRangeFacets()
Returns the controller for range facets.
|
I_CmsSearchControllerSorting |
getSorting()
Returns the controller for sorting.
|
void |
updateForQueryChange()
Update the controllers state in case the term that is search for (the query as given by the user) has changed.
|
void |
updateFromRequestParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters,
boolean unused)
Update the controllers state from the given request parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddQueryPartspublic CmsSearchController(I_CmsSearchConfiguration config)
config - The search configuration handled by the controller.public void addParametersForCurrentState(java.util.Map<java.lang.String,java.lang.String[]> parameters)
I_CmsSearchControlleraddParametersForCurrentState in interface I_CmsSearchControllerparameters - The request parameters reflecting the controllers currents state.I_CmsSearchController.addParametersForCurrentState(java.util.Map)public void addQueryParts(CmsSolrQuery query, CmsObject cms)
I_CmsSearchControlleraddQueryParts in interface I_CmsSearchControllerquery - A, possibly empty, query, where further query parts are addedcms - the current context to resolve context-specific macros.I_CmsSearchController.addQueryParts(CmsSolrQuery, CmsObject)public I_CmsSearchControllerCommon getCommon()
I_CmsSearchControllerMaingetCommon in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getCommon()public I_CmsSearchControllerDidYouMean getDidYouMean()
I_CmsSearchControllerMaingetDidYouMean in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getDidYouMean()public I_CmsSearchControllerFacetsField getFieldFacets()
I_CmsSearchControllerMaingetFieldFacets in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getFieldFacets()public I_CmsSearchControllerHighlighting getHighlighting()
I_CmsSearchControllerMaingetHighlighting in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getHighlighting()public I_CmsSearchControllerPagination getPagination()
I_CmsSearchControllerMaingetPagination in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getPagination()public I_CmsSearchControllerFacetQuery getQueryFacet()
I_CmsSearchControllerMaingetQueryFacet in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getQueryFacet()public I_CmsSearchControllerFacetsRange getRangeFacets()
I_CmsSearchControllerMaingetRangeFacets in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getRangeFacets()public I_CmsSearchControllerSorting getSorting()
I_CmsSearchControllerMaingetSorting in interface I_CmsSearchControllerMainI_CmsSearchControllerMain.getSorting()public void updateForQueryChange()
I_CmsSearchControllerupdateForQueryChange in interface I_CmsSearchControllerI_CmsSearchController.updateForQueryChange()public void updateFromRequestParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters, boolean unused)
I_CmsSearchControllerupdateFromRequestParameters in interface I_CmsSearchControllerparameters - The request parameters.unused - a flag, indicating, if the search is performed repeatedly, opposed to entering the search page for the first time.I_CmsSearchController.updateFromRequestParameters(java.util.Map, boolean)