Class CommonPseudoContentTypeFacetDefinition
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.CommonPseudoContentTypeFacetDefinition
-
- All Implemented Interfaces:
FacetDefinition
public class CommonPseudoContentTypeFacetDefinition extends Object implements FacetDefinition
CommonFacetDefinition
to filter on the pseudo-content type of the document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CommonPseudoContentTypeFacetDefinition.PseudoContentTypeSearchField
-
Field Summary
Fields Modifier and Type Field Description protected static String
__ID
The id of the facet definition(package private) ContentTypeExtensionPoint
_cTypeEP
(package private) I18nizableText
_label
-
Constructor Summary
Constructors Constructor Description CommonPseudoContentTypeFacetDefinition(ContentTypeExtensionPoint cTypeEP)
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
-
-
-
Field Detail
-
__ID
protected static final String __ID
The id of the facet definition- See Also:
- Constant Field Values
-
_label
I18nizableText _label
-
_cTypeEP
ContentTypeExtensionPoint _cTypeEP
-
-
Constructor Detail
-
CommonPseudoContentTypeFacetDefinition
public CommonPseudoContentTypeFacetDefinition(ContentTypeExtensionPoint cTypeEP)
Default constructor- Parameters:
cTypeEP
- The extension point for content types
-
-
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.
-
-