All Known Implementing Classes:
ExternalCatalogProvider

public interface CatalogProvider
Component to allow us to interact with a CatalogService to fetch IDs and Products for collection.
Author:
Kelly Tisdell (ktisdell)
  • Method Details

    • readIdBatchForPartialFeed

      List<String> readIdBatchForPartialFeed(@NonNull @NonNull List<IncrementalDataFeedEntityUpdateRecord> updateRecords, @Nullable String filterString, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo)
      Given a batch of IncrementalDataFeedEntityUpdateRecords, fetch Product IDs that correspond.
      Parameters:
      updateRecords - a list of records with references to products and their IDs
      filterString - a RSQL filter string, or null
      readContextInfo - the ContextInfo for reading the IDs
      Returns:
    • readIdBatchForFullFeed

      List<String> readIdBatchForFullFeed(@Nullable String cursor, int batchSize, @Nullable String filterString, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a batch of Product IDs, in ascending order, starting at the cursor.
      Parameters:
      cursor - the last ID fetched, or null
      batchSize - the number of IDs to fetch in a batch
      filterString - a RSQL filter string, or null
      contextInfo - the ContextInfo for reading the IDs
      Returns:
    • readProducts

      List<CollectedProduct> readProducts(@NonNull @NonNull List<String> idBatch, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo readContextInfo)
      Reads a batch of CollectedProducts from the batch of provided IDs.
      Parameters:
      idBatch - batch of IDs for which to fetch products
      readContextInfo - contextInfo the ContextInfo for reading the IDs
      Returns: