Uses of Class
com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord
Packages that use BatchCompletionRecord
Package
Description
-
Uses of BatchCompletionRecord in com.broadleafcommerce.common.dataimport
Methods in com.broadleafcommerce.common.dataimport that return BatchCompletionRecordModifier and TypeMethodDescriptionprotected BatchCompletionRecord
AbstractImportBatchHandler.getCompletionError
(BatchRecord record, String errorMessage) Methods in com.broadleafcommerce.common.dataimport that return types with arguments of type BatchCompletionRecordModifier 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.buildSuccessfulCompletionsForNoChangesRequest
(String entityResourceId, PersistenceRequest<T> persistenceRequest) 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.Method parameters in com.broadleafcommerce.common.dataimport with type arguments of type BatchCompletionRecordModifier 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
Methods in com.broadleafcommerce.common.dataimport.messaging that return types with arguments of type BatchCompletionRecordModifier and TypeMethodDescriptionprotected List<BatchCompletionRecord>
BatchListener.buildErrorCompletionsForUnacknowledgedRecords
(@NonNull BatchCompletion completion, @NonNull BatchRequest request) BatchCompletion.getRecords()
The records that should be inserted within this batchConstructor parameters in com.broadleafcommerce.common.dataimport.messaging with type arguments of type BatchCompletionRecordModifierConstructorDescriptionBatchCompletion
(String batchId, String importId, List<BatchCompletionRecord> records) -
Uses of BatchCompletionRecord in com.broadleafcommerce.common.dataimport.util
Methods in com.broadleafcommerce.common.dataimport.util that return BatchCompletionRecordModifier 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.Methods in com.broadleafcommerce.common.dataimport.util that return types with arguments of type BatchCompletionRecordModifier 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 completionsMethod parameters in com.broadleafcommerce.common.dataimport.util with type arguments of type BatchCompletionRecordModifier 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.