Class AsyncOperationAdapter
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
org.nuxeo.ecm.automation.server.rest.adapters.AsyncOperationAdapter
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
Adapter that allows asynchronous execution of operations.
- Since:
- 10.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper
static final String
protected jakarta.servlet.http.HttpServletRequest
protected jakarta.servlet.http.HttpServletResponse
protected static final String
protected static final String
protected AutomationService
protected CoreSession
protected AutomationServer
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
protected void
attach
(DocumentModel doc) protected void
protected void
detach
(DocumentModel doc) jakarta.ws.rs.core.Response
doPost
(ExecutionRequest xreq) protected void
enterMethod
(String executionId, InvokableMethod method) protected boolean
protected AsyncService
<Serializable, ?, ?> getAsyncService
(String executionId) protected Serializable
getAsyncTaskId
(String executionId) int
getErrorStatus
(String executionId) protected Object
protected TransientStore
protected boolean
protected boolean
isCompleted
(String executionId) jakarta.ws.rs.core.Response
protected void
setCompleted
(String executionId) protected void
protected void
setOutput
(String executionId, Serializable output) jakarta.ws.rs.core.Response
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapter
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
-
Field Details
-
NAME
- See Also:
-
STATUS_STORE_NAME
- See Also:
-
TRANSIENT_STORE_SERVICE
- See Also:
-
TRANSIENT_STORE_TASK_ID
- See Also:
-
TRANSIENT_STORE_ERROR_STATUS
- See Also:
-
TRANSIENT_STORE_ERROR
- See Also:
-
TRANSIENT_STORE_OUTPUT
- See Also:
-
TRANSIENT_STORE_OUTPUT_BLOB
- See Also:
-
STATUS_PATH
- See Also:
-
RUNNING_STATUS
- See Also:
-
RESULT_URL_KEY
- See Also:
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER -
service
-
request
@Context protected jakarta.servlet.http.HttpServletRequest request -
response
@Context protected jakarta.servlet.http.HttpServletResponse response -
session
-
srv
-
-
Constructor Details
-
AsyncOperationAdapter
public AsyncOperationAdapter()
-
-
Method Details
-
doPost
-
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
-
enterMethod
-
setError
-
getErrorStatus
-
getError
-
setOutput
-
getResult
-
attach
-
detach
-
isAsync
-
getAsyncTaskId
-
getAsyncService
-
setCompleted
-
isCompleted
-
exists
-
cleanup
-