Interface CatalogService

All Known Implementing Classes:
DefaultCatalogService

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

    • readBatchOfProductIds

      @Deprecated(since="2.1.5-GA") List<String> readBatchOfProductIds(@Nullable String startId, int batchSize) throws com.broadleafcommerce.search.api.SearchIndexException
      Deprecated.
      in favor of readBatchOfProductIds(String, int, Map<String, Object>) for the potential to utilize a time range when reading products.
      Throws:
      com.broadleafcommerce.search.api.SearchIndexException
    • readBatchOfProductIds

      List<String> readBatchOfProductIds(@Nullable String startId, int batchSize, @Nullable Map<String,Object> additionalProperties) 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
      additionalProperties - additional information that can be used to filter the items to be indexed
      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.