Class DatevController
java.lang.Object
org.imixs.workflow.datev.controller.DatevController
- All Implemented Interfaces:
Serializable
The DatevController is used to configure the DatevScheduler. This service is
used to generate datev export workitems.
The Controller creates a configuration entity "type=configuration; name=datev".
The following config items are defined: The following config items are defined:
_model_version = model version for the SEPA export _initial_task = inital task ID
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.imixs.workflow.faces.fileupload.FileUploadController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.workflow.ItemCollectionorg.imixs.workflow.ItemCollectionItemcollection containing file import datagetName()voidinit()This method load the config entity after postContstruct.org.imixs.workflow.ItemCollectionloadConfiguration(String name) Loads the scheduler configuration entity by name.org.imixs.workflow.ItemCollectionThis method saves the DATEV configuration.voidsetConfiguration(org.imixs.workflow.ItemCollection configuration) voidsetImportData(org.imixs.workflow.ItemCollection importData) voidThis method imports a DATEV Kreditoren.csv attachment added to the ItemCollection 'importData'
-
Field Details
-
DATEV_CONFIGURATION
- See Also:
-
fileUploadController
@Inject protected org.imixs.workflow.faces.fileupload.FileUploadController fileUploadController
-
-
Constructor Details
-
DatevController
public DatevController()
-
-
Method Details
-
init
@PostConstruct public void init()This method load the config entity after postContstruct. If no Entity exists than the ConfigService EJB creates a new config entity. -
getName
-
getConfiguration
public org.imixs.workflow.ItemCollection getConfiguration() -
setConfiguration
public void setConfiguration(org.imixs.workflow.ItemCollection configuration) -
loadConfiguration
Loads the scheduler configuration entity by name. The method returns null if no scheduler configuration exits.- Returns:
-
saveConfiguration
public org.imixs.workflow.ItemCollection saveConfiguration()This method saves the DATEV configuration. The method ensures that the following properties are set to default.- type
- name
- $writeAccess
- $readAccess
- Returns:
- Throws:
org.imixs.workflow.exceptions.AccessDeniedException
-
getImportData
public org.imixs.workflow.ItemCollection getImportData()Itemcollection containing file import data- Returns:
-
setImportData
public void setImportData(org.imixs.workflow.ItemCollection importData) -
startImport
public void startImport() throws org.imixs.workflow.exceptions.PluginExceptionThis method imports a DATEV Kreditoren.csv attachment added to the ItemCollection 'importData'It may be possible but not typically that a user uploads multiple files to import. The method can handle multiple file uploads.
For each file the method calls the DatevImportService to import the data
- Throws:
org.imixs.workflow.exceptions.PluginException
-