org.camunda.bpm.engine.impl.interceptor
Class CommandContext

java.lang.Object
  extended by org.camunda.bpm.engine.impl.interceptor.CommandContext

public class CommandContext
extends Object

Author:
Tom Baeyens, Agim Emruli, Daniel Meyer

Field Summary
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 Summary
CommandContext(Command<?> command, ProcessEngineConfigurationImpl processEngineConfiguration)
           
CommandContext(Command<?> cmd, ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
           
 
Method Summary
 void close()
           
protected  void closeSessions()
           
 void exception(Throwable exception)
           
protected  void fireCommandContextClose()
           
protected  void flushSessions()
           
 AttachmentManager getAttachmentManager()
           
 List<String> getAuthenticatedGroupIds()
           
 String getAuthenticatedUserId()
           
 Authentication getAuthentication()
           
 AuthorizationManager getAuthorizationManager()
           
 ByteArrayManager getByteArrayManager()
           
 CaseDefinitionManager getCaseDefinitionManager()
           
 CaseExecutionManager getCaseExecutionManager()
           
 Command<?> getCommand()
           
 CommentManager getCommentManager()
           
 DbSqlSession getDbSqlSession()
           
 DeploymentManager getDeploymentManager()
           
 EventSubscriptionManager getEventSubscriptionManager()
           
 Throwable getException()
           
 ExecutionManager getExecutionManager()
           
 FailedJobCommandFactory getFailedJobCommandFactory()
           
 HistoricActivityInstanceManager getHistoricActivityInstanceManager()
           
 HistoricDetailManager getHistoricDetailManager()
           
 HistoricIncidentManager getHistoricIncidentManager()
           
 HistoricProcessInstanceManager getHistoricProcessInstanceManager()
           
 HistoricStatisticsManager getHistoricStatisticsManager()
           
 HistoricTaskInstanceManager getHistoricTaskInstanceManager()
           
 HistoricVariableInstanceManager getHistoricVariableInstanceManager()
           
 IdentityInfoManager getIdentityInfoManager()
           
 IdentityLinkManager getIdentityLinkManager()
           
 IncidentManager getIncidentManager()
           
 JobDefinitionManager getJobDefinitionManager()
           
 JobManager getJobManager()
           
 UserOperationLogManager getOperationLogManager()
           
 ProcessDefinitionManager getProcessDefinitionManager()
           
 PropertyManager getPropertyManager()
           
 ReadOnlyIdentityProvider getReadOnlyIdentityProvider()
           
 ResourceManager getResourceManager()
           
<T> T
getSession(Class<T> sessionClass)
           
 Map<Class<?>,SessionFactory> getSessionFactories()
           
 Map<Class<?>,Session> getSessions()
           
 StatisticsManager getStatisticsManager()
           
 TableDataManager getTableDataManager()
           
protected  ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)
           
 TaskManager getTaskManager()
           
 TransactionContext getTransactionContext()
           
 VariableInstanceManager getVariableInstanceManager()
           
 WritableIdentityProvider getWritableIdentityProvider()
           
 void performOperation(AtomicOperation executionOperation, ExecutionEntity execution)
           
 void registerCommandContextCloseListener(CommandContextCloseListener commandContextCloseListener)
           
protected  boolean requiresContextSwitch(AtomicOperation executionOperation, ProcessApplicationReference processApplicationReference)
           
 void runWithoutAuthentication(Runnable runnable)
           
protected  boolean shouldLogFine(Throwable exception)
           
protected  boolean shouldLogInfo(Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

protected Command<?> command

transactionContext

protected TransactionContext transactionContext

sessionFactories

protected Map<Class<?>,SessionFactory> sessionFactories

sessions

protected Map<Class<?>,Session> sessions

exception

protected Throwable exception

nextOperations

protected LinkedList<AtomicOperation> nextOperations

processEngineConfiguration

protected ProcessEngineConfigurationImpl processEngineConfiguration

failedJobCommandFactory

protected FailedJobCommandFactory failedJobCommandFactory

commandContextCloseListeners

protected List<CommandContextCloseListener> commandContextCloseListeners
Constructor Detail

CommandContext

public CommandContext(Command<?> command,
                      ProcessEngineConfigurationImpl processEngineConfiguration)

CommandContext

public CommandContext(Command<?> cmd,
                      ProcessEngineConfigurationImpl processEngineConfiguration,
                      TransactionContextFactory transactionContextFactory)
Method Detail

performOperation

public void performOperation(AtomicOperation executionOperation,
                             ExecutionEntity execution)

getTargetProcessApplication

protected ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)

