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- theReferencingSearchServiceCriterionDefinitionit is based onreturnable- theReturnablecontentSearchHelper- the content search helper
-
-
Method Details
-
getName
Description copied from interface:LabelableGet the name. -
getLabel
Description copied from interface:LabelableRetrieves the label. -
getDescription
Description copied from interface:LabelableRetrieves the description.- Specified by:
getDescriptionin interfaceLabelable- Returns:
- the description.
-
getFacetDefinition
Description copied from interface:SearchServiceFacetDefinitionRetrieves the facet definition- Specified by:
getFacetDefinitionin interfaceSearchServiceFacetDefinition- Returns:
- the facet definition
-
getFacetLabel
public Optional<I18nizableText> getFacetLabel(String value, Map<String, Object> contextualParameters) Description copied from interface:SearchServiceFacetDefinitionGets the label of a facet value- Specified by:
getFacetLabelin interfaceSearchServiceFacetDefinition- Parameters:
value- the facet valuecontextualParameters- the contextual parameters- Returns:
- the label of a facet value
-
getReturnable
Description copied from interface:SearchServiceFacetDefinitionGets the (Returnable) the facet belongs to.- Specified by:
getReturnablein interfaceSearchServiceFacetDefinition- Returns:
- the (
Returnable) the facet belongs to.
-