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
ConstructorDescriptionAttributeFacetField
(SearchField field, ModelItem modelItem, Logger logger) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetFacetLabel
(String value, Locale currentLocale) Get the label for a facet valuegetLabel()
Get the label of the facetGet the search field for this facet
-
Constructor Details
-
AttributeFacetField
Constructor- Parameters:
field
- The search fieldmodelItem
- The model itemlogger
- The logger
-
-
Method Details
-
getSearchField
Description copied from interface:AbstractSearchGenerator.FacetField
Get the search field for this facet- Specified by:
getSearchField
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the search field
-
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
-