public class CmsSearchConfigurationFacet extends java.lang.Object implements I_CmsSearchConfigurationFacet
I_CmsSearchConfigurationFacet.SortOrder| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_ignoreFacetFilters
A flag, indicating if checked entries from other facets should influence the facet or not.
|
protected java.lang.String |
m_ignoreTags
Tags of filter-queries that should not be applied to the facet.
|
protected boolean |
m_isAndFacet
A flag, indicating if facet filter queries should be concatenated by AND.
|
protected java.lang.String |
m_label
A label that can be displayed in the form, e.g., at top of the facet.
|
protected java.lang.Integer |
m_minCount
The minimal number of hits required to add an entry to a facet.
|
protected java.lang.String |
m_name
A name used to identify the facet when showing it in the search form.
|
protected java.util.List<java.lang.String> |
m_preselection
The sorting of facet entries.
|
| Constructor and Description |
|---|
CmsSearchConfigurationFacet(java.lang.Integer minCount,
java.lang.String label,
java.lang.String name,
java.lang.Boolean isAndFacet,
java.util.List<java.lang.String> preselection,
java.lang.Boolean ignoreFiltersFromFacets)
The constructor setting all configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIgnoreAllFacetFilters()
Returns true if the filters of all facets are not applied when calculating the facet items.
|
java.lang.String |
getIgnoreMaxParamKey()
Returns the facet specific request parameter used to send the information if the maximum number of facet entries should be ignored.
|
java.lang.String |
getIgnoreTags()
Returns the tags of other facets, for which the filters from this facet should be ignored.
|
boolean |
getIsAndFacet()
Returns true if the facet filters, such that only documents with all checked facet entries appear, otherwise false.
|
java.lang.String |
getLabel()
Returns the label that is intended to be displayed over the facet's entries.
|
java.lang.Integer |
getMinCount()
Returns the minimal number of hits necessary to show a facet entry.
|
java.lang.String |
getName()
Returns the name used to identify the facet.
|
java.lang.String |
getParamKey()
Returns the facet specific request parameter used to send the checked facet entries.
|
java.util.List<java.lang.String> |
getPreSelection()
A list of facet-entries that should be preselected, if the search form is rendered the first time.
|
void |
propagateAllFacetNames(java.util.Collection<java.lang.String> names)
Propagate the names of the other facets that are configured.
|
protected java.lang.Integer m_minCount
protected java.lang.String m_name
protected java.lang.String m_label
protected java.util.List<java.lang.String> m_preselection
protected boolean m_isAndFacet
protected boolean m_ignoreFacetFilters
protected java.lang.String m_ignoreTags
public CmsSearchConfigurationFacet(java.lang.Integer minCount, java.lang.String label, java.lang.String name, java.lang.Boolean isAndFacet, java.util.List<java.lang.String> preselection, java.lang.Boolean ignoreFiltersFromFacets)
minCount - The minimal number of hits required to add an entry to a facet.label - A label that can be displayed in the form, e.g., at top of the facet.name - An optional name for the facetisAndFacet - If set to true, the facets filters for results containing all checked entries. Otherwise it filters for results containing at least one checked entry.preselection - A list with entries that should be preselected in the facet, when the search page is called the first time.ignoreFiltersFromFacets - A flag, indicating if filters from other facets should be ignored or not.public boolean getIgnoreAllFacetFilters()
I_CmsSearchConfigurationFacetgetIgnoreAllFacetFilters in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getIgnoreAllFacetFilters()public java.lang.String getIgnoreMaxParamKey()
I_CmsSearchConfigurationFacetgetIgnoreMaxParamKey in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getIgnoreMaxParamKey()public java.lang.String getIgnoreTags()
I_CmsSearchConfigurationFacetgetIgnoreTags in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getIgnoreTags()public boolean getIsAndFacet()
I_CmsSearchConfigurationFacetgetIsAndFacet in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getIsAndFacet()public java.lang.String getLabel()
I_CmsSearchConfigurationFacetgetLabel in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getLabel()public java.lang.Integer getMinCount()
I_CmsSearchConfigurationFacetgetMinCount in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getMinCount()public java.lang.String getName()
I_CmsSearchConfigurationFacetgetName in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getName()public java.lang.String getParamKey()
I_CmsSearchConfigurationFacetgetParamKey in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getParamKey()public java.util.List<java.lang.String> getPreSelection()
I_CmsSearchConfigurationFacetgetPreSelection in interface I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.getPreSelection()public void propagateAllFacetNames(java.util.Collection<java.lang.String> names)
I_CmsSearchConfigurationFacetpropagateAllFacetNames in interface I_CmsSearchConfigurationFacetnames - the names of the other facetsI_CmsSearchConfigurationFacet.propagateAllFacetNames(java.util.Collection)