Class DatevController

java.lang.Object
org.imixs.workflow.datev.controller.DatevController
All Implemented Interfaces:
Serializable

@Named @SessionScoped public class DatevController extends Object implements 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 Details

    • DATEV_CONFIGURATION

      public static final String 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

      public String getName()
    • getConfiguration

      public org.imixs.workflow.ItemCollection getConfiguration()
    • setConfiguration

      public void setConfiguration(org.imixs.workflow.ItemCollection configuration)
    • loadConfiguration

      public org.imixs.workflow.ItemCollection loadConfiguration(String name)
      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
      The method also updates the timer details of a running timer.
      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.PluginException
      This 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