Package de.willuhn.jameica.hbci.synchronize

Examples of de.willuhn.jameica.hbci.synchronize.Synchronization


    // Liste der Sync-Jobs hinzufuegen
    BeanService service = Application.getBootLoader().getBootable(BeanService.class);
    List<SynchronizeBackend> backends = service.get(SynchronizeEngine.class).getBackends();
    for (SynchronizeBackend backend:backends)
    {
      Synchronization sync = new Synchronization();
      sync.setBackend(backend);
      List<SynchronizeJob> jobs = backend.getSynchronizeJobs(null); // fuer alle Konten
      if (jobs != null)
      {
        for (SynchronizeJob job:jobs)
        {
          boolean checked = true;
          try
          {
            // nicht markiert, wenn das letzte Mal explizit abgewaehlt
            checked = !uncheckedCache.containsKey(job.getName());
          }
          catch (Exception e)
          {
            Logger.error("unable to determine if job was unchecked",e);
          }
          this.addItem(job,checked);

          sync.getJobs().add(job);
        }
      }
      this.syncList.add(sync);
    }
  }
View Full Code Here


         
          // Gar kein Job in dem Backend ausgewaehlt
          if (toExecute.size() == 0)
            continue;
         
          Synchronization rs = new Synchronization();
          rs.setBackend(s.getBackend());
          rs.setJobs(toExecute);
          result.add(rs);
        }
       
        Synchronize sync = new Synchronize();
        sync.handleAction(result);
View Full Code Here

      {
        Logger.warn("type " + o.getClass() + " is no valid synchronization");
        continue;
      }

      Synchronization sync = (Synchronization) o;
      List<SynchronizeJob> jobs = sync.getJobs();
      for (SynchronizeJob job:jobs)
      {
        if (!job.isRecurring())
          nonRecurring.add(job);
      }
View Full Code Here

    }
   
    try
    {
      // Sonst naechste Iteration starten
      Synchronization s = this.list.next();
      SynchronizeBackend backend = s.getBackend();
      List<SynchronizeJob> jobs = s.getJobs();
      Logger.info("synchronizing backend " + backend.getName() + " with " + jobs.size() + " jobs");
      backend.execute(jobs);
    }
    catch (ApplicationException ae)
    {
View Full Code Here

TOP

Related Classes of de.willuhn.jameica.hbci.synchronize.Synchronization

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.