Examples of waitForDone()


Examples of org.olat.repository.async.SetDescriptionNameBackgroundTask.waitForDone()

  }

  public void setDescriptionAndName(final RepositoryEntry re, String displayName, String description ) {
    SetDescriptionNameBackgroundTask task = new SetDescriptionNameBackgroundTask(re, displayName, description);
    BackgroundTaskQueueManager.getInstance().addTask(task);
    task.waitForDone();
  }

  public void setProperties(final RepositoryEntry re, boolean canCopy, boolean canReference, boolean canLaunch, boolean canDownload ) {
    SetPropertiesBackgroundTask task = new SetPropertiesBackgroundTask(re, canCopy, canReference, canLaunch, canDownload);
    BackgroundTaskQueueManager.getInstance().addTask(task);
View Full Code Here

Examples of org.olat.repository.async.SetPropertiesBackgroundTask.waitForDone()

  }

  public void setProperties(final RepositoryEntry re, boolean canCopy, boolean canReference, boolean canLaunch, boolean canDownload ) {
    SetPropertiesBackgroundTask task = new SetPropertiesBackgroundTask(re, canCopy, canReference, canLaunch, canDownload);
    BackgroundTaskQueueManager.getInstance().addTask(task);
    task.waitForDone();
  }
 
  /**
   * Count by type, limit by role accessability.
   * @param restrictedType
View Full Code Here

Examples of org.springframework.integration.print.support.PrintJobMonitor.waitForDone()

    PrintJobMonitor printJobMonitor = new PrintJobMonitor(job);

    job.print(doc, this.printRequestAttributeSet);

    printJobMonitor.waitForDone();

    if (payload instanceof InputStream) {
      ((InputStream) payload).close();
    }
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.