Class PageContentFacetDefinition
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.PageContentFacetDefinition
-
- All Implemented Interfaces:
FacetDefinition
public class PageContentFacetDefinition extends Object implements FacetDefinition
FacetDefinition
forPageReturnable
, which apply on a Content.
-
-
Constructor Summary
Constructors Constructor Description PageContentFacetDefinition(ContentFacetDefinition contentFacetDefinition, Returnable returnable)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getFacetLabel(String value, String currentLang)
Gets the label of a facet valueString
getId()
Gets the id of the facet.I18nizableText
getLabel()
Gets the label of the facet.Optional<Returnable>
getReturnable()
Gets the (Returnable
) the facet belongs to.SearchField
getSearchField()
Gets the search field of this facet
-
-
-
Constructor Detail
-
PageContentFacetDefinition
public PageContentFacetDefinition(ContentFacetDefinition contentFacetDefinition, Returnable returnable)
Default constructor- Parameters:
contentFacetDefinition
- theContentFacetDefinition
it is based onreturnable
- theReturnable
-
-
Method Detail
-
getId
public String 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
public I18nizableText getLabel()
Description copied from interface:FacetDefinition
Gets the label of the facet.- Specified by:
getLabel
in interfaceFacetDefinition
- Returns:
- the label of the facet.
-
getSearchField
public SearchField 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 I18nizableText getFacetLabel(String value, String currentLang)
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
public Optional<Returnable> 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.
-
-