Class CommerceCategoryFacetDisplayNameProvider
java.lang.Object
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.CommerceCategoryFacetDisplayNameProvider
- All Implemented Interfaces:
FacetDisplayNameProvider,FacetValueDisplayNameProvider
public class CommerceCategoryFacetDisplayNameProvider
extends Object
implements FacetDisplayNameProvider, FacetValueDisplayNameProvider
-
Field Summary
Fields inherited from interface de.hybris.platform.solrfacetsearch.provider.FacetDisplayNameProvider
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CategoryModelgetCategory(String code) protected CategoryServicegetDisplayName(SearchQuery query, IndexedProperty property, String facetValue) Get the display name for a facet value.getDisplayName(SearchQuery query, String name) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.4.protected LocaleGets the locale based on two or one part ISO code.voidsetCategoryService(CategoryService categoryService)
-
Constructor Details
-
CommerceCategoryFacetDisplayNameProvider
public CommerceCategoryFacetDisplayNameProvider()
-
-
Method Details
-
getLocale
Gets the locale based on two or one part ISO code.- Parameters:
isoCode- the iso code- Returns:
- the locale
-
getDisplayName
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", forRemoval=true) public String getDisplayName(SearchQuery query, String name) Deprecated, for removal: This API element is subject to removal in a future version.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
-
getCategoryService
-
getCategory
-