Package de.willuhn.jameica.hbci.passport

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


    addColumn(i18n.tr("HBCI-Medium"),"passport_class", new Formatter() {
      public String format(Object o)
      {
        if (o == null || !(o instanceof String))
          return null;
        Passport p;
        try
        {
          p = PassportRegistry.findByClass((String)o);
          return p.getName();
        }
        catch (Exception e)
        {
          Logger.error("error while loading hbci passport for konto",e);
          return i18n.tr("Fehler beim Ermitteln des HBCI-Mediums");
View Full Code Here


  public void handleAction(Object context) throws ApplicationException
  {
    if (context == null || !(context instanceof Passport))
      throw new ApplicationException(i18n.tr("Kein Sicherheitsmedium ausgew�hlt oder keines verf�gbar"));

    final Passport p = (Passport) context;

    GUI.startSync(new Runnable()
    {
      public void run() {
        try {

          GUI.getStatusBar().startProgress();
          GUI.getStatusBar().setSuccessText(i18n.tr("Medium wird ausgelesen..."));
          new KontoMerge().handleAction(p.getHandle().getKonten());

          // Konto-Liste neu laden
          GUI.startView(KontoList.class,null);
        }
        catch (OperationCanceledException oce)
View Full Code Here

        getKonto().setBackendClass(backend != null ? backend.getClass().getName() : null);
       
        BeanService service = Application.getBootLoader().getBootable(BeanService.class);
        final SynchronizeBackend hbci = service.get(HBCISynchronizeBackend.class);

        Passport p = (Passport) getPassportAuswahl().getValue();
        if (backend != null && backend.equals(hbci)) // Passport gibts nur bei Scripting
        {
          if (p == null)
            throw new ApplicationException(i18n.tr("Bitte w�hlen Sie ein FinTS-Sicherheitsverfahren aus"));
          getKonto().setPassportClass(p.getClass().getName());
        }
        else
        {
          getKonto().setPassportClass(null);
        }
View Full Code Here

      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

      {
        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

        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

        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

      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

  {
    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

TOP

Related Classes of de.willuhn.jameica.hbci.passport.Passport

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.