Class DataImporterImpl

java.lang.Object
io.jmix.dataimport.impl.DataImporterImpl
All Implemented Interfaces:
DataImporter

@Component("datimp_DataImporter") public class DataImporterImpl extends Object implements DataImporter
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • importedDataExtractors

      @Autowired protected ImportedDataExtractors importedDataExtractors
    • dataImportExecutors

      @Autowired protected org.springframework.beans.factory.ObjectProvider<DataImportExecutor> dataImportExecutors
    • importConfigurationValidator

      @Autowired protected ImportConfigurationValidator importConfigurationValidator
  • Constructor Details

    • DataImporterImpl

      public DataImporterImpl()
  • Method Details

    • importData

      public ImportResult importData(ImportConfiguration configuration, byte[] content)
      Description copied from interface: DataImporter
      Creates the entities using data from the given byte array (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.
      Specified by:
      importData in interface DataImporter
      Parameters:
      configuration - import configuration
      content - source (XLSX, CSV, JSON, XML) that contains data for the entities to import
      Returns:
      object that contains result of import execution
    • importData

      public ImportResult importData(ImportConfiguration configuration, InputStream inputStream)
      Description copied from interface: DataImporter
      Creates the entities using data from the given input stream (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.
      Specified by:
      importData in interface DataImporter
      Parameters:
      configuration - import configuration
      inputStream - source (XLSX, CSV, JSON, XML) that contains data for the entities to import
      Returns:
      object that contains result of import execution
    • importData

      public ImportResult importData(ImportConfiguration configuration, ImportedData importedData)
      Description copied from interface: DataImporter
      Creates the entities using data from the given ImportedData object and specified import configuration and saves these entities to the database.
      Specified by:
      importData in interface DataImporter
      Parameters:
      configuration - import configuration
      importedData - imported data
      Returns:
      object that contains result of import execution