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 Summary
ConstructorsConstructorDescriptionEntityDocumentZipImporterImpl(Context context, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidimportArchive(InputStream zipStream, String entityName, @Nullable String referenceField, boolean replaceExisting) Schedules the asynchronous import of the given zip archive.
-
Constructor Details
-
EntityDocumentZipImporterImpl
public EntityDocumentZipImporterImpl(Context context, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
importArchive
public void importArchive(InputStream zipStream, String entityName, @Nullable String referenceField, boolean replaceExisting) throws IOException Description copied from interface:EntityDocumentZipImporterSchedules the asynchronous import of the given zip archive.- Specified by:
importArchivein interfaceEntityDocumentZipImporter- Parameters:
zipStream- the zip archive contententityName- the entity model the reference values in the archive point toreferenceField- the field used to look up entities by the reference value in the archive; ifnullor empty the entity's counter field is usedreplaceExisting- whether existing documents should be overwritten- Throws:
IOException
-