Class ContentFacetDefinition<T>
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentFacetDefinition<T>
- Type Parameters:
T
- The type of the facet value
- All Implemented Interfaces:
Labelable
,SearchServiceFacetDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionContentFacetDefinition
(ReferencingSearchServiceCriterionDefinition<T> referencingCriterionDefinition, Returnable returnable, ContentSearchHelper contentSearchHelper) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the description.Retrieves the facet definitiongetFacetLabel
(String value, Map<String, Object> contextualParameters) Gets the label of a facet valuegetLabel()
Retrieves the label.getName()
Get the name.Gets the (Returnable
) the facet belongs to.
-
Constructor Details
-
ContentFacetDefinition
public ContentFacetDefinition(ReferencingSearchServiceCriterionDefinition<T> referencingCriterionDefinition, Returnable returnable, ContentSearchHelper contentSearchHelper) Default constructor- Parameters:
referencingCriterionDefinition
- theReferencingSearchServiceCriterionDefinition
it is based onreturnable
- theReturnable
contentSearchHelper
- the content search helper
-
-
Method Details
-
getName
Description copied from interface:Labelable
Get the name. -
getLabel
Description copied from interface:Labelable
Retrieves the label. -
getDescription
Description copied from interface:Labelable
Retrieves the description.- Specified by:
getDescription
in interfaceLabelable
- Returns:
- the description.
-
getFacetDefinition
Description copied from interface:SearchServiceFacetDefinition
Retrieves the facet definition- Specified by:
getFacetDefinition
in interfaceSearchServiceFacetDefinition
- Returns:
- the facet definition
-
getFacetLabel
public Optional<I18nizableText> getFacetLabel(String value, Map<String, Object> contextualParameters) Description copied from interface:SearchServiceFacetDefinition
Gets the label of a facet value- Specified by:
getFacetLabel
in interfaceSearchServiceFacetDefinition
- Parameters:
value
- the facet valuecontextualParameters
- the contextual parameters- Returns:
- the label of a facet value
-
getReturnable
Description copied from interface:SearchServiceFacetDefinition
Gets the (Returnable
) the facet belongs to.- Specified by:
getReturnable
in interfaceSearchServiceFacetDefinition
- Returns:
- the (
Returnable
) the facet belongs to.
-