Uses of Class
com.broadleafcommerce.dataimport.processor.FileReaderContext
Package
Description
-
Uses of FileReaderContext in com.broadleafcommerce.dataimport.processor
Modifier and TypeInterfaceDescriptioninterface
FileReader<C extends FileReaderContext>
A reader for a file of a particular type.final class
ImportProcessingContext<R extends FileReaderContext>
Execution information when an import is being processed.Modifier and TypeMethodDescriptionvoid
ImportProcessor.process
(ImportProcessingContext<? extends FileReaderContext> context) Performs the operations required to transform the givenfile
into persisting into a backing data store. -
Uses of FileReaderContext in com.broadleafcommerce.dataimport.processor.csv
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.dataimport.messaging.BatchRecord
DefaultImportProcessor.createBatchRecord
(ImportProcessingContext<? extends FileReaderContext> context, Map<String, String> rowMap, long lineNumber) Parses the givenrecord
into aBatchRecord
.DefaultImportProcessor.getNextRowMap
(ImportProcessingContext<? extends FileReaderContext> context) void
DefaultImportProcessor.process
(ImportProcessingContext<? extends FileReaderContext> context) protected boolean
DefaultImportProcessor.replaceCorrelationIdsAndCollectErrors
(com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, ImportProcessingContext<? extends FileReaderContext> context, List<BatchItemCompletion> errors, String topLevelParentCorrelationId) Resolves and replaces any correlation id references found in therows
of the givenBatchRecord
and its dependents with the corresponding resource IDs. -
Uses of FileReaderContext in com.broadleafcommerce.dataimport.processor.xls
-
Uses of FileReaderContext in com.broadleafcommerce.dataimport.service
Modifier and TypeClassDescriptionfinal class
ImportValidationContext<R extends FileReaderContext>
Execution data when validating an import before processing it.Modifier and TypeMethodDescriptionprotected ImportProcessingContext<FileReaderContext>
DefaultImportManager.createProcessingContext
(Import metadata, ImportSpecification importSpecification, FileReader<FileReaderContext> reader, long dataLinesToSkip) protected ImportValidationContext<FileReaderContext>
DefaultImportManager.createValidationContext
(ImportRequest request, ImportSpecification importSpecification, FileReader<FileReaderContext> fileReader, org.springframework.core.io.InputStreamSource inputStreamSource) protected FileReader<FileReaderContext>
DefaultImportManager.findReader
(String fileType) protected List<FileReader<? extends FileReaderContext>>
DefaultImportManager.getReaders()
Modifier and TypeMethodDescriptionprotected ImportProcessingContext<FileReaderContext>
DefaultImportManager.createProcessingContext
(Import metadata, ImportSpecification importSpecification, FileReader<FileReaderContext> reader, long dataLinesToSkip) protected ImportValidationContext<FileReaderContext>
DefaultImportManager.createValidationContext
(ImportRequest request, ImportSpecification importSpecification, FileReader<FileReaderContext> fileReader, org.springframework.core.io.InputStreamSource inputStreamSource) DefaultImportValidator.validate
(ImportValidationContext<? extends FileReaderContext> context) ImportValidator.validate
(ImportValidationContext<? extends FileReaderContext> context) Validates the file and import request to confirm they meet the basic requirements for allowing persistence and processing of this import.DefaultImportValidator.validateRecords
(ImportValidationContext<? extends FileReaderContext> context) Iterates through all of the records, returning a list of all validation errors that were encountered.