Examples of AddressbookService


Examples of com.inspiresoftware.lib.dto.geda.examples.addressbook.service.AddressBookService


    public static void main(String[] args) {

        final PersonDAO personDAO = new PersonDAOImpl();
        final AddressBookService service = new AddressBookServiceImpl(personDAO);

        final AddressBookRun run = new AddressBookRun(personDAO, service);

        run.runSetupData();
        run.assembleContactsWithAddress();
View Full Code Here

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

         
          // Also im Adressbuch schauen
          HibiscusAddress address = (HibiscusAddress) Settings.getDBService().createObject(HibiscusAddress.class,null);
          address.setBlz(blz);
          address.setKontonummer(kto);
          AddressbookService book = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
          Address a = book.contains(address);
          kto = a != null ? a.getIban() : null;
          blz = a != null ? a.getBic() : null;
        }
       
       
View Full Code Here

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

        return;
     
      // Falls mehrere Eintraege markiert sind, kann es sein, dass einige
      // davon doppelt da sind, die fischen wir raus.
      HashMap seen = new HashMap();
      AddressbookService book = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");

      String q1 = i18n.tr("Eine Adresse mit dem Namen {0} (Kto. {1}, BLZ {2}) existiert bereits im Adressbuch.\n" +
                          "M�chten Sie die Adresse dennoch hinzuf�gen?");
      String q2 = i18n.tr("Eine Adresse mit dem Namen {0} (IBAN {1}) existiert bereits im Adressbuch.\n" +
                          "M�chten Sie die Adresse dennoch hinzuf�gen?");

      int count = 0;
      for (int i=0;i<items.size();++i)
      {
        // wir checken erstmal, ob wir den schon haben.
        HibiscusAddress e = items.get(i);

        if (e.getName() == null || e.getName().length() == 0)
        {
          Logger.warn("address [kto. " + e.getKontonummer() + ", blz " + e.getBlz() + " has no name, skipping");
          continue;
        }
        String key = e.getName() + "-" + e.getKontonummer() + "-" + e.getBlz() + "-" + e.getIban();
        if (seen.get(key) != null)
          continue; // den hatten wir schonmal. Und wir wollen den User doch nicht immer wieder fragen

        seen.put(key,e);

        if (book.contains(e) != null)
        {
          if (StringUtils.trimToNull(e.getKontonummer()) != null)
          {
            if (!Application.getCallback().askUser(q1,new String[]{e.getName(),e.getKontonummer(),e.getBlz()}))
              continue;
View Full Code Here

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

    /////////////////////////////////////////////////////////////////
    // Mal schauen, ob wir mehrere Adressbuecher haben. Ist das der Fall,
    // dann zeigen wir eine Auswahlbox an.
    try
    {
      AddressbookService service = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
      this.book = service; // Wir machen das gleich zum Default-Adressbuch
      if (service.hasExternalAddressbooks())
      {
        // Es existieren mehrere. Wir zeigen eine Auswahl an
        final SelectInput select = new SelectInput(service.getAddressbooks(),null);
        select.setAttribute("name");
        select.addListener(new Listener() {
          public void handleEvent(Event event)
          {
            Object value = select.getValue();
View Full Code Here

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

     */
    public List startSearch(String text)
    {
      try
      {
        AddressbookService service = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
        List l = service.findAddresses(text);
        if (l == null || l.size() == 0)
          return l;
       
        List result = new ArrayList();
        for (int i=0;i<l.size();++i)
View Full Code Here

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

        // OK, wir schauen im Adressbuch
        DBService db = de.willuhn.jameica.hbci.Settings.getDBService();
        HibiscusAddress address = (HibiscusAddress) db.createObject(HibiscusAddress.class,null);
        address.setBlz(blz);
        address.setKontonummer(kontonummer);
        AddressbookService service = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
        return (service.contains(address) != null);
      }
      catch (Exception e)
      {
        if (i == 0)
        {
View Full Code Here

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

    if (search == null || search.length() == 0)
      return null;

    try
    {
      AddressbookService service = (AddressbookService) Application.getServiceFactory().lookup(HBCI.class,"addressbook");
      List result = service.findAddresses(search);
      if (result == null)
        return null;
     
      ArrayList al = new ArrayList();
      for (int i=0;i<result.size();++i)
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.