Uses of Class
com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord
Package
Description
-
Uses of BatchCompletionRecord in com.broadleafcommerce.common.dataimport
Modifier and TypeMethodDescriptionprotected BatchCompletionRecord
AbstractImportBatchHandler.getCompletionError
(BatchRecord record, String errorMessage) Modifier and TypeMethodDescriptionprotected <T> List<BatchCompletionRecord>
AbstractImportBatchHandler.buildNonValidationErrorCompletions
(String entityResourceId, PersistenceRequest<T> persistenceRequest, com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse.PersistenceFailure<T> persistenceFailure) protected <T> List<BatchCompletionRecord>
AbstractImportBatchHandler.buildSuccessfulCompletionsForRequest
(String entityResourceId, PersistenceRequest<T> persistenceRequest) protected <T> List<BatchCompletionRecord>
AbstractImportBatchHandler.buildValidationErrorCompletions
(String entityResourceId, PersistenceRequest<T> persistenceRequest, com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse.PersistenceFailure<T> persistenceFailure) protected <T> List<BatchCompletionRecord>
AbstractImportBatchHandler.persist
(BatchRequest batch, List<PersistenceRequest<T>> requests, BatchCreator<T> creator, BatchUpdater<T> updater, Function<T, String> idExtractor) Perform a persist of the parsed out domain specified asPersistenceRequest
sprotected <T> List<BatchCompletionRecord>
AbstractImportBatchHandler.persist
(BatchRequest batch, List<PersistenceRequest<T>> requests, BatchCreator<T> creator, BatchUpdater<T> updater, Function<T, String> idExtractor, int batchSize) This is a convenience wrapper aroundAbstractImportBatchHandler.persist(BatchRequest, List, BatchCreator, BatchUpdater, Function)
to submit therequests
in chunks/smaller-batches.Modifier and TypeMethodDescriptionprotected <T> void
AbstractImportBatchHandler.addFailedConversionCompletions
(BatchRecord failedToConvert, ConversionUtils.ConversionResponse<T> failedConversion, List<BatchCompletionRecord> destination) Creates aBatchCompletionRecord
for the givenfailedToConvert
batch record, and then createsBatchCompletionRecords
for all of its nested dependents.protected <T> void
AbstractImportBatchHandler.buildAndAddCompletionRecords
(com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<T> response, List<BatchCompletionRecord> completionRecords, Map<String, PersistenceRequest<T>> persistenceRequestByResourceId, Function<T, String> idExtractor) protected void
AbstractImportBatchHandler.failRecordAndDependentsEarly
(BatchRecord recordToFail, String errorMessage, String dependentErrorMessage, List<BatchCompletionRecord> destination) Intended for use in scenarios where a record and its dependents need to be marked as failed in an early (pre-persistence) stage (no resource tier ID is available), such as failed conversions.protected void
AbstractImportBatchHandler.generateAndAddCompletions
(BatchRecord batchRecord, BatchCompletionRecordStatus status, String errorMessage, List<BatchCompletionRecord> destination) protected void
AbstractImportBatchHandler.generateAndAddCompletions
(PersistenceRequest.EmbeddedItemRequest embeddedItemRequest, BatchCompletionRecordStatus status, String errorMessage, List<BatchCompletionRecord> destination) protected void
AbstractImportBatchHandler.generateAndAddValidationErrorCompletions
(PersistenceRequest.EmbeddedItemRequest embeddedItemRequest, String parentPath, Map<String, org.springframework.validation.FieldError> fieldErrorsByPath, String parentItemCorrelationId, List<BatchCompletionRecord> destination) -
Uses of BatchCompletionRecord in com.broadleafcommerce.common.dataimport.messaging
Modifier and TypeMethodDescriptionprotected List<BatchCompletionRecord>
BatchListener.buildErrorCompletionsForUnacknowledgedRecords
(@NonNull BatchCompletion completion, @NonNull BatchRequest request) BatchCompletion.getRecords()
The records that should be inserted within this batchModifierConstructorDescriptionBatchCompletion
(String batchId, String importId, List<BatchCompletionRecord> records) -
Uses of BatchCompletionRecord in com.broadleafcommerce.common.dataimport.util
Modifier and TypeMethodDescriptionstatic BatchCompletionRecord
BatchCompletionRecordUtils.error
(BatchRecord original, String errorMessage) Creates a successful completion from the original record.static BatchCompletionRecord
BatchCompletionRecordUtils.success
(BatchRecord original) Creates a successful completion from the original record.Modifier and TypeMethodDescriptionstatic List<BatchCompletionRecord>
BatchCompletionRecordUtils.allErrored
(List<BatchRecord> from, String errorMessage) Converts all of the given BatchRecords and dependents to errorred completionsstatic List<BatchCompletionRecord>
BatchCompletionRecordUtils.allSuccess
(List<BatchRecord> from) Converts all of the given BatchRecords and dependents to successful completionsModifier and TypeMethodDescriptionstatic <T> void
ConversionUtils.addFailedConversionCompletions
(BatchRecord failedToConvert, ConversionUtils.ConversionResponse<T> failedConversion, List<BatchCompletionRecord> destination) Creates aBatchCompletionRecord
for the givenfailedToConvert
batch record, and then createsBatchCompletionRecords
for all of its nested dependents.