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.jaxrs.adapters.AsyncOperationAdapter
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
Adapter that allows asynchronous execution of operations.
- Since:
- 10.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper
static final String
protected javax.servlet.http.HttpServletRequest
protected javax.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
attach
(DocumentModel doc) protected void
protected void
detach
(DocumentModel doc) 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) protected void
setCompleted
(String executionId) protected void
protected void
setOutput
(String executionId, Serializable output) 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 javax.servlet.http.HttpServletRequest request -
response
@Context protected javax.servlet.http.HttpServletResponse response -
session
-
srv
-
-
Constructor Details
-
AsyncOperationAdapter
public AsyncOperationAdapter()
-
-
Method Details
-
doPost
-
status
- Throws:
IOException
javax.mail.MessagingException
-
result
- Throws:
IOException
javax.mail.MessagingException
-
abort
- Throws:
IOException
javax.mail.MessagingException
-
getTransientStore
-
enterMethod
-
setError
-
getErrorStatus
-
getError
-
setOutput
-
getResult
-
attach
-
detach
-
isAsync
-
getAsyncTaskId
-
getAsyncService
-
setCompleted
-
isCompleted
-
exists
-
cleanup
-