org.opencms.jsp.search.config.I_CmsSearchConfigurationFacet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencms-test Show documentation
Show all versions of opencms-test Show documentation
OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.
/*
* This library is part of OpenCms -
* the Open Source Content Management System
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software, please see the
* company website: http://www.alkacon.com
*
* For further information about OpenCms, please see the
* project website: http://www.opencms.org
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.opencms.jsp.search.config;
import java.util.Collection;
import java.util.List;
/** Configuration common to all facets. Used as base interface for all special facet interfaces. */
public interface I_CmsSearchConfigurationFacet {
/** Sort orders available for Solr facet entries. */
public enum SortOrder {
/**
* Sort by the number of hits.
*/
count, /**
* Sort alphabetically.
*/
index
}
/** Returns true if the filters of all facets are not applied when calculating the facet items. Otherwise returns false.
* @return A flag, indicating if the filters of facet's should be ignored or not.
*/
boolean getIgnoreAllFacetFilters();
/** Returns the facet specific request parameter used to send the information if the maximum number of facet entries should be ignored.
* @return The facet specific request parameter used to send the information if the maximum number of facet entries should be ignored.
*/
String getIgnoreMaxParamKey();
/**
* Returns the tags of other facets, for which the filters from this facet should be ignored.
* @return the tags of other facets, for which the filters from this facet should be ignored.
*/
String getIgnoreTags();
/** Returns true if the facet filters, such that only documents with all checked facet entries appear, otherwise false.
* @return A flag, indicating if the facet's filters are concatenated by AND (or OR).
*/
boolean getIsAndFacet();
/** Returns the label that is intended to be displayed over the facet's entries.
* @return The label that is intended to be displayed over the facet's entries.
*/
String getLabel();
/** Returns the minimal number of hits necessary to show a facet entry.
* @return The minimal number of hits necessary to show a facet entry. (Solr: facet.mincount)
*/
Integer getMinCount();
/** Returns the name used to identify the facet.
* @return The name used to identify the facet.
*/
String getName();
/** Returns the facet specific request parameter used to send the checked facet entries.
* @return The facet specific request parameter used to send the checked facet entries.
*/
String getParamKey();
/** A list of facet-entries that should be preselected, if the search form is rendered the first time.
* @return The list of facet-entries that should be preselected, if the search form is rendered the first time.
*/
List getPreSelection();
/** Propagate the names of the other facets that are configured.
* @param names the names of the other facets
*/
void propagateAllFacetNames(Collection names);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy