public class CmsSearchControllerFacetsField extends java.lang.Object implements I_CmsSearchControllerFacetsField
SET_VARIABLES| Constructor and Description |
|---|
CmsSearchControllerFacetsField(java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetField> configs)
Constructor taking the list of field facet controllers that are aggregated.
|
| 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.
|
java.util.Map<java.lang.String,I_CmsSearchControllerFacetField> |
getFieldFacetController()
Get access to the controllers by the field facet's names.
|
java.util.Collection<I_CmsSearchControllerFacetField> |
getFieldFacetControllers()
Get the collection of all field facet controllers.
|
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 isReloaded)
Update the controllers state from the given request parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddQueryPartspublic CmsSearchControllerFacetsField(java.util.Map<java.lang.String,I_CmsSearchConfigurationFacetField> configs)
configs - The controllers for single field facets.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 java.util.Map<java.lang.String,I_CmsSearchControllerFacetField> getFieldFacetController()
I_CmsSearchControllerFacetsFieldgetFieldFacetController in interface I_CmsSearchControllerFacetsFieldI_CmsSearchControllerFacetsField.getFieldFacetController()public java.util.Collection<I_CmsSearchControllerFacetField> getFieldFacetControllers()
I_CmsSearchControllerFacetsFieldgetFieldFacetControllers in interface I_CmsSearchControllerFacetsFieldI_CmsSearchControllerFacetsField.getFieldFacetControllers()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 isReloaded)
I_CmsSearchControllerupdateFromRequestParameters in interface I_CmsSearchControllerparameters - The request parameters.isReloaded - 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)