public class AsyncOperationAdapter extends DefaultAdapter
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
protected static String |
RESULT_URL_KEY |
protected static String |
RUNNING_STATUS |
protected AutomationService |
service |
protected CoreSession |
session |
protected AutomationServer |
srv |
protected static String |
STATUS_PATH |
protected static String |
STATUS_STORE_NAME |
protected static String |
TRANSIENT_STORE_ERROR |
protected static String |
TRANSIENT_STORE_OUTPUT |
protected static String |
TRANSIENT_STORE_OUTPUT_BLOB |
protected static String |
TRANSIENT_STORE_SERVICE |
protected static String |
TRANSIENT_STORE_TASK_ID |
Constructor and Description |
---|
AsyncOperationAdapter() |
Modifier and Type | Method and Description |
---|---|
Object |
abort(String executionId) |
protected void |
attach(DocumentModel doc) |
protected void |
cleanup(String executionId) |
protected void |
detach(DocumentModel doc) |
Object |
doPost(ExecutionRequest xreq) |
protected void |
enterMethod(String executionId,
InvokableMethod method) |
protected boolean |
exists(String executionId) |
protected AsyncService |
getAsyncService(String executionId) |
String |
getError(String executionId) |
protected Object |
getResult(String executionId) |
protected Serializable |
getTaskId(String executionId) |
protected TransientStore |
getTransientStore() |
protected boolean |
isAsync(String executionId) |
protected boolean |
isCompleted(String executionId) |
Object |
result(String executionId) |
protected void |
setCompleted(String executionId) |
protected void |
setError(String executionId,
String error) |
protected void |
setOutput(String executionId,
Serializable output) |
Object |
status(String executionId) |
disptachAdapter, getTarget, isAdapter
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
getAdapter
public static final String NAME
protected static final String STATUS_STORE_NAME
protected static final String TRANSIENT_STORE_SERVICE
protected static final String TRANSIENT_STORE_TASK_ID
protected static final String TRANSIENT_STORE_ERROR
protected static final String TRANSIENT_STORE_OUTPUT
protected static final String TRANSIENT_STORE_OUTPUT_BLOB
protected static final String STATUS_PATH
protected static final String RUNNING_STATUS
protected static final String RESULT_URL_KEY
@Context protected AutomationService service
@Context protected javax.servlet.http.HttpServletRequest request
@Context protected javax.servlet.http.HttpServletResponse response
@Context protected CoreSession session
@Context protected AutomationServer srv
public AsyncOperationAdapter()
public Object doPost(ExecutionRequest xreq)
public Object status(String executionId) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public Object result(String executionId) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public Object abort(String executionId) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
protected TransientStore getTransientStore()
protected void enterMethod(String executionId, InvokableMethod method)
protected void setOutput(String executionId, Serializable output)
protected void attach(DocumentModel doc)
protected void detach(DocumentModel doc)
protected Serializable getTaskId(String executionId)
protected AsyncService getAsyncService(String executionId)
protected void setCompleted(String executionId)
protected boolean isCompleted(String executionId)
Copyright © 2019 Nuxeo. All rights reserved.