public class OperationContext extends Object implements Map<String,Object>
Context objects are:
setCoreSession(CoreSession)
method. When running the operation chain
in asynchronous mode another session will be created by preserving the
current session credentials.
Each entry in the operation list contains the ID of the operation to be run and a map of operation parameters to use when initializing the operation.
The context parameters map can be filled with contextual information by the caller. Each operation will be able to access the contextual data at runtime and to update it if needed.
Constructor and Description |
---|
OperationContext() |
OperationContext(CoreSession session) |
OperationContext(CoreSession session,
Map<String,Object> vars) |
public OperationContext()
public OperationContext(CoreSession session)
public OperationContext(CoreSession session, Map<String,Object> vars)
public void setCoreSession(CoreSession session)
public void setCommit(boolean commit)
public boolean isCommit()
public CoreSession getCoreSession()
public LoginStack getLoginStack()
public Principal getPrincipal()
public void setInput(Object input)
public Object getInput()
public <T> T getAdapter(Class<T> type)
@Deprecated public void addTrace(String trace)
@Deprecated public List<String> getTrace()
@Deprecated public String getFormattedTrace()
public void addCleanupHandler(CleanupHandler handler)
public void removeCleanupHandler(CleanupHandler handler)
public void dispose() throws OperationException
OperationException
public void setRollback()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public OperationCallback getChainCallback()
public void addChainCallback(OperationCallback chainCallback)
public OperationContext getSubContext(Boolean isolate, Object input)
isolate
- define if keeps context variables for the subcontextCopyright © 2014 Nuxeo SA. All rights reserved.