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  boolean authorizationCheckEnabled
           
protected  BpmnStackTrace bpmnStackTrace
           
protected  List<CommandContextListener> commandContextListeners
           
protected  FailedJobCommandFactory failedJobCommandFactory
           
protected  boolean isExecuting
           
protected  ProcessEngineConfigurationImpl processEngineConfiguration
           
protected  List<AtomicOperationInvocation> queuedInvocations
           
protected  Map<Class<?>,SessionFactory> sessionFactories
           
protected  List<Session> sessionList
           
protected  Map<Class<?>,Session> sessions
           
protected  TransactionContext transactionContext
           
protected  boolean userOperationLogEnabled
           
 
Constructor Summary
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)
           
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
           
 
Method Summary
 void close(CommandInvocationContext commandInvocationContext)
           
protected  void closeSessions(CommandInvocationContext commandInvocationContext)
           
 void disableAuthorizationCheck()
           
 void disableUserOperationLog()
           
 void enableAuthorizationCheck()
           
 void enableUserOperationLog()
           
protected  void fireCommandContextClose()
           
protected  void fireCommandFailed(Throwable t)
           
protected  void flushSessions()
           
 AttachmentManager getAttachmentManager()
           
 List<String> getAuthenticatedGroupIds()
           
 String getAuthenticatedUserId()
           
 Authentication getAuthentication()
           
 AuthorizationManager getAuthorizationManager()
           
 BatchManager getBatchManager()
           
 ByteArrayManager getByteArrayManager()
           
 CaseDefinitionManager getCaseDefinitionManager()
           
 CaseExecutionManager getCaseExecutionManager()
           
 CaseSentryPartManager getCaseSentryPartManager()
           
 CommentManager getCommentManager()
           
 DbEntityManager getDbEntityManager()
           
 DbSqlSession getDbSqlSession()
           
 DecisionDefinitionManager getDecisionDefinitionManager()
           
 DeploymentManager getDeploymentManager()
           
 EventSubscriptionManager getEventSubscriptionManager()
           
 ExecutionManager getExecutionManager()
           
 ExternalTaskManager getExternalTaskManager()
           
 FailedJobCommandFactory getFailedJobCommandFactory()
           
 FilterManager getFilterManager()
           
 HistoricActivityInstanceManager getHistoricActivityInstanceManager()
           
 HistoricBatchManager getHistoricBatchManager()
           
 HistoricCaseActivityInstanceManager getHistoricCaseActivityInstanceManager()
           
 HistoricCaseInstanceManager getHistoricCaseInstanceManager()
           
 HistoricDecisionInstanceManager getHistoricDecisionInstanceManager()
           
 HistoricDetailManager getHistoricDetailManager()
           
 HistoricIdentityLinkLogManager getHistoricIdentityLinkManager()
           
 HistoricIncidentManager getHistoricIncidentManager()
           
 HistoricJobLogManager getHistoricJobLogManager()
           
 HistoricProcessInstanceManager getHistoricProcessInstanceManager()
           
 ReportManager getHistoricReportManager()
           
 HistoricStatisticsManager getHistoricStatisticsManager()
           
 HistoricTaskInstanceManager getHistoricTaskInstanceManager()
           
 HistoricVariableInstanceManager getHistoricVariableInstanceManager()
           
 IdentityInfoManager getIdentityInfoManager()
           
 IdentityLinkManager getIdentityLinkManager()
           
 IncidentManager getIncidentManager()
           
 JobDefinitionManager getJobDefinitionManager()
           
 JobManager getJobManager()
           
 MeterLogManager getMeterLogManager()
           
 UserOperationLogManager getOperationLogManager()
           
 ProcessDefinitionManager getProcessDefinitionManager()
           
 ProcessEngineConfigurationImpl getProcessEngineConfiguration()
           
 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(CaseExecutionEntity execution)
           
protected  ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)
           
 TaskManager getTaskManager()
           
 TenantManager getTenantManager()
           
 TransactionContext getTransactionContext()
           
 VariableInstanceManager getVariableInstanceManager()
           
 WritableIdentityProvider getWritableIdentityProvider()
           
protected  void invokeNext()
           
 boolean isAuthorizationCheckEnabled()
           
 boolean isUserOperationLogEnabled()
           
protected  void performNext()
           
 void performOperation(AtomicOperation executionOperation, ExecutionEntity execution)
           
 void performOperation(AtomicOperation executionOperation, ExecutionEntity execution, boolean performAsync)
           
 void performOperation(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution)
           
 void performOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution)
           
 void registerCommandContextListener(CommandContextListener commandContextListener)
           
protected  boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference)
           
<T> T
runWithoutAuthorization(Callable<T> runnable)
           
 void setAuthorizationCheckEnabled(boolean authorizationCheckEnabled)
           
 void setLogUserOperationEnabled(boolean userOperationLogEnabled)
           
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

authorizationCheckEnabled

protected boolean authorizationCheckEnabled

userOperationLogEnabled

protected boolean userOperationLogEnabled

transactionContext

protected TransactionContext transactionContext

sessionFactories

protected Map<Class<?>,SessionFactory> sessionFactories

sessions

protected Map<Class<?>,Session> sessions

sessionList

protected List<Session> sessionList

processEngineConfiguration

protected ProcessEngineConfigurationImpl processEngineConfiguration

failedJobCommandFactory

protected FailedJobCommandFactory failedJobCommandFactory

queuedInvocations

protected List<AtomicOperationInvocation> queuedInvocations

bpmnStackTrace

