Package org.ametys.web.frontoffice
Class AbstractSearchGenerator.ContentTypeFacetField
- java.lang.Object
-
- org.ametys.web.frontoffice.AbstractSearchGenerator.ContentTypeFacetField
-
- All Implemented Interfaces:
AbstractSearchGenerator.FacetField
- Enclosing class:
- AbstractSearchGenerator
protected class AbstractSearchGenerator.ContentTypeFacetField extends Object implements AbstractSearchGenerator.FacetField
Facet field for content types
-
-
Field Summary
Fields Modifier and Type Field Description private SearchField
_field
-
Constructor Summary
Constructors Constructor Description ContentTypeFacetField(SearchField field)
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
-
-
Constructor Detail
-
ContentTypeFacetField
public ContentTypeFacetField(SearchField field)
Constructor- Parameters:
field
- The search field
-
-
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
-
-