// 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);
}
}