Class ContentFacetDefinition
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.ContentFacetDefinition
-
- All Implemented Interfaces:
FacetDefinition
public class ContentFacetDefinition extends Object implements FacetDefinition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ContentFacetDefinition.ProxySearchField
-
Field Summary
Fields Modifier and Type Field Description (package private) ContentSearchCriterionDefinition
_contentSearchCriterionDefinition
(package private) Returnable
_returnable
-
Constructor Summary
Constructors Constructor Description ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getFacetLabel(String value, String currentLang)
Gets the label of a facet valueString
getId()
Gets the id of the facet.I18nizableText
getLabel()
Gets the label of the facet.Optional<Returnable>
getReturnable()
Gets the (Returnable
) the facet belongs to.SearchField
getSearchField()
Gets the search field of this facet
-
-
-
Field Detail
-
_contentSearchCriterionDefinition
ContentSearchCriterionDefinition _contentSearchCriterionDefinition
-
_returnable
Returnable _returnable
-
-
Constructor Detail
-
ContentFacetDefinition
public ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable)
Default constructor- Parameters:
contentSearchCriterionDefinition
- theContentSearchCriterionDefinition
it is based onreturnable
- theReturnable
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:FacetDefinition
Gets the id of the facet. It must be unique across all facet definitions- Specified by:
getId
in interfaceFacetDefinition
- Returns:
- the unique id of the facet
-
getLabel
public I18nizableText getLabel()
Description copied from interface:FacetDefinition
Gets the label of the facet.- Specified by:
getLabel
in interfaceFacetDefinition
- Returns:
- the label of the facet.
-
getSearchField
public SearchField getSearchField()
Description copied from interface:FacetDefinition
Gets the search field of this facet- Specified by:
getSearchField
in interfaceFacetDefinition
- Returns:
- the search field of this facet
-
getFacetLabel
public I18nizableText getFacetLabel(String value, String currentLang)
Description copied from interface:FacetDefinition
Gets the label of a facet value- Specified by:
getFacetLabel
in interfaceFacetDefinition
- Parameters:
value
- the facet valuecurrentLang
- the current lang- Returns:
- the label of a facet value
-
getReturnable
public Optional<Returnable> getReturnable()
Description copied from interface:FacetDefinition
Gets the (Returnable
) the facet belongs to.- Specified by:
getReturnable
in interfaceFacetDefinition
- Returns:
- the (
Returnable
) the facet belongs to.
-
-