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
-
-
Field Summary
Fields Modifier and Type Field Description private SearchField
_field
private org.slf4j.Logger
_logger
private ModelItem
_modelItem
-
Constructor Summary
Constructors Constructor Description AttributeFacetField(SearchField field, ModelItem modelItem, org.slf4j.Logger logger)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getFacetLabel(String value, Locale currentLocale)
Get the label for a facet valueI18nizableText
getLabel()
Get the label of the facetSearchField
getSearchField()
Get the search field for this facet
-
-
-
Field Detail
-
_field
private SearchField _field
-
_modelItem
private ModelItem _modelItem
-
_logger
private org.slf4j.Logger _logger
-
-
Constructor Detail
-
AttributeFacetField
public AttributeFacetField(SearchField field, ModelItem modelItem, org.slf4j.Logger logger)
Constructor- Parameters:
field
- The search fieldmodelItem
- The model itemlogger
- The logger
-
-
Method Detail
-
getSearchField
public SearchField 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
public I18nizableText getLabel()
Description copied from interface:AbstractSearchGenerator.FacetField
Get the label of the facet- Specified by:
getLabel
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the label
-
getFacetLabel
public I18nizableText getFacetLabel(String value, Locale currentLocale)
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
-
-