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
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapperstatic final Stringprotected javax.servlet.http.HttpServletRequestprotected javax.servlet.http.HttpServletResponseprotected static final Stringprotected static final Stringprotected AutomationServiceprotected CoreSessionprotected AutomationServerprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattach(DocumentModel doc) protected voidprotected voiddetach(DocumentModel doc) doPost(ExecutionRequest xreq) protected voidenterMethod(String executionId, InvokableMethod method) protected booleanprotected AsyncService<Serializable,?, ?> getAsyncService(String executionId) protected SerializablegetAsyncTaskId(String executionId) intgetErrorStatus(String executionId) protected Objectprotected TransientStoreprotected booleanprotected booleanisCompleted(String executionId) protected voidsetCompleted(String executionId) protected voidprotected voidsetOutput(String executionId, Serializable output) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapterMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapterMethods 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:
IOExceptionjavax.mail.MessagingException
-
result
- Throws:
IOExceptionjavax.mail.MessagingException
-
abort
- Throws:
IOExceptionjavax.mail.MessagingException
-
getTransientStore
-
enterMethod
-
setError
-
getErrorStatus
-
getError
-
setOutput
-
getResult
-
attach
-
detach
-
isAsync
-
getAsyncTaskId
-
getAsyncService
-
setCompleted
-
isCompleted
-
exists
-
cleanup
-