Examples of Passport


Examples of de.willuhn.jameica.hbci.passport.Passport

      Object selection = getKontoListe().getSelection();
      Konto k = null;
      if (selection != null && (selection instanceof Konto))
        k = (Konto) selection;
      PassportAuswahlDialog d = new PassportAuswahlDialog(k,PassportAuswahlDialog.POSITION_CENTER);
      Passport p = (Passport) d.open();

      new KontoFetchFromPassport().handleAction(p);
    }
    catch (OperationCanceledException oce)
    {
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

      {
        GUI.startView(((Configuration) context).getConfigDialog(),context);
        return;
      }
     
      Passport p = null;
      if (context instanceof Passport)
      {
        p = (Passport) context;
      }
      else
      {
        try
        {
          p = (Passport) new PassportAuswahlDialog(PassportAuswahlDialog.POSITION_CENTER).open();
        }
        catch (ApplicationException ae)
        {
          throw ae;
        }
        catch (OperationCanceledException oce)
        {
          Logger.info("operation cancelled");
          return;
        }
        catch (Exception e)
        {
          Logger.error("error while opening passport",e);
          throw new ApplicationException(i18n.tr("Fehler beim Laden: {0}",e.getMessage()));
        }
      }
     
      if (p == null)
        return;

      GUI.startView(p.getConfigDialog(),p);
    }
    catch (RemoteException e)
    {
      Logger.error("error while opening passport",e);
      throw new ApplicationException(i18n.tr("Fehler beim Laden: {0}",e.getMessage()));
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

        this.checkInterrupted();

        monitor.log(" ");
        monitor.log(i18n.tr("Synchronisiere Konto: {0}",this.getKonto().getLongName()));

        Passport passport     = new TaskPassportInit().execute();
        this.handle           = new TaskHandleInit(passport).execute();
        this.handler          = new TaskHandleOpen(handle).execute();
        new TaskSepaInfo(handler).execute();

        Logger.info("processing jobs");
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

        Konto konto             = getKonto();
        ////////////////////////////////////////////////////////////////////

        try
        {
          Passport passport = PassportRegistry.findByClass(konto.getPassportClass());
          if (passport == null)
            throw new ApplicationException(i18n.tr("Kein HBCI-Sicherheitsmedium f�r das Konto gefunden"));

          monitor.setStatusText(i18n.tr("Initialisiere HBCI-Sicherheitsmedium"));
          passport.init(konto);
          monitor.addPercentComplete(1);

          return passport;
        }
        catch (Exception e)
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

      ClassFinder finder = Application.getPluginLoader().getManifest(HBCI.class).getClassLoader().getClassFinder();
      Class[] found = finder.findImplementors(Passport.class);
      for (Class c:found)
      {
        try {
          Passport p = (Passport) service.get(c);
          Application.getCallback().getStartupMonitor().setStatusText("init passport " + p.getName());
           passportsByName.put(p.getName(),c);
          passportsByClass.put(c.getName(),c);
          Logger.info("  " + p.getName() + " [" + p.getClass().getName() + "]");
        }
        catch (Exception e)
        {
          Logger.error("failed, skipping passport",e);
        }
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

  {
    if (c == null)
      return null;
   
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    Passport p = (Passport) service.get(c);
    Logger.debug("[" + c.getName() + "][" + p.getName() + "] instantiated successfully");
    return p;
  }
View Full Code Here

Examples of org.hibernate.test.annotations.Passport

    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    Customer c = new Customer();
    c.setName( "Hibernatus" );
    Passport p = new Passport();
    p.setNumber( "123456789" );
    s.persist( c ); //we need the id to assigned it to passport
    c.setPassport( p );
    p.setOwner( c );
    p.setId( c.getId() );
    tx.commit();
    s.close();
    s = openSession();
    tx = s.beginTransaction();
    c = ( Customer ) s.get( Customer.class, c.getId() );
    assertNotNull( c );
    p = c.getPassport();
    assertNotNull( p );
    assertEquals( "123456789", p.getNumber() );
    assertNotNull( p.getOwner() );
    assertEquals( "Hibernatus", p.getOwner().getName() );
    tx.commit(); // commit or rollback is the same, we don't care for read queries
    s.close();
  }
View Full Code Here

Examples of org.hibernate.test.annotations.Passport

    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    Customer c = new Customer();
    c.setName( "Hibernatus" );
    Passport p = new Passport();
    p.setNumber( "123456789" );
    s.persist( c ); //we need the id to assigned it to passport
    c.setPassport( p );
    p.setOwner( c );
    p.setId( c.getId() );
    tx.commit();
    s.close();
    s = openSession();
    tx = s.beginTransaction();
    c = (Customer) s.get( Customer.class, c.getId() );
    assertNotNull( c );
    p = c.getPassport();
    assertNotNull( p );
    assertEquals( "123456789", p.getNumber() );
    assertNotNull( p.getOwner() );
    assertEquals( "Hibernatus", p.getOwner().getName() );
    tx.commit(); // commit or rollback is the same, we don't care for read queries
    s.close();
  }
View Full Code Here

Examples of org.hibernate.test.annotations.Passport

    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    Customer c = new Customer();
    c.setName( "Hibernatus" );
    Passport p = new Passport();
    p.setNumber( "123456789" );
    s.persist( c ); //we need the id to assigned it to passport
    c.setPassport( p );
    p.setOwner( c );
    p.setId( c.getId() );
    tx.commit();
    s.close();
    s = openSession();
    tx = s.beginTransaction();
    c = (Customer) s.get( Customer.class, c.getId() );
    assertNotNull( c );
    p = c.getPassport();
    assertNotNull( p );
    assertEquals( "123456789", p.getNumber() );
    assertNotNull( p.getOwner() );
    assertEquals( "Hibernatus", p.getOwner().getName() );
    tx.commit(); // commit or rollback is the same, we don't care for read queries
    s.close();
  }
View Full Code Here

Examples of org.hibernate.test.annotations.Passport

    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    Customer c = new Customer();
    c.setName( "Hibernatus" );
    Passport p = new Passport();
    p.setNumber( "123456789" );
    s.persist( c ); //we need the id to assigned it to passport
    c.setPassport( p );
    p.setOwner( c );
    p.setId( c.getId() );
    tx.commit();
    s.close();
    s = openSession();
    tx = s.beginTransaction();
    c = (Customer) s.get( Customer.class, c.getId() );
    assertNotNull( c );
    p = c.getPassport();
    assertNotNull( p );
    assertEquals( "123456789", p.getNumber() );
    assertNotNull( p.getOwner() );
    assertEquals( "Hibernatus", p.getOwner().getName() );
    tx.commit(); // commit or rollback is the same, we don't care for read queries
    s.close();
  }
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.