Package org.eclipse.orion.server.core.tasks

Examples of org.eclipse.orion.server.core.tasks.ITaskService.cancelTask()


    boolean isKeep = "id".equals(path.segment(0));
    String taskId = path.segment(1);
    ITaskService taskService = taskTracker.getService();
    try {
      taskService.cancelTask(TaskJobHandler.getUserId(req), taskId, isKeep);
    } catch (TaskDoesNotExistException e) {
      handleException(resp, "Could not cancel task that does not exist: " + e.getTaskId(), e, HttpServletResponse.SC_NOT_FOUND);
      return;
    } catch (TaskOperationException e) {
      handleException(resp, e.getMessage(), e);
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.