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, 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, Logger logger) Constructor- Parameters:
facetDefinition
- The facet definitionmodelItem
- The model itemlogger
- The logger
-
-
Method Details
-
getFacetDefinition
Description copied from interface:AbstractSearchGenerator.FacetField
Get the definition for this facet- Specified by:
getFacetDefinition
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the facet definition
-
getLabel
Description copied from interface:AbstractSearchGenerator.FacetField
Get the label of the facet- Specified by:
getLabel
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the label
-
getFacetLabel
Description copied from interface:AbstractSearchGenerator.FacetField
Get the label for a facet value- Specified by:
getFacetLabel
in interfaceAbstractSearchGenerator.FacetField
- Parameters:
value
- the valuecurrentLocale
- the current locale- Returns:
- the label for this value
-