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

Author:
rsoika
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.imixs.workflow.faces.fileupload.FileUploadController
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.imixs.workflow.ItemCollection>
    getBuchungsexportByBelegdatum(org.imixs.workflow.ItemCollection workitem)
    Liefert alle rechnungen zu einem DATEV Export sortiert nach Belegdatum.
    List<jakarta.faces.model.SelectItem>
    Diese Methode liefert eine liste von SelectItem Elementen mit den Werten des Buchungsschlüssels zurück.
    org.imixs.workflow.ItemCollection
     
    org.imixs.workflow.ItemCollection
    Itemcollection containing file import data
    List<jakarta.faces.model.SelectItem>
    Returns costcentre1 from the Corporate Space as an ArrayList of SelectItems objects.
    Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche
    List<jakarta.faces.model.SelectItem>
    Returns costcentre2 from the Object Space as an ArrayList of SelectItems objects.
    Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche
     
    void
    This method load the config entity after postContstruct.
    org.imixs.workflow.ItemCollection
    Loads the scheduler configuration entity by name.
    org.imixs.workflow.ItemCollection
    This method saves the DATEV configuration.
    void
    setConfiguration(org.imixs.workflow.ItemCollection configuration)
     
    void
    setImportData(org.imixs.workflow.ItemCollection importData)
     
    void
    This method imports a DATEV Kreditoren.csv attachment added to the ItemCollection 'importData'

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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()
      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
    • getBuSchluesel

      public List<jakarta.faces.model.SelectItem> getBuSchluesel() throws Exception
      Diese Methode liefert eine liste von SelectItem Elementen mit den Werten des Buchungsschlüssels zurück.

      Der Buchungschlüssel wird in folgendem Format im config entity DATEV_CONFIGURATION gespeichert BEZEICHNUNG | DATEV_BU_SCHLUESSEL | PROZENTSATZ

      Returns:
      Throws:
      Exception
    • getKostenstelle1

      public List<jakarta.faces.model.SelectItem> getKostenstelle1() throws Exception
      Returns costcentre1 from the Corporate Space as an ArrayList of SelectItems objects. A param entry can be devided by a | into a label and a value component. Example: 17431 | Blaue Stadt I 17435 | Blaue Stadt I 17400 | Overhead/General <f:selectItems value="#{datevController.costcentre2}" />
      Returns:
      Throws:
      Exception
    • getKostenstelle1Read

      public String getKostenstelle1Read(String value)
      Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche
      Parameters:
      value -
      Returns:
    • getKostenstelle2

      public List<jakarta.faces.model.SelectItem> getKostenstelle2() throws Exception
      Returns costcentre2 from the Object Space as an ArrayList of SelectItems objects. A param entry can be devided by a | into a label and a value component. Example: 17431 | Blaue Stadt I 17435 | Blaue Stadt I 17400 | Overhead/General <f:selectItems value="#{datevController.costcentre2}" />
      Returns:
      Throws:
      Exception
    • getKostenstelle2Read

      public String getKostenstelle2Read(String value)
      Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche
      Parameters:
      value -
      Returns:
    • 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
    • getBuchungsexportByBelegdatum

      public List<org.imixs.workflow.ItemCollection> getBuchungsexportByBelegdatum(org.imixs.workflow.ItemCollection workitem)
      Liefert alle rechnungen zu einem DATEV Export sortiert nach Belegdatum.
      Parameters:
      workitem -
      Returns: