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 Detail

      • getProductsForConfigAndProperty

        java.util.Collection<ProductModel> getProductsForConfigAndProperty​(IndexConfig indexConfig,
                                                                           IndexedProperty indexedProperty,
                                                                           java.lang.Object model)
        Returns a collection of ProductModel of a given indexedProperty that are fetched from the model based on the indexConfig.
        Parameters:
        indexConfig - index config
        indexedProperty - indexed property
        model - 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