Class DocumentImportController
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new filter option.getName()Returns the sepa scheduler class nameorg.imixs.workflow.ItemCollectionReturns the currently selected sourceList<org.imixs.workflow.ItemCollection>Returns a list of all source objectsvoidinit()This method initializes the default sync datevoidmoveSourceDown(int index) Moves the current source object one position down in the list of sourcesvoidmoveSourceUp(int index) Moves the current source object one position up in the list of sourcesvoidremoveSource(int index) Removes an option by indexvoidvoidselectSource(int index) Selects the current source by indexvoidsetSource(org.imixs.workflow.ItemCollection source) voidsetSources(List<org.imixs.workflow.ItemCollection> sources) Methods inherited from class org.imixs.workflow.engine.scheduler.SchedulerController
getConfiguration, getSchedulerService, millisToShortDHMS, refresh, restartScheduler, setConfiguration, setName, setSchedulerClass, startScheduler, stopScheduler
-
Field Details
-
sources
-
source
protected org.imixs.workflow.ItemCollection source
-
-
Constructor Details
-
DocumentImportController
public DocumentImportController()
-
-
Method Details
-
init
@PostConstruct public void init()This method initializes the default sync date- Overrides:
initin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getName
- Overrides:
getNamein classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getSchedulerClass
Returns the sepa scheduler class name- Overrides:
getSchedulerClassin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
saveConfiguration
public void saveConfiguration()- Overrides:
saveConfigurationin classorg.imixs.workflow.engine.scheduler.SchedulerController
-
getSources
Returns a list of all source objects- Returns:
-
setSources
-
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-
-