Class TasksResource

java.lang.Object
io.goobi.viewer.api.rest.v1.tasks.TasksResource

@Path("/tasks") public class TasksResource extends Object
Create and monitor (possibly time consuming) tasks within the viewer. These tasks are managed by the TaskManager
Author:
florian
  • Constructor Details

    • TasksResource

      public TasksResource(@Context javax.servlet.http.HttpServletRequest request, @Context javax.servlet.http.HttpServletResponse response)
  • Method Details

    • addTask

      @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response addTask(TaskParameter desc) throws javax.ws.rs.WebApplicationException
      Throws:
      javax.ws.rs.WebApplicationException
    • getTask

      @GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getTask(@PathParam("id") String id) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
    • getTasks

      @GET @Produces("application/json") public List<Task> getTasks()
    • isAuthorized

      public boolean isAuthorized(TaskType type, Optional<String> jobSessionId, javax.servlet.http.HttpServletRequest request)