Examples of HibiscusDBObject


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

          item.setFont(faellig ? Font.BOLD.getSWTFont() : Font.DEFAULT.getSWTFont());
          if (l.ausgefuehrt())
            item.setForeground(Color.COMMENT.getSWTColor());

          // Checken, ob der Auftrag einen Reminder hat oder ob es ein geclonter Auftrag ist
          HibiscusDBObject o = (HibiscusDBObject) l;
          String uuid = MetaKey.REMINDER_UUID.get(o);
          if (uuid != null)
          {
            try
            {
View Full Code Here

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

    if (!(context instanceof HibiscusDBObject))
      return;
   
    try
    {
      HibiscusDBObject object = (HibiscusDBObject) context;
      String id = MetaKey.REMINDER_TEMPLATE.get(object);
      if (id == null)
        return;
     
      // Checken, ob wir den Datensatz laden koennen
      DBObject o = Settings.getDBService().createObject(object.getClass(),id);
     
      // Wir versuchen, ihn zu oeffnen
      new Open().handleAction(o);
    }
    catch (ObjectNotFoundException oe)
View Full Code Here

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

            item.setForeground(Color.ERROR.getSWTColor());
          else if (l.ausgefuehrt())
            item.setForeground(Color.COMMENT.getSWTColor());

          // Checken, ob der Auftrag einen Reminder hat oder ob es ein geclonter Auftrag ist
          HibiscusDBObject o = (HibiscusDBObject) l;
          String uuid = MetaKey.REMINDER_UUID.get(o);
          if (uuid != null)
          {
            try
            {
View Full Code Here

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

          item.setFont(faellig ? Font.BOLD.getSWTFont() : Font.DEFAULT.getSWTFont());
          if (l.ausgefuehrt())
            item.setForeground(Color.COMMENT.getSWTColor());

          // Checken, ob der Auftrag einen Reminder hat oder ob es ein geclonter Auftrag ist
          HibiscusDBObject o = (HibiscusDBObject) l;
          String uuid = MetaKey.REMINDER_UUID.get(o);
          if (uuid != null)
          {
            try
            {
View Full Code Here

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

   */
  public ReminderIntervalInput(Terminable terminable, Date termin) throws RemoteException
  {
    this.order = terminable;

    final HibiscusDBObject bean = (HibiscusDBObject) order;
   
    // Fuer Auftraege, die bereits selbst via Reminder erzeugt wurden, duerfen keine
    // neuen Reminder angelegt werden. Daher nehmen wir hier ein LinkInput, welches
    // auf die Kopier-Vorlage verlinkt.
    if (MetaKey.REMINDER_TEMPLATE.get(bean) != null)
View Full Code Here

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

    //    Auftrag basiert und den gesuchten Termin besitzt
    DBIterator list = service.createList(type);
    list.addFilter("termin = ?",termin);
    while (list.hasNext())
    {
      HibiscusDBObject t = (HibiscusDBObject) list.next();
      // Wenn der Auftrag in den Meta-Daten die ID des gesuchten Auftrages hat,
      // dann ist er bereits erzeugt worden.
      String from = MetaKey.REMINDER_TEMPLATE.get(t);
      if (from != null && from.equals(id))
      {
        Logger.debug("already cloned by " + MetaKey.REMINDER_CREATOR.get(t));
        return;
      }
    }

    // 3. Auftrag laden
    Duplicatable template = (Duplicatable) service.createObject(type,id);

    // 4. Auftrag clonen und speichern
    HibiscusDBObject order = (HibiscusDBObject) template.duplicate();
    String hostname        = Application.getCallback().getHostname();

    try
    {
      order.transactionBegin();

      ((Terminable)order).setTermin(termin);      // Ziel-Datum uebernehmen
      order.store();                              // speichern, noetig, weil wir die ID brauchen

      // Meta-Daten speichern
      MetaKey.REMINDER_CREATOR.set(order,hostname);
      MetaKey.REMINDER_TEMPLATE.set(order,id);

      order.transactionCommit();
      Application.getMessagingFactory().sendSyncMessage(new ImportMessage(order)); //synchron senden, weil wir schon im Messaging-Thread sind

      Logger.info("order " + type.getSimpleName() + ":" + id + " cloned by " + hostname + ", id: " + order.getID() + ", date: " + termin);
    }
    catch (Exception e)
    {
      try
      {
        order.transactionRollback();
      }
      catch (Exception e2)
      {
        Logger.error("unable to rollback transaction",e2);
      }
View Full Code Here

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

    QueryMessage msg = (QueryMessage) message;
    Object data = msg.getData();
    if (!(data instanceof HibiscusDBObject))
      return;

    HibiscusDBObject o = (HibiscusDBObject) data;
    if (o.isNewObject())
      return;
   
    String id        = o.getID();
    String className = o.getClass().getName();
   
    List<Bookmark> bookmarks = service.getBookmarks();
    for (int i=0;i<bookmarks.size();++i)
    {
      Bookmark b = bookmarks.get(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.