Class PageContentFacetDefinition
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.PageContentFacetDefinition
- All Implemented Interfaces:
FacetDefinition
FacetDefinition
for PageReturnable
, which apply on a Content.-
Constructor Summary
ConstructorDescriptionPageContentFacetDefinition
(ContentFacetDefinition contentFacetDefinition, Returnable returnable) Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetFacetLabel
(String value, String currentLang) 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
-
PageContentFacetDefinition
public PageContentFacetDefinition(ContentFacetDefinition contentFacetDefinition, Returnable returnable) Default constructor- Parameters:
contentFacetDefinition
- theContentFacetDefinition
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
Description copied from interface:FacetDefinition
Gets the label of a facet value- Specified by:
getFacetLabel
in interfaceFacetDefinition
- Parameters:
value
- the facet valuecurrentLang
- the current lang- 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.
-