Interface CatalogService

  • All Known Implementing Classes:
    DefaultCatalogService

    public interface CatalogService
    Service to interact with Catalog service to retrieve products for indexing.
    • Method Detail

      • readBatchOfProductIds

        List<String> readBatchOfProductIds​(@Nullable
                                           String startId,
                                           int batchSize)
                                    throws com.broadleafcommerce.search.api.SearchIndexException
        Reads a batch of IDs to be placed in a queue for processing.
        Parameters:
        startId - The starting ID
        batchSize - The size of the batch to read
        Returns:
        A list of product IDs.
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException
      • readBatchOfProducts

        List<com.broadleafcommerce.search.catalog.core.domain.Product> readBatchOfProducts​(List<String> ids)
                                                                                    throws com.broadleafcommerce.search.api.SearchIndexException
        Reads a batch of Products by their IDs.
        Parameters:
        ids - A list of product IDs.
        Returns:
        A list of products or an empty list.
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException - if the service call fails for any reason.
      • readBatchOfProducts

        List<com.broadleafcommerce.search.catalog.core.domain.Product> readBatchOfProducts​(String id)
                                                                                    throws com.broadleafcommerce.search.api.SearchIndexException
        Reads a batch of Products by an id.
        Parameters:
        id - A product ID.
        Returns:
        A list of products or an empty list.
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException - if the service call fails for any reason.