Class VariantProductSource
java.lang.Object
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.VariantProductSource
- All Implemented Interfaces:
ProductSource
Find the products for a variant product and all its variants' categories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<ProductModel>getBaseProducts(Object model) getProducts(Object model) Get all the variant products of a base productgetProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofProductModelof a given indexedProperty that are fetched from the model based on the indexConfig.
-
Constructor Details
-
VariantProductSource
public VariantProductSource()
-
-
Method Details
-
getProductsForConfigAndProperty
public Collection<ProductModel> getProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Description copied from interface:ProductSourceReturns a collection ofProductModelof a given indexedProperty that are fetched from the model based on the indexConfig.- Specified by:
getProductsForConfigAndPropertyin interfaceProductSource- Parameters:
indexConfig- index configindexedProperty- indexed propertymodel- model- Returns:
- Collection of products
-
getProducts
Get all the variant products of a base product- Specified by:
getProductsin interfaceProductSource- Parameters:
model- productModel- Returns:
- Collection of products
-
getBaseProducts
-