Interface ProductSource
- All Known Implementing Classes:
VariantProductSource
public interface ProductSource
ProductSource. Retrieves a collection of product to index for a specific model & index configuration.
-
Method Summary
Modifier and TypeMethodDescriptiongetProducts(Object productModel) Gets all the products in the a model this could include all its variants.getProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofProductModelof a given indexedProperty that are fetched from the model based on the indexConfig.
-
Method Details
-
getProductsForConfigAndProperty
Collection<ProductModel> getProductsForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, 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
Gets all the products in the a model this could include all its variants.- Parameters:
productModel- productModel- Returns:
- Collection of products
-