Class CommandContext
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.interceptor.CommandContext
 
- 
 public class CommandContext extends java.lang.Object- Author:
- Tom Baeyens, Agim Emruli, Daniel Meyer
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanauthorizationCheckEnabledprotected java.util.List<CommandContextListener>commandContextListenersprotected JobEntitycurrentJobprotected FailedJobCommandFactoryfailedJobCommandFactoryprotected java.lang.StringoperationIdprotected ProcessEngineConfigurationImplprocessEngineConfigurationprotected booleanrestrictUserOperationLogToAuthenticatedUsersprotected java.util.Map<java.lang.Class<?>,SessionFactory>sessionFactoriesprotected java.util.List<Session>sessionListprotected java.util.Map<java.lang.Class<?>,Session>sessionsprotected booleantenantCheckEnabledprotected TransactionContexttransactionContextprotected booleanuserOperationLogEnabled
 - 
Constructor SummaryConstructors Constructor Description CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
authorizationCheckEnabledprotected boolean authorizationCheckEnabled 
 - 
userOperationLogEnabledprotected boolean userOperationLogEnabled 
 - 
tenantCheckEnabledprotected boolean tenantCheckEnabled 
 - 
restrictUserOperationLogToAuthenticatedUsersprotected boolean restrictUserOperationLogToAuthenticatedUsers 
 - 
transactionContextprotected TransactionContext transactionContext 
 - 
sessionFactoriesprotected java.util.Map<java.lang.Class<?>,SessionFactory> sessionFactories 
 - 
sessionsprotected java.util.Map<java.lang.Class<?>,Session> sessions 
 - 
sessionListprotected java.util.List<Session> sessionList 
 - 
processEngineConfigurationprotected ProcessEngineConfigurationImpl processEngineConfiguration 
 - 
failedJobCommandFactoryprotected FailedJobCommandFactory failedJobCommandFactory 
 - 
currentJobprotected JobEntity currentJob 
 - 
commandContextListenersprotected java.util.List<CommandContextListener> commandContextListeners 
 - 
operationIdprotected java.lang.String operationId 
 
- 
 - 
Constructor Detail- 
CommandContextpublic CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration) 
 - 
CommandContextpublic CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory) 
 
- 
 - 
Method Detail- 
performOperationpublic void performOperation(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution) 
 - 
getProcessEngineConfigurationpublic ProcessEngineConfigurationImpl getProcessEngineConfiguration() 
 - 
getTargetProcessApplicationprotected ProcessApplicationReference getTargetProcessApplication(CaseExecutionEntity execution) 
 - 
requiresContextSwitchprotected boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference) 
 - 
closepublic void close(CommandInvocationContext commandInvocationContext) 
 - 
shouldLogInfoprotected boolean shouldLogInfo(java.lang.Throwable exception) 
 - 
shouldLogFineprotected boolean shouldLogFine(java.lang.Throwable exception) 
 - 
shouldLogCmdExceptionprotected boolean shouldLogCmdException() 
 - 
fireCommandContextCloseprotected void fireCommandContextClose() 
 - 
fireCommandFailedprotected void fireCommandFailed(java.lang.Throwable t) 
 - 
flushSessionsprotected void flushSessions() 
 - 
closeSessionsprotected void closeSessions(CommandInvocationContext commandInvocationContext) 
 - 
getSessionpublic <T> T getSession(java.lang.Class<T> sessionClass) 
 - 
getDbEntityManagerpublic DbEntityManager getDbEntityManager() 
 - 
getDbSqlSessionpublic DbSqlSession getDbSqlSession() 
 - 
getDeploymentManagerpublic DeploymentManager getDeploymentManager() 
 - 
getResourceManagerpublic ResourceManager getResourceManager() 
 - 
getByteArrayManagerpublic ByteArrayManager getByteArrayManager() 
 - 
getProcessDefinitionManagerpublic ProcessDefinitionManager getProcessDefinitionManager() 
 - 
