public class DefaultContextAssociationManager extends Object implements ContextAssociationManager, Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultContextAssociationManager.ConversationScopedAssociation |
protected static class |
DefaultContextAssociationManager.RequestScopedAssociation |
protected static class |
DefaultContextAssociationManager.ScopedAssociation |
| Constructor and Description |
|---|
DefaultContextAssociationManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
disAssociate()
Disassociates the current process instance with a context / scope
|
protected List<Class<? extends DefaultContextAssociationManager.ScopedAssociation>> |
getAvailableScopedAssociationClasses()
Override to add different / additional contexts.
|
protected Class<? extends DefaultContextAssociationManager.ScopedAssociation> |
getBroadestActiveContext() |
Map<String,Object> |
getCachedVariables() |
Execution |
getExecution()
get the current execution
|
protected ExecutionEntity |
getExecutionFromContext() |
String |
getExecutionId() |
protected DefaultContextAssociationManager.ScopedAssociation |
getScopedAssociation() |
Task |
getTask()
get the current task
|
Object |
getVariable(String variableName)
get a process variable
|
void |
setExecution(Execution execution)
associate with the provided execution
|
void |
setTask(Task task)
set a current task
|
void |
setVariable(String variableName,
Object value)
set a process variable
|
protected Class<? extends DefaultContextAssociationManager.ScopedAssociation> getBroadestActiveContext()
protected List<Class<? extends DefaultContextAssociationManager.ScopedAssociation>> getAvailableScopedAssociationClasses()
protected DefaultContextAssociationManager.ScopedAssociation getScopedAssociation()
public void setExecution(Execution execution)
ContextAssociationManagersetExecution in interface ContextAssociationManagerpublic void disAssociate()
ContextAssociationManagerdisAssociate in interface ContextAssociationManagerpublic String getExecutionId()
getExecutionId in interface ContextAssociationManagerpublic Execution getExecution()
ContextAssociationManagergetExecution in interface ContextAssociationManagerpublic Object getVariable(String variableName)
ContextAssociationManagergetVariable in interface ContextAssociationManagerpublic void setVariable(String variableName, Object value)
ContextAssociationManagersetVariable in interface ContextAssociationManagerprotected ExecutionEntity getExecutionFromContext()
public Task getTask()
ContextAssociationManagergetTask in interface ContextAssociationManagerpublic void setTask(Task task)
ContextAssociationManagersetTask in interface ContextAssociationManagerpublic Map<String,Object> getCachedVariables()
getCachedVariables in interface ContextAssociationManagerCopyright © 2016 Alfresco. All rights reserved.