Package de.willuhn.jameica.hbci.rmi

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


    list.addFilter("name = ?",name);
    if (list.hasNext())
      return (Version) list.next();
   
    // Neue Version erstellen
    Version v = (Version) service.createObject(Version.class,null);
    v.setName(name);
    v.store();
    return v;
  }
View Full Code Here


    AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
    final I18N i18n = plugin.getResources().getI18N();

    DBIterator list = Settings.getDBService().createList(Version.class);
    list.addFilter("name = ?","db");
    Version version = (Version) list.next();
   
    Label l = GUI.getStyleFactory().createLabel(parent,SWT.BORDER);
    l.setImage(SWTUtil.getImage("hibiscus.jpg"));

    Container container = new LabelGroup(parent,i18n.tr("Versionsinformationen"),true);
   
    FormTextPart text = new FormTextPart();
    text.setText("<form>" +
      "<p><b>Hibiscus - HBCI-Onlinebanking f�r Jameica</b></p>" +
      "<p>Lizenz: GPL [<a href=\"http://www.gnu.org/copyleft/gpl.html\">www.gnu.org/copyleft/gpl.html</a>]<br/>" +
      "Copyright by Olaf Willuhn [<a href=\"mailto:hibiscus@willuhn.de\">hibiscus@willuhn.de</a>]<br/>" +
      "<a href=\"http://www.willuhn.de/products/hibiscus/\">www.willuhn.de/products/hibiscus/</a></p>" +
      "<p>Software-Version: " + plugin.getManifest().getVersion() + "<br/>" +
      "Datenbank-Version: " + version.getVersion() + "<br/>" +
      "Build: " + plugin.getManifest().getBuildnumber() + " [Datum " + plugin.getManifest().getBuildDate() + "]</p>" +
      "</form>");

    container.addPart(text);
View Full Code Here

      Logger.debug("[" + prefix + "] no version, no userid or no data found, skipping update");
      return;
    }
   
    int nv = Integer.parseInt(version);
    Version v = VersionUtil.getVersion(Settings.getDBService(),prefix + "." + user);
    int cv = v.getVersion();
   
    // Keine neue Version
    if (nv == cv)
      return;
   
    if (cv < 0 || nv < 0)
    {
      Logger.warn("SUSPECT - " + prefix + " version smaller than zero. new: " + nv + ", current: " + cv);
      return;
    }

    Logger.info("got new " + prefix + " version. old: " + cv + ", new: " + nv + ", updating cache");
    String[] customerID = getCustomerIDs(passport);
    for (Enumeration keys = data.keys();keys.hasMoreElements();)
    {
      for (int i=0;i<customerID.length;++i)
      {
        String name = (String) keys.nextElement();
        DBPropertyUtil.set(prefix + "." + customerID[i] + "." + name,data.getProperty(name));
      }
    }
    // Speichern der neuen Versionsnummer
    v.setVersion(nv);
    v.store();
  }
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.rmi.Version

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.