getExecutionManagerpublic ExecutionManager getExecutionManager() 
 - 
getTaskManagerpublic TaskManager getTaskManager() 
 - 
getTaskReportManagerpublic TaskReportManager getTaskReportManager() 
 - 
getMeterLogManagerpublic MeterLogManager getMeterLogManager() 
 - 
getIdentityLinkManagerpublic IdentityLinkManager getIdentityLinkManager() 
 - 
getVariableInstanceManagerpublic VariableInstanceManager getVariableInstanceManager() 
 - 
getHistoricProcessInstanceManagerpublic HistoricProcessInstanceManager getHistoricProcessInstanceManager() 
 - 
getHistoricCaseInstanceManagerpublic HistoricCaseInstanceManager getHistoricCaseInstanceManager() 
 - 
getHistoricDetailManagerpublic HistoricDetailManager getHistoricDetailManager() 
 - 
getOperationLogManagerpublic UserOperationLogManager getOperationLogManager() 
 - 
getHistoricVariableInstanceManagerpublic HistoricVariableInstanceManager getHistoricVariableInstanceManager() 
 - 
getHistoricActivityInstanceManagerpublic HistoricActivityInstanceManager getHistoricActivityInstanceManager() 
 - 
getHistoricCaseActivityInstanceManagerpublic HistoricCaseActivityInstanceManager getHistoricCaseActivityInstanceManager() 
 - 
getHistoricTaskInstanceManagerpublic HistoricTaskInstanceManager getHistoricTaskInstanceManager() 
 - 
getHistoricIncidentManagerpublic HistoricIncidentManager getHistoricIncidentManager() 
 - 
getHistoricIdentityLinkManagerpublic HistoricIdentityLinkLogManager getHistoricIdentityLinkManager() 
 - 
getJobManagerpublic JobManager getJobManager() 
 - 
getBatchManagerpublic BatchManager getBatchManager() 
 - 
getHistoricBatchManagerpublic HistoricBatchManager getHistoricBatchManager() 
 - 
getJobDefinitionManagerpublic JobDefinitionManager getJobDefinitionManager() 
 - 
getIncidentManagerpublic IncidentManager getIncidentManager() 
 - 
getIdentityInfoManagerpublic IdentityInfoManager getIdentityInfoManager() 
 - 
getAttachmentManagerpublic AttachmentManager getAttachmentManager() 
 - 
getTableDataManagerpublic TableDataManager getTableDataManager() 
 - 
getCommentManagerpublic CommentManager getCommentManager() 
 - 
getEventSubscriptionManagerpublic EventSubscriptionManager getEventSubscriptionManager() 
 - 
getSessionFactoriespublic java.util.Map<java.lang.Class<?>,SessionFactory> getSessionFactories() 
 - 
getPropertyManagerpublic PropertyManager getPropertyManager() 
 - 
getStatisticsManagerpublic StatisticsManager getStatisticsManager() 
 - 
getHistoricStatisticsManagerpublic HistoricStatisticsManager getHistoricStatisticsManager() 
 - 
getHistoricJobLogManagerpublic HistoricJobLogManager getHistoricJobLogManager() 
 - 
getHistoricExternalTaskLogManagerpublic HistoricExternalTaskLogManager getHistoricExternalTaskLogManager() 
 - 
getHistoricReportManagerpublic ReportManager getHistoricReportManager() 
 - 
getAuthorizationManagerpublic AuthorizationManager getAuthorizationManager() 
 - 
getReadOnlyIdentityProviderpublic ReadOnlyIdentityProvider getReadOnlyIdentityProvider() 
 - 
getWritableIdentityProviderpublic WritableIdentityProvider getWritableIdentityProvider() 
 - 
getTenantManagerpublic TenantManager getTenantManager() 
 - 
getSchemaLogManagerpublic SchemaLogManager getSchemaLogManager() 
 - 
getCamundaFormDefinitionManagerpublic CamundaFormDefinitionManager getCamundaFormDefinitionManager() 
 - 
