Class ZipFileImportActionServiceImpl
java.lang.Object
ch.tocco.nice2.dms.impl.action.zipimport.ZipFileImportActionServiceImpl
- All Implemented Interfaces:
ZipFileImportActionService
-
Constructor Summary
ConstructorDescriptionZipFileImportActionServiceImpl
(Context context, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importZipFile
(org.directwebremoting.io.FileTransfer transferedFile, String entityName, String providedReferenceField, boolean replaceExistingFiles) Imports the contentFileTransfer
provided from the UI into existing Entities.
-
Constructor Details
-
ZipFileImportActionServiceImpl
public ZipFileImportActionServiceImpl(Context context, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
importZipFile
public void importZipFile(org.directwebremoting.io.FileTransfer transferedFile, String entityName, String providedReferenceField, boolean replaceExistingFiles) throws IOException Description copied from interface:ZipFileImportActionService
Imports the contentFileTransfer
provided from the UI into existing Entities. The first folder in the zip file will be ignored. The second folder is the reference to the entity where the documents should be imported. If the third level folder starts with '[' and ends with ']' we assume that a document field is referenced, otherwise the folder, all subfolders and all documents will be imported into the entity folder.- Specified by:
importZipFile
in interfaceZipFileImportActionService
- Parameters:
transferedFile
- the file to be imported. Has to be a valid zip file.- Throws:
IOException
-