Class CmsSearchControllerFacetsField
java.lang.Object
org.opencms.jsp.search.controller.CmsSearchControllerFacetsField
- All Implemented Interfaces:
I_CmsSearchController
,I_CmsSearchControllerFacetsField
public class CmsSearchControllerFacetsField
extends Object
implements I_CmsSearchControllerFacetsField
Search controller as aggregation of all single field facet controllers.
-
Field Summary
Fields inherited from interface org.opencms.jsp.search.controller.I_CmsSearchController
SET_VARIABLES
-
Constructor Summary
ConstructorDescriptionConstructor taking the list of field facet controllers that are aggregated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParametersForCurrentState
(Map<String, 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.Get access to the controllers by the field facet's names.Get the collection of all field facet controllers.void
Update the controllers state in case the term that is search for (the query as given by the user) has changed.void
updateFromRequestParameters
(Map<String, String[]> parameters, boolean isReloaded) 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, wait
Methods inherited from interface org.opencms.jsp.search.controller.I_CmsSearchController
addQueryParts
-
Constructor Details
-
CmsSearchControllerFacetsField
Constructor taking the list of field facet controllers that are aggregated.- Parameters:
configs
- The controllers for single field facets.
-
-
Method Details
-
addParametersForCurrentState
Description copied from interface:I_CmsSearchController
Add the request parameters that reflect the controllers current state (useful for link generation outside of a form).- Specified by:
addParametersForCurrentState
in interfaceI_CmsSearchController
- Parameters:
parameters
- The request parameters reflecting the controllers currents state.- See Also:
-
addQueryParts
Description copied from interface:I_CmsSearchController
Generate the Solr query part specific for the controller, e.g., the part for a field facet.- Specified by:
addQueryParts
in interfaceI_CmsSearchController
- Parameters:
query
- A, possibly empty, query, where further query parts are addedcms
- the current context to resolve context-specific macros.- See Also:
-
getFieldFacetController
Description copied from interface:I_CmsSearchControllerFacetsField
Get access to the controllers by the field facet's names.- Specified by:
getFieldFacetController
in interfaceI_CmsSearchControllerFacetsField
- Returns:
- The map with all field facet controllers, where the facet's names are the keys and the facet's controllers are the values.
- See Also:
-
getFieldFacetControllers
Description copied from interface:I_CmsSearchControllerFacetsField
Get the collection of all field facet controllers.- Specified by:
getFieldFacetControllers
in interfaceI_CmsSearchControllerFacetsField
- Returns:
- The collection of all field facet controllers.
- See Also:
-
updateForQueryChange
Description copied from interface:I_CmsSearchController
Update the controllers state in case the term that is search for (the query as given by the user) has changed.- Specified by:
updateForQueryChange
in interfaceI_CmsSearchController
- See Also:
-
updateFromRequestParameters
Description copied from interface:I_CmsSearchController
Update the controllers state from the given request parameters.- Specified by:
updateFromRequestParameters
in interfaceI_CmsSearchController
- Parameters:
parameters
- The request parameters.isReloaded
- a flag, indicating, if the search is performed repeatedly, opposed to entering the search page for the first time.- See Also:
-