Class 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 Detail

      • FTPImportService

        public FTPImportService()
    • 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.ModelException
        Creates and processes a new workitem with a given filedata
        Returns:
        Throws:
        org.imixs.workflow.exceptions.ModelException
        org.imixs.workflow.exceptions.PluginException
        org.imixs.workflow.exceptions.ProcessingErrorException
        org.imixs.workflow.exceptions.AccessDeniedException