Package org.ametys.web.frontoffice
Class AbstractSearchGenerator.AttributeFacetField
java.lang.Object
org.ametys.web.frontoffice.AbstractSearchGenerator.AttributeFacetField
- All Implemented Interfaces:
AbstractSearchGenerator.FacetField
- Enclosing class:
AbstractSearchGenerator
protected class AbstractSearchGenerator.AttributeFacetField
extends Object
implements AbstractSearchGenerator.FacetField
Facet field for an attribute
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeFacetField(SearcherFactory.FacetDefinition facetDefinition, ModelItem modelItem, org.slf4j.Logger logger) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the definition for this facetgetFacetLabel(String value, Locale currentLocale) Get the label for a facet valuegetLabel()Get the label of the facet
-
Constructor Details
-
AttributeFacetField
public AttributeFacetField(SearcherFactory.FacetDefinition facetDefinition, ModelItem modelItem, org.slf4j.Logger logger) Constructor- Parameters:
facetDefinition- The facet definitionmodelItem- The model itemlogger- The logger
-
-
Method Details
-
getFacetDefinition
Description copied from interface:AbstractSearchGenerator.FacetFieldGet the definition for this facet- Specified by:
getFacetDefinitionin interfaceAbstractSearchGenerator.FacetField- Returns:
- the facet definition
-
getLabel
Description copied from interface:AbstractSearchGenerator.FacetFieldGet the label of the facet- Specified by:
getLabelin interfaceAbstractSearchGenerator.FacetField- Returns:
- the label
-
getFacetLabel
Description copied from interface:AbstractSearchGenerator.FacetFieldGet the label for a facet value- Specified by:
getFacetLabelin interfaceAbstractSearchGenerator.FacetField- Parameters:
value- the valuecurrentLocale- the current locale- Returns:
- the label for this value
-