Class EntityDocumentZipImporterImpl

java.lang.Object
ch.tocco.nice2.dms.impl.action.zipimport.EntityDocumentZipImporterImpl
All Implemented Interfaces:
EntityDocumentZipImporter

@Component public class EntityDocumentZipImporterImpl extends Object implements EntityDocumentZipImporter
  • Constructor Details

  • Method Details

    • importArchive

      public void importArchive(InputStream zipStream, String entityName, @Nullable String referenceField, boolean replaceExisting) throws IOException
      Description copied from interface: EntityDocumentZipImporter
      Schedules the asynchronous import of the given zip archive.
      Specified by:
      importArchive in interface EntityDocumentZipImporter
      Parameters:
      zipStream - the zip archive content
      entityName - the entity model the reference values in the archive point to
      referenceField - the field used to look up entities by the reference value in the archive; if null or empty the entity's counter field is used
      replaceExisting - whether existing documents should be overwritten
      Throws:
      IOException