Class CommerceCategoryFacetDisplayNameProvider
- java.lang.Object
-
- de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.CommerceCategoryFacetDisplayNameProvider
-
- All Implemented Interfaces:
FacetDisplayNameProvider,FacetValueDisplayNameProvider
public class CommerceCategoryFacetDisplayNameProvider extends java.lang.Object implements FacetDisplayNameProvider, FacetValueDisplayNameProvider
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.solrfacetsearch.provider.FacetDisplayNameProvider
LOG
-
-
Constructor Summary
Constructors Constructor Description CommerceCategoryFacetDisplayNameProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected CategoryModelgetCategory(java.lang.String code)protected CategoryServicegetCategoryService()java.lang.StringgetDisplayName(SearchQuery query, IndexedProperty property, java.lang.String facetValue)Get the display name for a facet value.java.lang.StringgetDisplayName(SearchQuery query, java.lang.String name)Deprecated.Since 5.4.protected java.util.LocalegetLocale(java.lang.String isoCode)Gets the locale based on two or one part ISO code.voidsetCategoryService(CategoryService categoryService)
-
-
-
Method Detail
-
getLocale
protected java.util.Locale getLocale(java.lang.String isoCode)
Gets the locale based on two or one part ISO code.- Parameters:
isoCode- the iso code- Returns:
- the locale
-
getDisplayName
public java.lang.String getDisplayName(SearchQuery query, IndexedProperty property, java.lang.String facetValue)
Description copied from interface:FacetValueDisplayNameProviderGet the display name for a facet value.- Specified by:
getDisplayNamein interfaceFacetValueDisplayNameProvider- Parameters:
query- The search queryproperty- The indexed property (i.e. the facet)facetValue- The facet value- Returns:
- The display name for the specified facet value.
-
getDisplayName
@Deprecated(since="5.4") public java.lang.String getDisplayName(SearchQuery query, java.lang.String name)
Deprecated.Since 5.4.Description copied from interface:FacetDisplayNameProviderGet the display name for a facet value. This method is deprecated as is does not pass the facet which contains the facet value. Implementers should implement theFacetValueDisplayNameProvider.getDisplayName(de.hybris.platform.solrfacetsearch.search.SearchQuery, de.hybris.platform.solrfacetsearch.config.IndexedProperty, String)method instead.- Specified by:
getDisplayNamein interfaceFacetDisplayNameProvider- Parameters:
query- The search queryname- The facet value- Returns:
- The display name for the specified facet value.
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
getCategoryService
protected CategoryService getCategoryService()
-
getCategory
protected CategoryModel getCategory(java.lang.String code)
-
-