Class ContentFacetDefinition
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentFacetDefinition
- All Implemented Interfaces:
FacetDefinition
-
Constructor Summary
ConstructorDescriptionContentFacetDefinition
(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
- theContentSearchCriterionDefinition
it is based onreturnable
- theReturnable
-
-
Method Details
-
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
Description copied from interface:FacetDefinition
Gets the label of the facet.- Specified by:
getLabel
in interfaceFacetDefinition
- Returns:
- the label of the facet.
-
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 Optional<I18nizableText> getFacetLabel(String value, Map<String, Object> contextualParameters) Description copied from interface:FacetDefinition
Gets the label of a facet value- Specified by:
getFacetLabel
in interfaceFacetDefinition
- Parameters:
value
- the facet valuecontextualParameters
- the contextual parameters- Returns:
- the label of a facet value
-
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.
-