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
Find the categories for a variant product and all its variants' categories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<CategoryModel>getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object baseProduct) Returns a collection ofCategoryModelof a given indexedProperty that are fetched from the model based on the indexConfig.protected Set<ProductModel>getProducts(Object model) Get all the variant products of a base productprotected ProductSourcevoidsetProductSource(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
-
Constructor Details
-
VariantCategorySource
public VariantCategorySource()
-
-
Method Details
-
getProducts
Get all the variant products of a base product- Overrides:
getProductsin classDefaultCategorySource
-
getProductSource
-
setProductSource
-
getCategoriesForConfigAndProperty
public Collection<CategoryModel> getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, 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
-