Package de.willuhn.jameica.hbci.messaging

Examples of de.willuhn.jameica.hbci.messaging.ImportMessage


     * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message)
     */
    @Override
    public void handleMessage(Message message) throws Exception
    {
      ImportMessage im = (ImportMessage) message;
      GenericObject o = im.getObject();
      if (!(o instanceof Nachricht))
        return;
     
      final Nachricht n = (Nachricht) o;
     
View Full Code Here


          tx = s;
          tx.transactionBegin();
        }
       
        s.store();
        Application.getMessagingFactory().sendMessage(new ImportMessage(s));
        result.add(s);
      }
     
      // jetzt iterieren wir nochmal ueber die Einzelauftraege und ordnen sie den
      // Sammelauftraegen zu
      for (SepaLastschrift l:lastschriften)
      {
        String key = this.createKey(l);
        SepaSammelLastschrift s = map.get(key);
       
       
        if (s == null) // WTF?
        {
          Logger.error("unable to find sepa transfer for key " + key);
          continue;
        }
       
        SepaSammelLastBuchung b = s.createBuchung();
        b.setBetrag(l.getBetrag());
        b.setCreditorId(l.getCreditorId());
        b.setEndtoEndId(l.getEndtoEndId());
        b.setGegenkontoBLZ(l.getGegenkontoBLZ());
        b.setGegenkontoName(l.getGegenkontoName());
        b.setGegenkontoNummer(l.getGegenkontoNummer());
        b.setMandateId(l.getMandateId());
        b.setSignatureDate(l.getSignatureDate());
        b.setZweck(l.getZweck());
        b.store();
        Application.getMessagingFactory().sendMessage(new ImportMessage(b));
        Application.getMessagingFactory().sendMessage(new ObjectChangedMessage(s));
       
        if (delete && !l.isNewObject())
        {
          l.delete();
View Full Code Here

         
          umsatz.store();
          created++;
          try
          {
            Application.getMessagingFactory().sendMessage(new ImportMessage(umsatz));
          }
          catch (Exception ex)
          {
            Logger.error("error while sending import message",ex);
          }
View Full Code Here

            n.setNachricht(msg);
            n.setDatum(new Date());
            n.store();
            String text = i18n.tr("Neue Institutsnachricht empfangen");
            Application.getMessagingFactory().sendMessage(new StatusBarMessage(text,StatusBarMessage.TYPE_SUCCESS));
            Application.getMessagingFactory().sendMessage(new ImportMessage(n));
            session.getProgressMonitor().setStatusText(text);
          }
          catch (Exception e)
          {
            Logger.error("unable to store system message",e);
View Full Code Here

        {
          object.store();
          created++;
          try
          {
            Application.getMessagingFactory().sendMessage(new ImportMessage(object));
          }
          catch (Exception ex)
          {
            Logger.error("error while sending import message",ex);
          }
View Full Code Here

      if (date != null && !SepaUtil.DATE_UNDEFINED.equals(date))
        ueb.setTermin(ISO_DATE.parse(date));
     
      ueb.store();
      ctx.put("ueb",ueb); // und im Context speichern
      Application.getMessagingFactory().sendMessage(new ImportMessage(ueb));
    }

    SepaSammelUeberweisungBuchung u = ueb.createBuchung();
    u.setGegenkontoName(prop.getProperty(ISEPAParser.Names.DST_NAME.getValue()));
    u.setGegenkontoNummer(prop.getProperty(ISEPAParser.Names.DST_IBAN.getValue()));
View Full Code Here

      if (date != null && !SepaUtil.DATE_UNDEFINED.equals(date))
        ueb.setTargetDate(ISO_DATE.parse(date));
     
      ueb.store();
      ctx.put("ueb",ueb); // und im Context speichern
      Application.getMessagingFactory().sendMessage(new ImportMessage(ueb));
    }

    SepaSammelLastBuchung u = ueb.createBuchung();
    u.setGegenkontoName(prop.getProperty(ISEPAParser.Names.DST_NAME.getValue()));
    u.setGegenkontoNummer(prop.getProperty(ISEPAParser.Names.DST_IBAN.getValue()));
View Full Code Here

        copy.setBetrag(parseBetrag(p.getFirstChildNamed("BETRAG")));
        copy.store();
       
        try
        {
          Application.getMessagingFactory().sendMessage(new ImportMessage(copy));
        }
        catch (Exception ex)
        {
          Logger.error("error while sending import message",ex);
        }
      }
      return parts.size();
    }

   
    // Ne, ist eine Einzel-Buchung
    String usage = getContent(line.getFirstChildNamed("ZWECK"));
    if (usage != null) VerwendungszweckUtil.apply(umsatz,usage.split("@"));
    umsatz.setUmsatzTyp(createTyp(line.getFirstChildNamed("KATEGORIE")));
    umsatz.setBetrag(parseBetrag(line.getFirstChildNamed("BETRAG")));
    umsatz.store();
    try
    {
      Application.getMessagingFactory().sendMessage(new ImportMessage(umsatz));
    }
    catch (Exception ex)
    {
      Logger.error("error while sending import message",ex);
    }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.messaging.ImportMessage

Copyright © 2018 www.massapicom. 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.