public class CmsSearchControllerFacetRange extends java.lang.Object implements I_CmsSearchControllerFacetRange
SET_VARIABLES
Constructor and Description |
---|
CmsSearchControllerFacetRange(I_CmsSearchConfigurationFacetRange config)
Constructor taking the managed configuration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFacetOptions(java.lang.StringBuffer query)
Adds the query parts for the facet options, except the filter parts.
|
protected void |
addFacetPart(CmsSolrQuery query)
Generate query part for the facet, without filters.
|
protected void |
addFilterQueryParts(CmsSolrQuery query)
Adds filter parts to the query.
|
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)
Generate the Solr query part specific for the controller, e.g., the part for a field facet.
|
protected void |
appendFacetOption(java.lang.StringBuffer query,
java.lang.String name,
java.lang.String value)
Appends the query part for the facet to the query string.
|
I_CmsSearchConfigurationFacetRange |
getConfig()
Returns the configuration.
|
I_CmsSearchStateFacet |
getState()
Returns the state.
|
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.
|
public CmsSearchControllerFacetRange(I_CmsSearchConfigurationFacetRange config)
config
- The configuration to manage by the controller.public void addParametersForCurrentState(java.util.Map<java.lang.String,java.lang.String[]> parameters)
I_CmsSearchController
addParametersForCurrentState
in interface I_CmsSearchController
parameters
- The request parameters reflecting the controllers currents state.I_CmsSearchController.addParametersForCurrentState(java.util.Map)
public void addQueryParts(CmsSolrQuery query)
I_CmsSearchController
addQueryParts
in interface I_CmsSearchController
query
- A, possibly empty, query, where further query parts are addedI_CmsSearchController.addQueryParts(CmsSolrQuery)
public I_CmsSearchConfigurationFacetRange getConfig()
I_CmsSearchControllerFacetRange
getConfig
in interface I_CmsSearchControllerFacetRange
I_CmsSearchControllerFacetRange.getConfig()
public I_CmsSearchStateFacet getState()
I_CmsSearchControllerFacetRange
getState
in interface I_CmsSearchControllerFacetRange
I_CmsSearchControllerFacetRange.getState()
public void updateForQueryChange()
I_CmsSearchController
updateForQueryChange
in interface I_CmsSearchController
I_CmsSearchController.updateForQueryChange()
public void updateFromRequestParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters, boolean isReloaded)
I_CmsSearchController
updateFromRequestParameters
in interface I_CmsSearchController
parameters
- 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)
protected void addFacetOptions(java.lang.StringBuffer query)
query
- The query part that is extended with the facet options.protected void addFacetPart(CmsSolrQuery query)
query
- The query, where the facet part should be addedprotected void addFilterQueryParts(CmsSolrQuery query)
query
- The query.protected void appendFacetOption(java.lang.StringBuffer query, java.lang.String name, java.lang.String value)
query
- The current query string.name
- The name of the facet parameter, e.g. "limit", "order", ....value
- The value to set for the parameter specified by name.