Package org.opencms.jsp.search.state
Class CmsSearchStateFacet
java.lang.Object
org.opencms.jsp.search.state.CmsSearchStateFacet
- All Implemented Interfaces:
I_CmsSearchStateFacet
Class for keeping the state common for all facet types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChecked
(String entry) Add a facet entry to the collection of checked entries.void
Clear the collection of checked entries - i.e., tell that nothing is checked.Returns all checked entries of a facet.boolean
Returns a flag, indicating if the checked entries should be ignored.Returns a map that tells for each facet entry (an arbitrary string), if it is checked.boolean
Returns a flag, indicating if the limit for the maximal number of facet entries should be used.void
setIgnoreChecked
(boolean ignore) Set, if the checked facet entries should be ignored.void
setUseLimit
(boolean useLimit) Set, if the limit for the maximal number of facet entries should be used.
-
Constructor Details
-
CmsSearchStateFacet
public CmsSearchStateFacet()Default constructor.
-
-
Method Details
-
addChecked
Description copied from interface:I_CmsSearchStateFacet
Add a facet entry to the collection of checked entries.- Specified by:
addChecked
in interfaceI_CmsSearchStateFacet
- Parameters:
entry
- The facet entry.- See Also:
-
clearChecked
Description copied from interface:I_CmsSearchStateFacet
Clear the collection of checked entries - i.e., tell that nothing is checked.- Specified by:
clearChecked
in interfaceI_CmsSearchStateFacet
- See Also:
-
getCheckedEntries
Description copied from interface:I_CmsSearchStateFacet
Returns all checked entries of a facet.- Specified by:
getCheckedEntries
in interfaceI_CmsSearchStateFacet
- Returns:
- List of the facet's entries that are checked.
- See Also:
-
getIgnoreChecked
Description copied from interface:I_CmsSearchStateFacet
Returns a flag, indicating if the checked entries should be ignored.- Specified by:
getIgnoreChecked
in interfaceI_CmsSearchStateFacet
- Returns:
- Flag, indicating if the checked entries should be ignored.
- See Also:
-
getIsChecked
Description copied from interface:I_CmsSearchStateFacet
Returns a map that tells for each facet entry (an arbitrary string), if it is checked.- Specified by:
getIsChecked
in interfaceI_CmsSearchStateFacet
- Returns:
- Map from facet entries to their check state.
- See Also:
-
getUseLimit
Description copied from interface:I_CmsSearchStateFacet
Returns a flag, indicating if the limit for the maximal number of facet entries should be used.- Specified by:
getUseLimit
in interfaceI_CmsSearchStateFacet
- Returns:
- A flag, indicating if the limit for the maximal number of facet entries should be used.
- See Also:
-
setIgnoreChecked
Description copied from interface:I_CmsSearchStateFacet
Set, if the checked facet entries should be ignored. (This influences the generated query part, by (not) adding specific filter queries.)- Specified by:
setIgnoreChecked
in interfaceI_CmsSearchStateFacet
- Parameters:
ignore
- Flag, indicating if the checked entries should be ignored or not.- See Also:
-
setUseLimit
Description copied from interface:I_CmsSearchStateFacet
Set, if the limit for the maximal number of facet entries should be used.- Specified by:
setUseLimit
in interfaceI_CmsSearchStateFacet
- Parameters:
useLimit
- Flag, indicating if the configured limit for the maximal number of facet entries should be used.- See Also:
-