Package org.imixs.archive.importer.ftp
Class FTPImportService
- java.lang.Object
-
- org.imixs.archive.importer.ftp.FTPImportService
-
public class FTPImportService extends Object
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 Constructor Description FTPImportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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.
-
-
-
Method Detail
-
onEvent
public void onEvent(@Observes DocumentImportEvent event)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.ModelExceptionCreates 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
-
-