Class CategoryPathValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.CategoryPathValueProvider
- All Implemented Interfaces:
FieldValueProvider
public class CategoryPathValueProvider
extends AbstractPropertyFieldValueProvider
implements FieldValueProvider
Category path value provider. Value provider that generates field values for category paths and parent paths.
-
Field Summary
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccumulateCategoryPaths(List<CategoryModel> categoryPath, Set<String> output) protected List<FieldValue>createFieldValue(Collection<String> categoryPaths, IndexedProperty indexedProperty) getCategoryPaths(Collection<CategoryModel> categories) protected CategoryServiceprotected CategorySourceprotected FieldNameProvidergetFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.voidsetCategoryService(CategoryService categoryService) voidsetCategorySource(CategorySource categorySource) voidsetFieldNameProvider(FieldNameProvider fieldNameProvider) Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
CategoryPathValueProvider
public CategoryPathValueProvider()
-
-
Method Details
-
getCategorySource
-
setCategorySource
-
getFieldNameProvider
-
setFieldNameProvider
-
getCategoryService
-
setCategoryService
-
getFieldValues
public Collection<FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) throws FieldValueProviderException Description copied from interface:FieldValueProviderReturns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig. Supports multi-language and multi-currencies.- Specified by:
getFieldValuesin interfaceFieldValueProvider- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
createFieldValue
protected List<FieldValue> createFieldValue(Collection<String> categoryPaths, IndexedProperty indexedProperty) -
getCategoryPaths
-
accumulateCategoryPaths
-