Package org.imixs.archive.importer.ftp
Class FTPImportService
java.lang.Object
org.imixs.archive.importer.ftp.FTPImportService
The FTPImportService reacts on DocumentImportEvent and processes a FTP data
source.
The implementation is based on org.apache.commons.net.ftp
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ItemCollectioncreateWorkitem(org.imixs.workflow.ItemCollection source, String fileName, byte[] rawData) Creates and processes a new workitem with a given filedatavoidonEvent(DocumentImportEvent event) This method reacts on a CDI ImportEvent and reads documents form a ftp server.
-
Constructor Details
-
FTPImportService
public FTPImportService()
-
-
Method Details
-
onEvent
This method reacts on a CDI ImportEvent and reads documents form a ftp server. -
createWorkitem
public org.imixs.workflow.ItemCollection createWorkitem(org.imixs.workflow.ItemCollection source, String fileName, byte[] rawData) throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.PluginException, org.imixs.workflow.exceptions.ModelException Creates and processes a new workitem with a given filedata- Returns:
- Throws:
org.imixs.workflow.exceptions.ModelExceptionorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionorg.imixs.workflow.exceptions.AccessDeniedException
-