Class AsyncOperationAdapter

All Implemented Interfaces:
AdapterResource, Resource, Adaptable

@Produces("application/json") public class AsyncOperationAdapter extends DefaultAdapter
Adapter that allows asynchronous execution of operations.
Since:
10.3
  • Field Details

  • Constructor Details

    • AsyncOperationAdapter

      public AsyncOperationAdapter()
  • Method Details

    • doPost

      @POST public jakarta.ws.rs.core.Response doPost(ExecutionRequest xreq)
    • status

      @GET @Path("{executionId}/status") public jakarta.ws.rs.core.Response status(@PathParam("executionId") String executionId) throws IOException, jakarta.mail.MessagingException
      Throws:
      IOException
      jakarta.mail.MessagingException
    • result

      @GET @Path("{executionId}") public jakarta.ws.rs.core.Response result(@PathParam("executionId") String executionId) throws IOException, jakarta.mail.MessagingException
      Throws:
      IOException
      jakarta.mail.MessagingException
    • abort

      @DELETE @Path("{executionId}") public jakarta.ws.rs.core.Response abort(@PathParam("executionId") String executionId) throws IOException, jakarta.mail.MessagingException
      Throws:
      IOException
      jakarta.mail.MessagingException
    • getTransientStore

      protected TransientStore getTransientStore()
    • enterMethod

      protected void enterMethod(String executionId, InvokableMethod method)
    • setError

      protected void setError(String executionId, Throwable t)
    • getErrorStatus

      public int getErrorStatus(String executionId)
    • getError

      public String getError(String executionId)
    • setOutput

      protected void setOutput(String executionId, Serializable output)
    • getResult

      protected Object getResult(String executionId)
    • attach

      protected void attach(DocumentModel doc)
    • detach

      protected void detach(DocumentModel doc)
    • isAsync

      protected boolean isAsync(String executionId)
    • getAsyncTaskId

      protected Serializable getAsyncTaskId(String executionId)
    • getAsyncService

      protected AsyncService<Serializable,?,?> getAsyncService(String executionId)
    • setCompleted

      protected void setCompleted(String executionId)
    • isCompleted

      protected boolean isCompleted(String executionId)
    • exists

      protected boolean exists(String executionId)
    • cleanup

      protected void cleanup(String executionId)