getCaseDefinitionManagerpublic CaseDefinitionManager getCaseDefinitionManager() 
 - 
getCaseExecutionManagerpublic CaseExecutionManager getCaseExecutionManager() 
 - 
getCaseSentryPartManagerpublic CaseSentryPartManager getCaseSentryPartManager() 
 - 
getDecisionDefinitionManagerpublic DecisionDefinitionManager getDecisionDefinitionManager() 
 - 
getDecisionRequirementsDefinitionManagerpublic DecisionRequirementsDefinitionManager getDecisionRequirementsDefinitionManager() 
 - 
getHistoricDecisionInstanceManagerpublic HistoricDecisionInstanceManager getHistoricDecisionInstanceManager() 
 - 
getFilterManagerpublic FilterManager getFilterManager() 
 - 
getExternalTaskManagerpublic ExternalTaskManager getExternalTaskManager() 
 - 
registerCommandContextListenerpublic void registerCommandContextListener(CommandContextListener commandContextListener) 
 - 
getTransactionContextpublic TransactionContext getTransactionContext() 
 - 
getSessionspublic java.util.Map<java.lang.Class<?>,Session> getSessions() 
 - 
getFailedJobCommandFactorypublic FailedJobCommandFactory getFailedJobCommandFactory() 
 - 
getAuthenticationpublic Authentication getAuthentication() 
 - 
runWithoutAuthorizationpublic <T> T runWithoutAuthorization(java.util.concurrent.Callable<T> runnable) 
 - 
runWithoutAuthorizationpublic <T> T runWithoutAuthorization(Command<T> command) 
 - 
runWithoutAuthorizationprotected <T> T runWithoutAuthorization(java.util.concurrent.Callable<T> runnable, CommandContext commandContext)
 - 
getAuthenticatedUserIdpublic java.lang.String getAuthenticatedUserId() 
 - 
getAuthenticatedGroupIdspublic java.util.List<java.lang.String> getAuthenticatedGroupIds() 
 - 
enableAuthorizationCheckpublic void enableAuthorizationCheck() 
 - 
disableAuthorizationCheckpublic void disableAuthorizationCheck() 
 - 
isAuthorizationCheckEnabledpublic boolean isAuthorizationCheckEnabled() 
 - 
setAuthorizationCheckEnabledpublic void setAuthorizationCheckEnabled(boolean authorizationCheckEnabled) 
 - 
enableUserOperationLogpublic void enableUserOperationLog() 
 - 
disableUserOperationLogpublic void disableUserOperationLog() 
 - 
isUserOperationLogEnabledpublic boolean isUserOperationLogEnabled() 
 - 
setLogUserOperationEnabledpublic void setLogUserOperationEnabled(boolean userOperationLogEnabled) 
 - 
enableTenantCheckpublic void enableTenantCheck() 
 - 
disableTenantCheckpublic void disableTenantCheck() 
 - 
setTenantCheckEnabledpublic void setTenantCheckEnabled(boolean tenantCheckEnabled) 
 - 
isTenantCheckEnabledpublic boolean isTenantCheckEnabled() 
 - 
getCurrentJobpublic JobEntity getCurrentJob() 
 - 
setCurrentJobpublic void setCurrentJob(JobEntity currentJob) 
 - 
isRestrictUserOperationLogToAuthenticatedUserspublic boolean isRestrictUserOperationLogToAuthenticatedUsers() 
 - 
setRestrictUserOperationLogToAuthenticatedUserspublic void setRestrictUserOperationLogToAuthenticatedUsers(boolean restrictUserOperationLogToAuthenticatedUsers) 
 - 
getOperationIdpublic java.lang.String getOperationId() 
 - 
setOperationIdpublic void setOperationId(java.lang.String operationId) 
 - 
getOptimizeManagerpublic OptimizeManager getOptimizeManager() 
 - 
executeWithOperationLogPreventedpublic <T> void executeWithOperationLogPrevented(Command<T> command) 
 
- 
 
-