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 SummaryConstructors
- 
Method SummaryModifier 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- 
CmsSearchStateFacetpublic CmsSearchStateFacet()Default constructor.
 
- 
- 
Method Details- 
addCheckedDescription copied from interface:I_CmsSearchStateFacetAdd a facet entry to the collection of checked entries.- Specified by:
- addCheckedin interface- I_CmsSearchStateFacet
- Parameters:
- entry- The facet entry.
- See Also:
 
- 
clearCheckedDescription copied from interface:I_CmsSearchStateFacetClear the collection of checked entries - i.e., tell that nothing is checked.- Specified by:
- clearCheckedin interface- I_CmsSearchStateFacet
- See Also:
 
- 
getCheckedEntriesDescription copied from interface:I_CmsSearchStateFacetReturns all checked entries of a facet.- Specified by:
- getCheckedEntriesin interface- I_CmsSearchStateFacet
- Returns:
- List of the facet's entries that are checked.
- See Also:
 
- 
getIgnoreCheckedDescription copied from interface:I_CmsSearchStateFacetReturns a flag, indicating if the checked entries should be ignored.- Specified by:
- getIgnoreCheckedin interface- I_CmsSearchStateFacet
- Returns:
- Flag, indicating if the checked entries should be ignored.
- See Also:
 
- 
getIsCheckedDescription copied from interface:I_CmsSearchStateFacetReturns a map that tells for each facet entry (an arbitrary string), if it is checked.- Specified by:
- getIsCheckedin interface- I_CmsSearchStateFacet
- Returns:
- Map from facet entries to their check state.
- See Also:
 
- 
getUseLimitDescription copied from interface:I_CmsSearchStateFacetReturns a flag, indicating if the limit for the maximal number of facet entries should be used.- Specified by:
- getUseLimitin interface- I_CmsSearchStateFacet
- Returns:
- A flag, indicating if the limit for the maximal number of facet entries should be used.
- See Also:
 
- 
setIgnoreCheckedDescription 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 interface- I_CmsSearchStateFacet
- Parameters:
- ignore- Flag, indicating if the checked entries should be ignored or not.
- See Also:
 
- 
setUseLimitDescription copied from interface:I_CmsSearchStateFacetSet, if the limit for the maximal number of facet entries should be used.- Specified by:
- setUseLimitin interface- I_CmsSearchStateFacet
- Parameters:
- useLimit- Flag, indicating if the configured limit for the maximal number of facet entries should be used.
- See Also:
 
 
-