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 Link icon

    • TasksResource Link icon

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

    • addTask Link icon

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

      @GET @Path("/{id}") @Produces("application/json") public jakarta.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 Link icon

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

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