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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChecked(String entry) Add a facet entry to the collection of checked entries.voidClear the collection of checked entries - i.e., tell that nothing is checked.Returns all checked entries of a facet.booleanReturns 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.booleanReturns a flag, indicating if the limit for the maximal number of facet entries should be used.voidsetIgnoreChecked(boolean ignore) Set, if the checked facet entries should be ignored.voidsetUseLimit(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_CmsSearchStateFacetAdd a facet entry to the collection of checked entries.- Specified by:
addCheckedin interfaceI_CmsSearchStateFacet- Parameters:
entry- The facet entry.- See Also:
-
clearChecked
Description copied from interface:I_CmsSearchStateFacetClear the collection of checked entries - i.e., tell that nothing is checked.- Specified by:
clearCheckedin interfaceI_CmsSearchStateFacet- See Also:
-
getCheckedEntries
Description copied from interface:I_CmsSearchStateFacetReturns all checked entries of a facet.- Specified by:
getCheckedEntriesin interfaceI_CmsSearchStateFacet- Returns:
- List of the facet's entries that are checked.
- See Also:
-
getIgnoreChecked
Description copied from interface:I_CmsSearchStateFacetReturns a flag, indicating if the checked entries should be ignored.- Specified by:
getIgnoreCheckedin interfaceI_CmsSearchStateFacet- Returns:
- Flag, indicating if the checked entries should be ignored.
- See Also:
-
getIsChecked
Description copied from interface:I_CmsSearchStateFacetReturns a map that tells for each facet entry (an arbitrary string), if it is checked.- Specified by:
getIsCheckedin interfaceI_CmsSearchStateFacet- Returns:
- Map from facet entries to their check state.
- See Also:
-
getUseLimit
Description copied from interface:I_CmsSearchStateFacetReturns a flag, indicating if the limit for the maximal number of facet entries should be used.- Specified by:
getUseLimitin 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_CmsSearchStateFacetSet, if the checked facet entries should be ignored. (This influences the generated query part, by (not) adding specific filter queries.)- Specified by:
setIgnoreCheckedin interfaceI_CmsSearchStateFacet- Parameters:
ignore- Flag, indicating if the checked entries should be ignored or not.- See Also:
-
setUseLimit
Description copied from interface:I_CmsSearchStateFacetSet, if the limit for the maximal number of facet entries should be used.- Specified by:
setUseLimitin interfaceI_CmsSearchStateFacet- Parameters:
useLimit- Flag, indicating if the configured limit for the maximal number of facet entries should be used.- See Also:
-