Class ContentFacetDefinition
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentFacetDefinition
- All Implemented Interfaces:
FacetDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable) Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetFacetLabel(String value, Map<String, Object> contextualParameters) Gets the label of a facet valuegetId()Gets the id of the facet.getLabel()Gets the label of the facet.Gets the (Returnable) the facet belongs to.Gets the search field of this facet
-
Constructor Details
-
ContentFacetDefinition
public ContentFacetDefinition(ContentSearchCriterionDefinition contentSearchCriterionDefinition, Returnable returnable) Default constructor- Parameters:
contentSearchCriterionDefinition- theContentSearchCriterionDefinitionit is based onreturnable- theReturnable
-
-
Method Details
-
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
Description copied from interface:FacetDefinitionGets the label of the facet.- Specified by:
getLabelin interfaceFacetDefinition- Returns:
- the label of the facet.
-
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 Optional<I18nizableText> getFacetLabel(String value, Map<String, Object> contextualParameters) Description copied from interface:FacetDefinitionGets the label of a facet value- Specified by:
getFacetLabelin interfaceFacetDefinition- Parameters:
value- the facet valuecontextualParameters- the contextual parameters- Returns:
- the label of a facet value
-
getReturnable
Description copied from interface:FacetDefinitionGets the (Returnable) the facet belongs to.- Specified by:
getReturnablein interfaceFacetDefinition- Returns:
- the (
Returnable) the facet belongs to.
-