Class CommandContext
java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandContext
- Author:
- Tom Baeyens, Agim Emruli, Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected List<CommandContextListener>
protected JobEntity
protected FailedJobCommandFactory
protected String
protected ProcessEngineConfigurationImpl
protected boolean
protected Map<Class<?>,
SessionFactory> protected boolean
protected TransactionContext
protected boolean
-
Constructor Summary
ConstructorDescriptionCommandContext
(ProcessEngineConfigurationImpl processEngineConfiguration) CommandContext
(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(CommandInvocationContext commandInvocationContext) protected void
closeSessions
(CommandInvocationContext commandInvocationContext) void
void
void
void
void
void
<T> void
executeWithOperationLogPrevented
(Command<T> command) protected void
protected void
protected void
<T> T
getSession
(Class<T> sessionClass) Map<Class<?>,
SessionFactory> protected ProcessApplicationReference
getTargetProcessApplication
(CaseExecutionEntity execution) boolean
boolean
boolean
boolean
void
performOperation
(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution) void
registerCommandContextListener
(CommandContextListener commandContextListener) protected boolean
requiresContextSwitch
(ProcessApplicationReference processApplicationReference) <T> T
runWithoutAuthorization
(Callable<T> runnable) protected <T> T
runWithoutAuthorization
(Callable<T> runnable, CommandContext commandContext) <T> T
runWithoutAuthorization
(Command<T> command) void
setAuthorizationCheckEnabled
(boolean authorizationCheckEnabled) void
setCurrentJob
(JobEntity currentJob) void
setLogUserOperationEnabled
(boolean userOperationLogEnabled) void
setOperationId
(String operationId) void
setRestrictUserOperationLogToAuthenticatedUsers
(boolean restrictUserOperationLogToAuthenticatedUsers) void
setTenantCheckEnabled
(boolean tenantCheckEnabled) protected boolean
protected boolean
shouldLogFine
(Throwable exception) protected boolean
shouldLogInfo
(Throwable exception)
-
Field Details
-
authorizationCheckEnabled
protected boolean authorizationCheckEnabled -
userOperationLogEnabled
protected boolean userOperationLogEnabled -
tenantCheckEnabled
protected boolean tenantCheckEnabled -
restrictUserOperationLogToAuthenticatedUsers
protected boolean restrictUserOperationLogToAuthenticatedUsers -
transactionContext
-
sessionFactories
-
sessions
-
sessionList
-
processEngineConfiguration
-
failedJobCommandFactory
-
currentJob
-
commandContextListeners
-
operationId
-
-
Constructor Details
-
CommandContext
-
CommandContext
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
-
-
Method Details
-
performOperation
-
getProcessEngineConfiguration
-
getTargetProcessApplication
-
requiresContextSwitch
-
close
-
shouldLogInfo
-
shouldLogFine
-
shouldLogCmdException
protected boolean shouldLogCmdException() -
fireCommandContextClose
protected void fireCommandContextClose() -
fireCommandFailed
-
flushSessions
protected void flushSessions() -
closeSessions
-
getSession
-
getDbEntityManager
-
getDbSqlSession
-
getDeploymentManager
-
getResourceManager
-
getByteArrayManager
-
getProcessDefinitionManager
-
getExecutionManager
-
getTaskManager
-
getTaskReportManager
-
getMeterLogManager
-
getIdentityLinkManager
-
getVariableInstanceManager
-
getHistoricProcessInstanceManager
-
getHistoricCaseInstanceManager
-
getHistoricDetailManager
-
getOperationLogManager
-
getHistoricVariableInstanceManager
-
getHistoricActivityInstanceManager
-
getHistoricCaseActivityInstanceManager
-
getHistoricTaskInstanceManager
-
getHistoricIncidentManager
-
getHistoricIdentityLinkManager
-
getJobManager
-
getBatchManager
-
getHistoricBatchManager
-
getJobDefinitionManager
-
getIncidentManager
-
getIdentityInfoManager
-
getAttachmentManager
-
getTableDataManager
-
getCommentManager
-
getEventSubscriptionManager
-
getSessionFactories
-
getPropertyManager
-
getStatisticsManager
-
getHistoricStatisticsManager
-
getHistoricJobLogManager
-
getHistoricExternalTaskLogManager
-
getHistoricReportManager
-
getAuthorizationManager
-
getReadOnlyIdentityProvider
-
getWritableIdentityProvider
-
getTenantManager
-
getSchemaLogManager
-
getCamundaFormDefinitionManager
-
getCaseDefinitionManager
-
getCaseExecutionManager
-
getCaseSentryPartManager
-
getDecisionDefinitionManager
-
getDecisionRequirementsDefinitionManager
-
getHistoricDecisionInstanceManager
-
getFilterManager
-
getExternalTaskManager
-
registerCommandContextListener
-
getTransactionContext
-
getSessions
-
getFailedJobCommandFactory
-
getAuthentication
-
runWithoutAuthorization
-
runWithoutAuthorization
-
runWithoutAuthorization
-
getAuthenticatedUserId
-
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) -
enableTenantCheck
public void enableTenantCheck() -
disableTenantCheck
public void disableTenantCheck() -
setTenantCheckEnabled
public void setTenantCheckEnabled(boolean tenantCheckEnabled) -
isTenantCheckEnabled
public boolean isTenantCheckEnabled() -
getCurrentJob
-
setCurrentJob
-
isRestrictUserOperationLogToAuthenticatedUsers
public boolean isRestrictUserOperationLogToAuthenticatedUsers() -
setRestrictUserOperationLogToAuthenticatedUsers
public void setRestrictUserOperationLogToAuthenticatedUsers(boolean restrictUserOperationLogToAuthenticatedUsers) -
getOperationId
-
setOperationId
-
getOptimizeManager
-
executeWithOperationLogPrevented
-