Class ProductCategoryAttributeSnIndexerValueProvider
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider<T,D>
de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider<ProductModel,ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData>
de.hybris.platform.commerceservices.search.searchservices.provider.impl.ProductCategoryAttributeSnIndexerValueProvider
- All Implemented Interfaces:
SnIndexerValueProvider<ProductModel>
public class ProductCategoryAttributeSnIndexerValueProvider
extends AbstractProductSnIndexerValueProvider<ProductModel,ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData>
Implementation of
SnIndexerValueProvider for product category attributes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider
PRODUCT_SELECTOR_PARAM, PRODUCT_SELECTOR_PARAM_DEFAULT_VALUE, PRODUCT_SELECTOR_VALUE_BASE, PRODUCT_SELECTOR_VALUE_CURRENT, PRODUCT_SELECTOR_VALUE_CURRENT_PARENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectCategories(Collection<SnIndexerFieldWrapper> fieldWrappers, Set<ProductModel> products) collectRootCategories(Collection<SnIndexerFieldWrapper> fieldWrappers) protected voiddoCollectCategories(Map<String, Set<CategoryModel>> categories, Collection<CategoryModel> parentCategories, Set<CategoryModel> path) protected ObjectgetFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData data) Returns the value for a given field and source model.Returns the supported qualifier classes.protected booleanisBlockedCategory(CategoryModel category, Set<CategoryModel> path) loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) Loads data for the given indexer context.protected StringresolveExpression(SnIndexerFieldWrapper fieldWrapper) protected StringresolveRootCategory(SnIndexerFieldWrapper fieldWrapper) voidsetCategoryService(CategoryService categoryService) voidsetSnExpressionEvaluator(SnExpressionEvaluator snExpressionEvaluator) Methods inherited from class de.hybris.platform.commerceservices.search.searchservices.provider.impl.AbstractProductSnIndexerValueProvider
collectBaseProduct, collectCurrentParentProducts, collectCurrentProduct, collectProducts, mergeProducts, resolveProductSelectorMethods inherited from class de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider
getValueProcessors, processValue, provide, setValueProcessors
-
Field Details
-
ID
- See Also:
-
EXPRESSION_PARAM
- See Also:
-
EXPRESSION_DEFAULT_VALUE
- See Also:
-
ROOT_CATEGORY_PARAM
- See Also:
-
ROOT_CATEGORY_DEFAULT_VALUE
-
SUPPORTED_QUALIFIER_CLASSES
-
-
Constructor Details
-
ProductCategoryAttributeSnIndexerValueProvider
public ProductCategoryAttributeSnIndexerValueProvider()
-
-
Method Details
-
getSupportedQualifierClasses
Description copied from interface:SnIndexerValueProviderReturns the supported qualifier classes.- Returns:
- the supported qualifier classes
- Throws:
SnIndexerException
-
getFieldValue
protected Object getFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData data) throws SnIndexerException Description copied from class:AbstractSnIndexerValueProviderReturns the value for a given field and source model.- Specified by:
getFieldValuein classAbstractSnIndexerValueProvider<ProductModel,ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData> - Parameters:
indexerContext- - the current indexer contextfieldWrapper- - the field wrappersource- - the source modeldata- - the data- Throws:
SnIndexerException- if an error occurs
-
loadData
protected ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) throws SnIndexerException Description copied from class:AbstractSnIndexerValueProviderLoads data for the given indexer context.- Overrides:
loadDatain classAbstractSnIndexerValueProvider<ProductModel,ProductCategoryAttributeSnIndexerValueProvider.ProductCategoryData> - Parameters:
indexerContext- - the current indexer contextfieldWrappers- - the field wrapperssource- - the source model- Throws:
SnIndexerException- if an error occurs
-
collectCategories
protected Map<PK,Map<String, collectCategoriesSet<CategoryModel>>> (Collection<SnIndexerFieldWrapper> fieldWrappers, Set<ProductModel> products) -
collectRootCategories
-
doCollectCategories
protected void doCollectCategories(Map<String, Set<CategoryModel>> categories, Collection<CategoryModel> parentCategories, Set<CategoryModel> path) -
isBlockedCategory
-
resolveExpression
-
resolveRootCategory
-
getCategoryService
-
setCategoryService
-
getSnExpressionEvaluator
-
setSnExpressionEvaluator
-