Esempio n. 1
0
  public void run() {
    setRunning(true);
    this.logInfo(International.getString("Importiere Datensätze ..."));
    if (isXmlFile(filename)) {
      runXmlImport();
    } else {
      runCsvImport();
    }
    this.logInfo(
        "\n\n"
            + International.getMessage("{count} Datensätze erfolgreich importiert.", importCount));
    this.logInfo("\n" + International.getMessage("{count} Fehler.", errorCount));
    this.logInfo("\n" + International.getMessage("{count} Warnungen.", warningCount));

    // Start the Audit in the background to find any eventual inconsistencies
    (new Audit(Daten.project)).start();

    setDone();
  }
Esempio n. 2
0
 private void logImportFailed(DataRecord r, String msg, Exception e) {
   if (e != null) {
     Logger.logdebug(e);
   }
   logInfo(
       "\nERROR: "
           + LogString.operationFailed(
               International.getMessage("Import von Datensatz {record}", r.toString()), msg));
   errorCount++;
 }
Esempio n. 3
0
 public String getSuccessfullyDoneMessage() {
   return International.getMessage("{count} Datensätze erfolgreich importiert.", importCount);
 }