Class VariantCategorySource
- java.lang.Object
-
- de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.DefaultCategorySource
-
- de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.VariantCategorySource
-
- All Implemented Interfaces:
CategorySource
public class VariantCategorySource extends DefaultCategorySource
Find the categories for a variant product and all its variants' categories.
-
-
Constructor Summary
Constructors Constructor Description VariantCategorySource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<CategoryModel>createEmptyVariantValueCategoriesSet()java.util.Collection<CategoryModel>getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object baseProduct)Returns a collection ofCategoryModelof a given indexedProperty that are fetched from the model based on the indexConfig.protected java.util.Set<ProductModel>getProducts(java.lang.Object model)Get all the variant products of a base productprotected ProductSourcegetProductSource()voidsetProductSource(ProductSource productSource)-
Methods inherited from class de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.DefaultCategorySource
catalogVersionsToString, catalogVersionToString, collectSuperCategories, getAllCategories, getCategoriesQualifier, getCategoryService, getDirectSuperCategories, getModelService, getRootCategory, isBlockedCategory, isIncludeClassificationClasses, lookupRootCategories, setCategoriesQualifier, setCategoryService, setIncludeClassificationClasses, setModelService, setRootCategory
-
-
-
-
Method Detail
-
getProducts
protected java.util.Set<ProductModel> getProducts(java.lang.Object model)
Get all the variant products of a base product- Overrides:
getProductsin classDefaultCategorySource
-
getProductSource
protected ProductSource getProductSource()
-
setProductSource
public void setProductSource(ProductSource productSource)
-
getCategoriesForConfigAndProperty
public java.util.Collection<CategoryModel> getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object baseProduct)
Description copied from interface:CategorySourceReturns a collection ofCategoryModelof a given indexedProperty that are fetched from the model based on the indexConfig.- Specified by:
getCategoriesForConfigAndPropertyin interfaceCategorySource- Overrides:
getCategoriesForConfigAndPropertyin classDefaultCategorySource- Parameters:
indexConfig- index configindexedProperty- indexed propertybaseProduct- model- Returns:
- Collection of categories
-
createEmptyVariantValueCategoriesSet
protected java.util.Set<CategoryModel> createEmptyVariantValueCategoriesSet()
-
-