protected BpmnStackTrace bpmnStackTrace

isExecuting

protected boolean isExecuting

commandContextListeners

protected List<CommandContextListener> commandContextListeners
Constructor Detail

CommandContext

public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)

CommandContext

public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration,
                      TransactionContextFactory transactionContextFactory)
Method Detail

performOperation

public void performOperation(AtomicOperation executionOperation,
                             ExecutionEntity execution)

performOperationAsync

public void performOperationAsync(AtomicOperation executionOperation,
                                  ExecutionEntity execution)

performOperation

public void performOperation(AtomicOperation executionOperation,
                             ExecutionEntity execution,
                             boolean performAsync)

performNext

protected void performNext()

invokeNext

protected void invokeNext()

performOperation

public void performOperation(CmmnAtomicOperation executionOperation,
                             CaseExecutionEntity execution)

getProcessEngineConfiguration

public ProcessEngineConfigurationImpl getProcessEngineConfiguration()

getTargetProcessApplication

protected ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)

getTargetProcessApplication

protected ProcessApplicationReference getTargetProcessApplication(CaseExecutionEntity execution)

requiresContextSwitch

protected boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference)

close

public void close(CommandInvocationContext commandInvocationContext)

shouldLogInfo

protected boolean shouldLogInfo(Throwable exception)

shouldLogFine

protected boolean shouldLogFine(Throwable exception)

fireCommandContextClose

protected void fireCommandContextClose()

fireCommandFailed

protected void fireCommandFailed(Throwable t)

flushSessions

protected void flushSessions()

closeSessions

protected void closeSessions(CommandInvocationContext commandInvocationContext)

getSession

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

getDbEntityManager

public DbEntityManager getDbEntityManager()

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()

getMeterLogManager

public MeterLogManager getMeterLogManager()

getIdentityLinkManager

public IdentityLinkManager getIdentityLinkManager()

getVariableInstanceManager

public VariableInstanceManager getVariableInstanceManager()

getHistoricProcessInstanceManager

public HistoricProcessInstanceManager getHistoricProcessInstanceManager()

getHistoricCaseInstanceManager

public HistoricCaseInstanceManager getHistoricCaseInstanceManager()

getHistoricDetailManager

public HistoricDetailManager getHistoricDetailManager()

getOperationLogManager

public UserOperationLogManager getOperationLogManager()

getHistoricVariableInstanceManager

public HistoricVariableInstanceManager getHistoricVariableInstanceManager()

getHistoricActivityInstanceManager

public HistoricActivityInstanceManager getHistoricActivityInstanceManager()

getHistoricCaseActivityInstanceManager

public HistoricCaseActivityInstanceManager getHistoricCaseActivityInstanceManager()

getHistoricTaskInstanceManager

public HistoricTaskInstanceManager getHistoricTaskInstanceManager()

getHistoricIncidentManager

public HistoricIncidentManager getHistoricIncidentManager()

getHistoricIdentityLinkManager

public HistoricIdentityLinkLogManager getHistoricIdentityLinkManager()

getJobManager

public JobManager getJobManager()

getBatchManager

public BatchManager getBatchManager()

getHistoricBatchManager

public HistoricBatchManager getHistoricBatchManager()

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()

getHistoricJobLogManager

public HistoricJobLogManager getHistoricJobLogManager()

getHistoricReportManager

public ReportManager getHistoricReportManager()

getAuthorizationManager

public AuthorizationManager getAuthorizationManager()

getReadOnlyIdentityProvider

public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()

getWritableIdentityProvider

public WritableIdentityProvider getWritableIdentityProvider()

getTenantManager

public TenantManager getTenantManager()

getCaseDefinitionManager

public CaseDefinitionManager getCaseDefinitionManager()

getCaseExecutionManager

public CaseExecutionManager getCaseExecutionManager()

getCaseSentryPartManager

public CaseSentryPartManager getCaseSentryPartManager()

getDecisionDefinitionManager

public DecisionDefinitionManager getDecisionDefinitionManager()

getHistoricDecisionInstanceManager

public HistoricDecisionInstanceManager getHistoricDecisionInstanceManager()

getFilterManager

public FilterManager getFilterManager()

getExternalTaskManager

public ExternalTaskManager getExternalTaskManager()

registerCommandContextListener

public void registerCommandContextListener(CommandContextListener commandContextListener)

getTransactionContext

public TransactionContext getTransactionContext()

getSessions

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

getFailedJobCommandFactory

public FailedJobCommandFactory getFailedJobCommandFactory()

getAuthentication

public Authentication getAuthentication()

runWithoutAuthorization

public <T> T runWithoutAuthorization(Callable<T> runnable)

getAuthenticatedUserId

public String getAuthenticatedUserId()

getAuthenticatedGroupIds

public List<String> getAuthenticatedGroupIds()

enableAuthorizationCheck

public void enableAuthorizationCheck()

disableAuthorizationCheck

public void disableAuthorizationCheck()

isAuthorizationCheckEnabled

public boolean isAuthorizationCheckEnabled()

setAuthorizationCheckEnabled

public void setAuthorizationCheckEnabled(boolean authorizationCheckEnabled)

enableUserOperationLog

public void enableUserOperationLog()

disableUserOperationLog

public void disableUserOperationLog()

isUserOperationLogEnabled

public boolean isUserOperationLogEnabled()

setLogUserOperationEnabled

public void setLogUserOperationEnabled(boolean userOperationLogEnabled)


Copyright © 2016 camunda services GmbH. All rights reserved.