Examples of HibiscusAddress


Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

        }

        // Checken, ob wir in der Adresse Mandats-Daten haben
        if (a instanceof HibiscusAddress)
        {
          HibiscusAddress addressCur = address;
         
          // Wir merken uns die ausgewaehlte Adresse fuer die spaetere Speicherung dieser Daten an der Adresse.
          address = (HibiscusAddress) a;
         
          String miNew = StringUtils.trimToNull(MetaKey.SEPA_MANDATE_ID.get(address));
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

    String id = StringUtils.trimToNull(MetaKey.ADDRESS_ID.get(lastschrift));
    if (id != null)
    {
      try
      {
        HibiscusAddress ha = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,id);
        String seqCode = StringUtils.trimToNull(MetaKey.SEPA_SEQUENCE_CODE.get(ha));
        if (seqCode != null)
        {
          SepaLastSequenceType type = SepaLastSequenceType.valueOf(seqCode);
          if (type == SepaLastSequenceType.FRST)
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

      String id = StringUtils.trimToNull(MetaKey.ADDRESS_ID.get(b));
      if (id != null)
      {
        try
        {
          HibiscusAddress ha = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,id);
          String seqCode = StringUtils.trimToNull(MetaKey.SEPA_SEQUENCE_CODE.get(ha));
          if (seqCode != null)
          {
            SepaLastSequenceType type = SepaLastSequenceType.valueOf(seqCode);
            if (type == SepaLastSequenceType.FRST)
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

      list.setOrder("ORDER by LOWER(name)");
     
      // Iterieren ueber die Adressen um BIC/IBAN zu vervollstaendigen
      while (list.hasNext())
      {
        HibiscusAddress a = (HibiscusAddress) list.next();
        this.completeIBAN(a);
        result.add(a);
      }
    }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

    s.store();

    Boolean store = (Boolean) getStoreEmpfaenger().getValue();
    if (store.booleanValue())
    {
      HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
      e.setIban(kto);
      e.setName(name);
      e.setBic(bic);
     
      // Zu schauen, ob die Adresse bereits existiert, ueberlassen wir der Action
      new EmpfaengerAdd().handleAction(e);
     
      // wenn sie in der Action gespeichert wurde, sollte sie jetzt eine ID haben und wir koennen die Meta-Daten dran haengen
      if (e.getID() != null)
      {
        // Adress-ID am Auftrag speichern
        MetaKey.ADDRESS_ID.set(s,e.getID());
      }
    }
   
    Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Buchung gespeichert"),StatusBarMessage.TYPE_SUCCESS));
    MessageBus.send("hibiscus.transfer.check",s);
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

    ////////////////////////////////////////////////////////////////////////////
    // Gegenkonto
    // und jetzt noch der Empfaenger (wenn er existiert)
    if (u.other != null)
    {
      HibiscusAddress a = HBCIKonto2Address(u.other);
      // Wenn keine Kontonummer/BLZ angegeben ist, versuchen wir es mit BIC/IBAN
      if (a.getKontonummer() == null || a.getKontonummer().length() == 0)
        a.setKontonummer(a.getIban());
      if (a.getBlz() == null || a.getBlz().length() == 0)
        a.setBlz(a.getBic());
      umsatz.setGegenkonto(a);
    }
    return umsatz;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

   * @return unsere Adresse.
   * @throws RemoteException
   */
  public static HibiscusAddress HBCIKonto2Address(Konto konto) throws RemoteException
  {
    HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
    e.setBlz(konto.blz);
    e.setKontonummer(konto.number);
    e.setBic(konto.bic);
    e.setIban(konto.iban);
    String name = konto.name;
    if (konto.name2 != null && konto.name2.length() > 0)
      name += (" " + konto.name2);
    e.setName(name);
    return e;   
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

  public Address getAddressbookEntry() throws RemoteException
  {
    try
    {
      Umsatz u = getUmsatz();
      HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
      Addressbook ab = (Addressbook) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
      e.setBlz(u.getGegenkontoBLZ());
      e.setKontonummer(u.getGegenkontoNummer());
      e.setName(u.getGegenkontoName());
      return ab.contains(e);
    }
    catch (RemoteException re)
    {
      throw re;
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

      t.store();

      Boolean store = (Boolean) getStoreEmpfaenger().getValue();
      if (store.booleanValue())
      {
        HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
        e.setIban(kto);
        e.setName(name);
        e.setBic(bic);
       
        // Zu schauen, ob die Adresse bereits existiert, ueberlassen wir der Action
        new EmpfaengerAdd().handleAction(e);
      }
      GUI.getStatusBar().setSuccessText(i18n.tr("Auftrag gespeichert"));
      t.transactionCommit();

      if (t.getBetrag() > Settings.getUeberweisungLimit())
        GUI.getView().setErrorText(i18n.tr("Warnung: Auftragslimit �berschritten: {0} ", HBCI.DECIMALFORMAT.format(Settings.getUeberweisungLimit()) + " " + getTransfer().getKonto().getWaehrung()));
     
      return true;
    }
    catch (Exception e)
    {
      if (t != null) {
        try {
          t.transactionRollback();
        }
        catch (Exception xe) {
          Logger.error("rollback failed",xe);
        }
      }
     
      if (e instanceof ApplicationException)
      {
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(e.getMessage(),StatusBarMessage.TYPE_ERROR));
      }
      else
      {
        Logger.error("error while saving order",e);
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehlgeschlagen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR));
      }
    }
    return false;
  }
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.HibiscusAddress

        ReminderUtil.apply(t,(ReminderInterval) input.getValue(), input.getEnd());

      Boolean store = (Boolean) getStoreEmpfaenger().getValue();
      if (store.booleanValue())
      {
        HibiscusAddress e = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
        e.setIban(kto);
        e.setName(name);
        e.setBic(bic);
       
        // Zu schauen, ob die Adresse bereits existiert, ueberlassen wir der Action
        new EmpfaengerAdd().handleAction(e);
      }
      GUI.getStatusBar().setSuccessText(i18n.tr("Auftrag gespeichert"));
      t.transactionCommit();

      if (t.getBetrag() > Settings.getUeberweisungLimit())
        GUI.getView().setErrorText(i18n.tr("Warnung: Auftragslimit �berschritten: {0} ", HBCI.DECIMALFORMAT.format(Settings.getUeberweisungLimit()) + " " + getTransfer().getKonto().getWaehrung()));
     
      return true;
    }
    catch (Exception e)
    {
      if (t != null) {
        try {
          t.transactionRollback();
        }
        catch (Exception xe) {
          Logger.error("rollback failed",xe);
        }
      }
     
      if (e instanceof ApplicationException)
      {
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(e.getMessage(),StatusBarMessage.TYPE_ERROR));
      }
      else
      {
        Logger.error("error while saving order",e);
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehlgeschlagen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR));
      }
    }
    return false;
  }
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.