Class TasksResource
java.lang.Object
io.goobi.viewer.api.rest.v1.tasks.TasksResource
REST resource for creating and monitoring asynchronous
TaskManager tasks within the viewer, such as PDF pre-rendering.- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTask(TaskParameter desc) getTasks()booleanisAuthorized(ITaskType type, Optional<String> jobSessionId, HttpServletRequest request)
-
Constructor Details
-
TasksResource
-
-
Method Details
-
addTask
@POST @Consumes("application/json") @Produces("application/json") public Response addTask(TaskParameter desc) throws WebApplicationException - Throws:
WebApplicationException
-
getTask
@GET @Path("/{id}") @Produces("application/json") public Response getTask(@PathParam("id") String id) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
getTasks
-
isAuthorized
public boolean isAuthorized(ITaskType type, Optional<String> jobSessionId, HttpServletRequest request)
-