@Named
@ViewScoped
public class DocumentImportController
extends org.imixs.workflow.engine.scheduler.SchedulerController
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().
FTPImportAdapter, EmailImportAdapter,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected org.imixs.workflow.ItemCollection |
source |
protected List<org.imixs.workflow.ItemCollection> |
sources |
| Constructor and Description |
|---|
DocumentImportController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource()
Adds a new filter option.
|
String |
getName() |
String |
getSchedulerClass()
Returns the sepa scheduler class name
|
org.imixs.workflow.ItemCollection |
getSource()
Returns the currently selected source
|
List<org.imixs.workflow.ItemCollection> |
getSources()
Returns a list of all source objects
|
void |
init()
This method initializes the default sync date
|
void |
moveSourceDown(int index)
Moves the current source object one position down in the list of sources
|
void |
moveSourceUp(int index)
Moves the current source object one position up in the list of sources
|
void |
removeSource(int index)
Removes an option by index
|
void |
saveConfiguration() |
void |
selectSource(int index)
Selects the current source by index
|
void |
setSource(org.imixs.workflow.ItemCollection source) |
void |
setSources(List<org.imixs.workflow.ItemCollection> sources) |
protected List<org.imixs.workflow.ItemCollection> sources
protected org.imixs.workflow.ItemCollection source
@PostConstruct public void init()
init in class org.imixs.workflow.engine.scheduler.SchedulerControllerpublic String getName()
getName in class org.imixs.workflow.engine.scheduler.SchedulerControllerpublic String getSchedulerClass()
getSchedulerClass in class org.imixs.workflow.engine.scheduler.SchedulerControllerpublic void saveConfiguration()
saveConfiguration in class org.imixs.workflow.engine.scheduler.SchedulerControllerpublic List<org.imixs.workflow.ItemCollection> getSources()
public void setSources(List<org.imixs.workflow.ItemCollection> sources)
public org.imixs.workflow.ItemCollection getSource()
public void setSource(org.imixs.workflow.ItemCollection source)
public void addSource()
public void selectSource(int index)
optionName - public void removeSource(int index)
optionName - public void moveSourceDown(int index)
optionName - public void moveSourceUp(int index)
optionName - Copyright © 2016–2021 Imixs Software Solutions GmbH. All rights reserved.