requiresContextSwitch

protected boolean requiresContextSwitch(AtomicOperation executionOperation,
                                        ProcessApplicationReference processApplicationReference)

close

public void close()

shouldLogInfo

protected boolean shouldLogInfo(Throwable exception)

shouldLogFine

protected boolean shouldLogFine(Throwable exception)

fireCommandContextClose

protected void fireCommandContextClose()

flushSessions

protected void flushSessions()

closeSessions

protected void closeSessions()

exception

public void exception(Throwable exception)

getSession

public <T> T getSession(Class<T> sessionClass)

getDbSqlSession

public DbSqlSession getDbSqlSession()

getDeploymentManager

public DeploymentManager getDeploymentManager()

getResourceManager

public ResourceManager getResourceManager()

getByteArrayManager

public ByteArrayManager getByteArrayManager()

getProcessDefinitionManager

public ProcessDefinitionManager getProcessDefinitionManager()

getExecutionManager

public ExecutionManager getExecutionManager()

getTaskManager

public TaskManager getTaskManager()

getIdentityLinkManager

public IdentityLinkManager getIdentityLinkManager()

getVariableInstanceManager

public VariableInstanceManager getVariableInstanceManager()

getHistoricProcessInstanceManager

public HistoricProcessInstanceManager getHistoricProcessInstanceManager()

getHistoricDetailManager

public HistoricDetailManager getHistoricDetailManager()

getOperationLogManager

public UserOperationLogManager getOperationLogManager()

getHistoricVariableInstanceManager

public HistoricVariableInstanceManager getHistoricVariableInstanceManager()

getHistoricActivityInstanceManager

public HistoricActivityInstanceManager getHistoricActivityInstanceManager()

getHistoricTaskInstanceManager

public HistoricTaskInstanceManager getHistoricTaskInstanceManager()

getHistoricIncidentManager

public HistoricIncidentManager getHistoricIncidentManager()

getJobManager

public JobManager getJobManager()

getJobDefinitionManager

public JobDefinitionManager getJobDefinitionManager()

getIncidentManager

public IncidentManager getIncidentManager()

getIdentityInfoManager

public IdentityInfoManager getIdentityInfoManager()

getAttachmentManager

public AttachmentManager getAttachmentManager()

getTableDataManager

public TableDataManager getTableDataManager()

getCommentManager

public CommentManager getCommentManager()

getEventSubscriptionManager

public EventSubscriptionManager getEventSubscriptionManager()

getSessionFactories

public Map<Class<?>,SessionFactory> getSessionFactories()

getPropertyManager

public PropertyManager getPropertyManager()

getStatisticsManager

public StatisticsManager getStatisticsManager()

getHistoricStatisticsManager

public HistoricStatisticsManager getHistoricStatisticsManager()

getAuthorizationManager

public AuthorizationManager getAuthorizationManager()

getReadOnlyIdentityProvider

public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()

getWritableIdentityProvider

public WritableIdentityProvider getWritableIdentityProvider()

getCaseDefinitionManager

public CaseDefinitionManager getCaseDefinitionManager()

getCaseExecutionManager

public CaseExecutionManager getCaseExecutionManager()

registerCommandContextCloseListener

public void registerCommandContextCloseListener(CommandContextCloseListener commandContextCloseListener)

getTransactionContext

public TransactionContext getTransactionContext()

getCommand

public Command<?> getCommand()

getSessions

public Map<Class<?>,Session> getSessions()

getException

public Throwable getException()

getFailedJobCommandFactory

public FailedJobCommandFactory getFailedJobCommandFactory()

getAuthentication

public Authentication getAuthentication()

runWithoutAuthentication

public void runWithoutAuthentication(Runnable runnable)

getAuthenticatedUserId

public String getAuthenticatedUserId()

getAuthenticatedGroupIds

public List<String> getAuthenticatedGroupIds()


Copyright © 2014 camunda services GmbH. All Rights Reserved.