Examples of HBCIJobResult


Examples of org.kapott.hbci.GV_Result.HBCIJobResult

      konto.addToProtokoll(i18n.tr("SEPA-Dauerauftrag aktualisiert an {0}",empfName),Protokoll.TYP_SUCCESS);
    else
      konto.addToProtokoll(i18n.tr("SEPA-Dauerauftrag ausgef�hrt an {0} ",empfName),Protokoll.TYP_SUCCESS);

    String orderID = null;
    HBCIJobResult result = this.getJobResult();
    if (result instanceof GVRDauerNew)
      orderID = ((GVRDauerNew)result).getOrderId();
    else
      orderID = ((GVRDauerEdit)result).getOrderId();
   
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

   * @throws RemoteException
   * @throws ApplicationException
   */
  public final void handleResult() throws ApplicationException, RemoteException
  {
    HBCIJobResult result    = getJobResult();
    HBCIStatus status       = result.getJobStatus();

    // BUGZILLA 964 - nur dann als abgebrochen markieren, wenn wir fuer den Job noch keinen richtigen
    // Status haben. Denn wenn der vorliegt, ist es fuer den Abbruch - zumindest fuer diesen Auftrag - zu spaet.
    // BUGZILLA 1109 - Wenn im ChipTAN-Dialog abgebrochen wird, haben wir hier ein HBCIStatus.STATUS_OK. Das
    // ist ziemlich daemlich. Wegen 964 koennen wir aber nicht pauschal abbrechen, weil wir sonst Jobs
    // als abgebrochen markieren, die schon ausgefuehrt wurden. In dem Status steht OK, drin, weil die Bank da
    // mit SUCCESS-Statuscode sowas hier geschickt hat: "0030 Auftrag entgegengenommen. Bitte TAN eingeben"
    // Rein via Status-Codes sieht alles OK aus. Gemaess "FinTS_3.0_Rueckmeldungscodes_2010-10-27_final_version.pdf"
    // steht "0030" fuer "Auftrag empfangen - Sicherheitsfreigabe erforderlich". Wir machen hier also einen
    // Sonderfall fuer diesen einen Code.
   
    // TODO Das koennte man vermutlich auch direkt in HBCI4Java implementieren
    boolean tanNeeded = false;
    HBCIRetVal[] values = status.getSuccess();
    if (values != null && values.length > 0)
    {
      for (HBCIRetVal val:values)
      {
        if (val.code != null && val.code.equals("0030"))
        {
          tanNeeded = true;
          break;
        }
      }
    }

    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    SynchronizeSession session = service.get(HBCISynchronizeBackend.class).getCurrentSession();
   
    if ((tanNeeded || status.getStatusCode() == HBCIStatus.STATUS_UNKNOWN) && session.getStatus() == ProgressMonitor.STATUS_CANCEL) // BUGZILLA 690
    {
      Logger.warn("hbci session cancelled by user, mark job as cancelled");
      markCancelled();
      return;
    }

    ////////////////////////////////////////////////////////////////////////////
    // Warnungen ausgeben, falls vorhanden - BUGZILLA 899
    HBCIRetVal[] warnings = status.getWarnings();
    if (warnings != null && warnings.length > 0)
    {
      // Loggen
      ProgressMonitor monitor = session.getProgressMonitor();
      monitor.log(" ");
      for (HBCIRetVal val:warnings)
        monitor.log("  " + val.code + ": " + val.text);
      monitor.log(" ");
     
      // Auftrag informieren
      hasWarnings(warnings);
    }
    ////////////////////////////////////////////////////////////////////////////
   
    if (result.isOK())
    {
      // Globaler Status ist OK - Job wurde zweifelsfrei erfolgreich ausgefuehrt
      // Wir markieren die Ueberweisung als "ausgefuehrt"
      markExecuted();
      return;
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK() && ret.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

    System.out.println("---------F�r Job zur Queue");
    job.addToQueue();

   
    HBCIExecStatus ret = handler.execute();
    HBCIJobResult res = job.getJobResult();
    System.out.println("----------Result: "+res.toString());
     
   
    Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
   
   
//    SEG seg = job.createJobSegment(0);
//    seg.validate();
//    String msg = seg.toString(0);
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

Examples of org.kapott.hbci.GV_Result.HBCIJobResult

        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.