Class DocumentImportController

  • All Implemented Interfaces:
    Serializable

    @Named
    @ViewScoped
    public class DocumentImportController
    extends org.imixs.workflow.engine.scheduler.SchedulerController
    The DocumentImportController is used to configure the import scheduler.

    The configuration is based on the default scheduler

    The configuration object holds a item named 'sources'. This item contains a list of options (Map). These source definitions are consumed by ImportObserver implementations. This is an generic extension for custom implementations. There are different import adapters already defined like EmailImportAdapter or the FTPImportAdatper to process a single import source.

    Sources are organized in the item 'sources' in a ordered list of Map objects. Internally the map objects are converted into ItemCollection to simplify the handling in JSF forms.

    Each source object has a internal index number (pos) to identify the source unique. The sources can be reordered by calling the method up() and down().

    Version:
    1.0
    Author:
    rsoika
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.imixs.workflow.ItemCollection source  
      protected List<org.imixs.workflow.ItemCollection> sources  
    • Field Detail

      • sources

        protected List<org.imixs.workflow.ItemCollection> sources
      • source

        protected org.imixs.workflow.ItemCollection source
    • Constructor Detail

      • DocumentImportController

        public DocumentImportController()
    • Method Detail

      • init

        @PostConstruct
        public void init()
        This method initializes the default sync date
        Overrides:
        init in class org.imixs.workflow.engine.scheduler.SchedulerController
      • getName

        public String getName()
        Overrides:
        getName in class org.imixs.workflow.engine.scheduler.SchedulerController
      • getSchedulerClass

        public String getSchedulerClass()
        Returns the sepa scheduler class name
        Overrides:
        getSchedulerClass in class org.imixs.workflow.engine.scheduler.SchedulerController
      • saveConfiguration

        public void saveConfiguration()
        Overrides:
        saveConfiguration in class org.imixs.workflow.engine.scheduler.SchedulerController
      • getSources

        public List<org.imixs.workflow.ItemCollection> getSources()
        Returns a list of all source objects
        Returns:
      • setSources

        public void setSources​(List<org.imixs.workflow.ItemCollection> sources)
      • getSource

        public org.imixs.workflow.ItemCollection getSource()
        Returns the currently selected source
        Returns:
      • setSource

        public void setSource​(org.imixs.workflow.ItemCollection source)
      • addSource

        public void addSource()
        Adds a new filter option. The type of the option (FTP|IMAP) must be specified.
      • selectSource

        public void selectSource​(int index)
        Selects the current source by index
        Parameters:
        optionName -
      • removeSource

        public void removeSource​(int index)
        Removes an option by index
        Parameters:
        optionName -
      • moveSourceDown

        public void moveSourceDown​(int index)
        Moves the current source object one position down in the list of sources
        Parameters:
        optionName -
      • moveSourceUp

        public void moveSourceUp​(int index)
        Moves the current source object one position up in the list of sources
        Parameters:
        optionName -