Class CommandContext
java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandContext
- Author:
- Tom Baeyens, Agim Emruli, Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<CommandContextListener>protected JobEntityprotected FailedJobCommandFactoryprotected Stringprotected ProcessEngineConfigurationImplprotected booleanprotected Map<Class<?>,SessionFactory> protected booleanprotected TransactionContextprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionCommandContext(ProcessEngineConfigurationImpl processEngineConfiguration) CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(CommandInvocationContext commandInvocationContext) protected voidcloseSessions(CommandInvocationContext commandInvocationContext) voidvoidvoidvoidvoidvoid<T> voidexecuteWithOperationLogPrevented(Command<T> command) protected voidprotected voidprotected void<T> TgetSession(Class<T> sessionClass) Map<Class<?>,SessionFactory> protected ProcessApplicationReferencegetTargetProcessApplication(CaseExecutionEntity execution) booleanbooleanbooleanbooleanvoidperformOperation(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution) voidregisterCommandContextListener(CommandContextListener commandContextListener) protected booleanrequiresContextSwitch(ProcessApplicationReference processApplicationReference) <T> TrunWithoutAuthorization(Callable<T> runnable) protected <T> TrunWithoutAuthorization(Callable<T> runnable, CommandContext commandContext) <T> TrunWithoutAuthorization(Command<T> command) voidsetAuthorizationCheckEnabled(boolean authorizationCheckEnabled) voidsetCurrentJob(JobEntity currentJob) voidsetLogUserOperationEnabled(boolean userOperationLogEnabled) voidsetOperationId(String operationId) voidsetRestrictUserOperationLogToAuthenticatedUsers(boolean restrictUserOperationLogToAuthenticatedUsers) voidsetTenantCheckEnabled(boolean tenantCheckEnabled) protected booleanprotected booleanshouldLogFine(Throwable exception) protected booleanshouldLogInfo(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
-