@RolesAllowed(value="ROLE_tavernauser") public interface TavernaServerREST
TavernaServerSOAP
Modifier and Type | Interface and Description |
---|---|
static class |
TavernaServerREST.EnabledNotificationFabrics
Helper class for describing the listener types that are allowed via JAXB.
|
static interface |
TavernaServerREST.EventFeed
The interface exposed by the Atom feed of events.
|
static interface |
TavernaServerREST.PathNames
Factored out path names used in the
TavernaServerREST interface
and related places. |
static class |
TavernaServerREST.PermittedListeners
Helper class for describing the listener types that are allowed via JAXB.
|
static class |
TavernaServerREST.PermittedWorkflows
Helper class for describing the workflows that are allowed via JAXB.
|
static interface |
TavernaServerREST.PolicyView
How to discover the publicly-visible policies supported by this server.
|
static class |
TavernaServerREST.RunList
Helper class for describing the workflow runs.
|
static class |
TavernaServerREST.ServerDescription
Helper class for describing the server's user-facing management API via
JAXB.
|
static class |
TavernaServerREST.WorkflowReference
A reference to a workflow hosted on some public HTTP server.
|
Modifier and Type | Method and Description |
---|---|
TavernaServerREST.ServerDescription |
describeService(javax.ws.rs.core.UriInfo ui)
Produces the description of the service.
|
TavernaServerREST.PolicyView |
getPolicyDescription() |
TavernaServerRunREST |
getRunResource(String runName,
javax.ws.rs.core.UriInfo uriInfo)
Get a particular named run resource.
|
TavernaServerREST.RunList |
listUsersRuns(javax.ws.rs.core.UriInfo ui)
Produces a description of the list of runs.
|
javax.ws.rs.core.Response |
runsOptions()
Get an outline of the operations supported.
|
javax.ws.rs.core.Response |
serviceOptions()
Get an outline of the operations supported.
|
javax.ws.rs.core.Response |
submitWorkflow(Workflow workflow,
javax.ws.rs.core.UriInfo ui)
Accepts (or not) a request to create a new run executing the given
workflow.
|
javax.ws.rs.core.Response |
submitWorkflowByURL(List<URI> referenceList,
javax.ws.rs.core.UriInfo ui)
Accepts (or not) a request to create a new run executing the workflow at
the given location.
|
@GET @Path(value="/") @Produces(value={"application/xml","application/json"}) @Nonnull TavernaServerREST.ServerDescription describeService(@Nonnull @Context javax.ws.rs.core.UriInfo ui)
ui
- About the URI being accessed.@OPTIONS @Path(value="/") javax.ws.rs.core.Response serviceOptions()
@GET @Path(value="runs") @Produces(value={"application/xml","application/json"}) @RolesAllowed(value="ROLE_tavernauser") @Nonnull TavernaServerREST.RunList listUsersRuns(@Nonnull @Context javax.ws.rs.core.UriInfo ui)
ui
- About the URI being accessed.@POST @Path(value="runs") @Consumes(value={"application/vnd.taverna.t2flow+xml","application/vnd.taverna.scufl2.workflow-bundle","application/xml"}) @RolesAllowed(value="ROLE_tavernauser") @Nonnull javax.ws.rs.core.Response submitWorkflow(@Nonnull Workflow workflow, @Nonnull @Context javax.ws.rs.core.UriInfo ui) throws NoUpdateException
workflow
- The workflow document to execute.ui
- About the URI being accessed.NoUpdateException
- If the POST failed.@POST @Path(value="runs") @Consumes(value="text/uri-list") @RolesAllowed(value="ROLE_tavernauser") @Nonnull javax.ws.rs.core.Response submitWorkflowByURL(@Nonnull List<URI> referenceList, @Nonnull @Context javax.ws.rs.core.UriInfo ui) throws NoCreateException, NoUpdateException
workflowReference
- The wrapped URI to workflow document to execute.ui
- About the URI being POSTed to.NoUpdateException
- If the POST failed.NoCreateException
@OPTIONS @Path(value="runs") javax.ws.rs.core.Response runsOptions()
@Path(value="policy") @Nonnull TavernaServerREST.PolicyView getPolicyDescription()
@Path(value="runs/{runName}") @RolesAllowed(value="ROLE_tavernauser") @Nonnull TavernaServerRunREST getRunResource(@Nonnull @PathParam(value="runName") String runName, @Nonnull @Context javax.ws.rs.core.UriInfo uriInfo) throws UnknownRunException
runName
- The name of the run.uriInfo
- About the URI used to access this run.UnknownRunException
- If the run handle is unknown to the current user.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.