Class DefaultBatchCompletionService

java.lang.Object
com.broadleafcommerce.dataimport.service.DefaultBatchCompletionService
All Implemented Interfaces:
BatchCompletionService

public class DefaultBatchCompletionService extends Object implements BatchCompletionService
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

  • Method Details

    • receiveCompletion

      public void receiveCompletion(com.broadleafcommerce.common.dataimport.messaging.BatchCompletion completion)
      Description copied from interface: BatchCompletionService

      Receives the completion for a given batch and updates the underlying Batch, Import and BatchItemCompletions based on the information applied in the completion.

      This method is idempotent and should be safe to call multiple times with the same final outcome.

      Specified by:
      receiveCompletion in interface BatchCompletionService
      Parameters:
      completion - the received completion
    • adjustImportCounts

      protected Import adjustImportCounts(Batch batch)
    • updateBatch

      protected Batch updateBatch(com.broadleafcommerce.common.dataimport.messaging.BatchCompletion batch)
    • markImportCompleted

      protected void markImportCompleted(String importId)
    • thereAreDuplicateBatchCompletionRecords

      protected boolean thereAreDuplicateBatchCompletionRecords(List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> completionRecords)