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.ObjectMapperstatic final Stringprotected jakarta.servlet.http.HttpServletRequestprotected jakarta.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 TypeMethodDescriptionjakarta.ws.rs.core.Responseprotected voidattach(DocumentModel doc) protected voidprotected voiddetach(DocumentModel doc) jakarta.ws.rs.core.ResponsedoPost(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) jakarta.ws.rs.core.Responseprotected voidsetCompleted(String executionId) protected voidprotected voidsetOutput(String executionId, Serializable output) jakarta.ws.rs.core.ResponseMethods 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 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:
IOExceptionjakarta.mail.MessagingException
-
result
@GET @Path("{executionId}") public jakarta.ws.rs.core.Response result(@PathParam("executionId") String executionId) throws IOException, jakarta.mail.MessagingException - Throws:
IOExceptionjakarta.mail.MessagingException
-
abort
@DELETE @Path("{executionId}") public jakarta.ws.rs.core.Response abort(@PathParam("executionId") String executionId) throws IOException, jakarta.mail.MessagingException - Throws:
IOExceptionjakarta.mail.MessagingException
-
getTransientStore
-
enterMethod
-
setError
-
getErrorStatus
-
getError
-
setOutput
-
getResult
-
attach
-
detach
-
isAsync
-
getAsyncTaskId
-
getAsyncService
-
setCompleted
-
isCompleted
-
exists
-
cleanup
-