Interface ProductSource
-
- All Known Implementing Classes:
VariantProductSource
public interface ProductSourceProductSource. Retrieves a collection of product to index for a specific model & index configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<ProductModel>getProducts(java.lang.Object productModel)Gets all the products in the a model this could include all its variants.java.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
java.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.- Parameters:
indexConfig- index configindexedProperty- indexed propertymodel- model- Returns:
- Collection of products
-
getProducts
java.util.Set<ProductModel> getProducts(java.lang.Object productModel)
Gets all the products in the a model this could include all its variants.- Parameters:
productModel- productModel- Returns:
- Collection of products
-
-