public class CommandContext extends Object
Modifier and Type | Field and Description |
---|---|
protected Command<?> |
command |
protected List<CommandContextCloseListener> |
commandContextCloseListeners |
protected Throwable |
exception |
protected FailedJobCommandFactory |
failedJobCommandFactory |
protected LinkedList<AtomicOperation> |
nextOperations |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected Map<Class<?>,SessionFactory> |
sessionFactories |
protected Map<Class<?>,Session> |
sessions |
protected TransactionContext |
transactionContext |
Constructor and Description |
---|
CommandContext(Command<?> command,
ProcessEngineConfigurationImpl processEngineConfiguration) |
CommandContext(Command<?> cmd,
ProcessEngineConfigurationImpl processEngineConfiguration,
TransactionContextFactory transactionContextFactory) |
protected Command<?> command
protected TransactionContext transactionContext
protected Map<Class<?>,SessionFactory> sessionFactories
protected Throwable exception
protected LinkedList<AtomicOperation> nextOperations
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected FailedJobCommandFactory failedJobCommandFactory
protected List<CommandContextCloseListener> commandContextCloseListeners
public CommandContext(Command<?> command, ProcessEngineConfigurationImpl processEngineConfiguration)
public CommandContext(Command<?> cmd, ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
public void performOperation(AtomicOperation executionOperation, InterpretableExecution execution)
protected ProcessApplicationReference getTargetProcessApplication(InterpretableExecution execution)
protected boolean requiresContextSwitch(AtomicOperation executionOperation, ProcessApplicationReference processApplicationReference)
public void close()
protected void fireCommandContextClose()
protected void flushSessions()
protected void closeSessions()
public void exception(Throwable exception)
public <T> T getSession(Class<T> sessionClass)
public DbSqlSession getDbSqlSession()
public DeploymentManager getDeploymentManager()
public ResourceManager getResourceManager()
public ByteArrayManager getByteArrayManager()
public ProcessDefinitionManager getProcessDefinitionManager()
public ExecutionManager getExecutionManager()
public TaskManager getTaskManager()
public IdentityLinkManager getIdentityLinkManager()
public VariableInstanceManager getVariableInstanceManager()
public HistoricProcessInstanceManager getHistoricProcessInstanceManager()
public HistoricDetailManager getHistoricDetailManager()
public HistoricVariableInstanceManager getHistoricVariableInstanceManager()
public HistoricActivityInstanceManager getHistoricActivityInstanceManager()
public HistoricTaskInstanceManager getHistoricTaskInstanceManager()
public JobManager getJobManager()
public IncidentManager getIncidentManager()
public IdentityInfoManager getIdentityInfoManager()
public AttachmentManager getAttachmentManager()
public TableDataManager getTableDataManager()
public CommentManager getCommentManager()
public EventSubscriptionManager getEventSubscriptionManager()
public Map<Class<?>,SessionFactory> getSessionFactories()
public PropertyManager getPropertyManager()
public StatisticsManager getStatisticsManager()
public AuthorizationManager getAuthorizationManager()
public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()
public WritableIdentityProvider getWritableIdentityProvider()
public void registerCommandContextCloseListener(CommandContextCloseListener commandContextCloseListener)
public TransactionContext getTransactionContext()
public Command<?> getCommand()
public Throwable getException()
public FailedJobCommandFactory getFailedJobCommandFactory()
public Authentication getAuthentication()
public void runWithoutAuthentication(Runnable runnable)
public String getAuthenticatedUserId()
Copyright © 2015. All rights reserved.