Class ContentFacetDefinition
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.ContentFacetDefinition
-
- All Implemented Interfaces:
FacetDefinition
public class ContentFacetDefinition extends Object implements FacetDefinition
-
-
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 I18nizableTextgetFacetLabel(String value, String currentLang)Gets the label of a facet valueStringgetId()Gets the id of the facet.I18nizableTextgetLabel()Gets the label of the facet.Optional<Returnable>getReturnable()Gets the (Returnable) the facet belongs to.SearchFieldgetSearchField()Gets the search field of this facet
-
-
-
Constructor Detail
-
ContentFacetDefinition
public ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable)
Default constructor- Parameters:
contentSearchCriterionDefinition- theContentSearchCriterionDefinitionit is based onreturnable- theReturnable
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:FacetDefinitionGets the id of the facet. It must be unique across all facet definitions- Specified by:
getIdin interfaceFacetDefinition- Returns:
- the unique id of the facet
-
getLabel
public I18nizableText getLabel()
Description copied from interface:FacetDefinitionGets the label of the facet.- Specified by:
getLabelin interfaceFacetDefinition- Returns:
- the label of the facet.
-
getSearchField
public SearchField getSearchField()
Description copied from interface:FacetDefinitionGets the search field of this facet- Specified by:
getSearchFieldin interfaceFacetDefinition- Returns:
- the search field of this facet
-
getFacetLabel
public I18nizableText getFacetLabel(String value, String currentLang)
Description copied from interface:FacetDefinitionGets the label of a facet value- Specified by:
getFacetLabelin 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:FacetDefinitionGets the (Returnable) the facet belongs to.- Specified by:
getReturnablein interfaceFacetDefinition- Returns:
- the (
Returnable) the facet belongs to.
-
-