Class VariantProductSource
- java.lang.Object
-
- de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.VariantProductSource
-
- All Implemented Interfaces:
ProductSource
public class VariantProductSource extends java.lang.Object implements ProductSource
Find the products for a variant product and all its variants' categories.
-
-
Constructor Summary
Constructors Constructor Description VariantProductSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<ProductModel>getBaseProducts(java.lang.Object model)java.util.Set<ProductModel>getProducts(java.lang.Object model)Get all the variant products of a base productjava.util.Collection<ProductModel>getProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model)Returns a collection ofProductModelof a given indexedProperty that are fetched from the model based on the indexConfig.
-
-
-
Method Detail
-
getProductsForConfigAndProperty
public java.util.Collection<ProductModel> getProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.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
public java.util.Set<ProductModel> getProducts(java.lang.Object model)
Get all the variant products of a base product- Specified by:
getProductsin interfaceProductSource- Parameters:
model- productModel- Returns:
- Collection of products
-
getBaseProducts
protected java.util.Set<ProductModel> getBaseProducts(java.lang.Object model)
-
-