public class CommandContext extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
authorizationCheckEnabled |
protected List<CommandContextListener> |
commandContextListeners |
protected JobEntity |
currentJob |
protected FailedJobCommandFactory |
failedJobCommandFactory |
protected String |
operationId |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected boolean |
restrictUserOperationLogToAuthenticatedUsers |
protected Map<Class<?>,SessionFactory> |
sessionFactories |
protected List<Session> |
sessionList |
protected Map<Class<?>,Session> |
sessions |
protected boolean |
tenantCheckEnabled |
protected TransactionContext |
transactionContext |
protected boolean |
userOperationLogEnabled |
Constructor and Description |
---|
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration) |
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration,
TransactionContextFactory transactionContextFactory) |
protected boolean authorizationCheckEnabled
protected boolean userOperationLogEnabled
protected boolean tenantCheckEnabled
protected boolean restrictUserOperationLogToAuthenticatedUsers
protected TransactionContext transactionContext
protected Map<Class<?>,SessionFactory> sessionFactories
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected FailedJobCommandFactory failedJobCommandFactory
protected JobEntity currentJob
protected List<CommandContextListener> commandContextListeners
protected String operationId
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
public void performOperation(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution)
public ProcessEngineConfigurationImpl getProcessEngineConfiguration()
protected ProcessApplicationReference getTargetProcessApplication(CaseExecutionEntity execution)
protected boolean requiresContextSwitch(ProcessApplicationReference processApplicationReference)
public void close(CommandInvocationContext commandInvocationContext)
protected boolean shouldLogInfo(Throwable exception)
protected boolean shouldLogFine(Throwable exception)
protected void fireCommandContextClose()
protected void fireCommandFailed(Throwable t)
protected void flushSessions()
protected void closeSessions(CommandInvocationContext commandInvocationContext)
public <T> T getSession(Class<T> sessionClass)
public DbEntityManager getDbEntityManager()
public DbSqlSession getDbSqlSession()
public DeploymentManager getDeploymentManager()
public ResourceManager getResourceManager()
public ByteArrayManager getByteArrayManager()
public ProcessDefinitionManager getProcessDefinitionManager()
public ExecutionManager getExecutionManager()
public TaskManager getTaskManager()
public TaskReportManager getTaskReportManager()
public MeterLogManager getMeterLogManager()
public IdentityLinkManager getIdentityLinkManager()
public VariableInstanceManager getVariableInstanceManager()
public HistoricProcessInstanceManager getHistoricProcessInstanceManager()
public HistoricCaseInstanceManager getHistoricCaseInstanceManager()
public HistoricDetailManager getHistoricDetailManager()
public UserOperationLogManager getOperationLogManager()
public HistoricVariableInstanceManager getHistoricVariableInstanceManager()
public HistoricActivityInstanceManager getHistoricActivityInstanceManager()
public HistoricCaseActivityInstanceManager getHistoricCaseActivityInstanceManager()
public HistoricTaskInstanceManager getHistoricTaskInstanceManager()
public HistoricIncidentManager getHistoricIncidentManager()
public HistoricIdentityLinkLogManager getHistoricIdentityLinkManager()
public JobManager getJobManager()
public BatchManager getBatchManager()
public HistoricBatchManager getHistoricBatchManager()
public JobDefinitionManager getJobDefinitionManager()
public IncidentManager getIncidentManager()
public IdentityInfoManager getIdentityInfoManager()
public AttachmentManager getAttachmentManager()
public TableDataManager getTableDataManager()
public CommentManager getCommentManager()
public EventSubscriptionManager getEventSubscriptionManager()
public Map<Class<?>,SessionFactory> getSessionFactories()
public PropertyManager getPropertyManager()
public StatisticsManager getStatisticsManager()
public HistoricStatisticsManager getHistoricStatisticsManager()
public HistoricJobLogManager getHistoricJobLogManager()
public HistoricExternalTaskLogManager getHistoricExternalTaskLogManager()
public ReportManager getHistoricReportManager()
public AuthorizationManager getAuthorizationManager()
public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()
public WritableIdentityProvider getWritableIdentityProvider()
public TenantManager getTenantManager()
public CaseDefinitionManager getCaseDefinitionManager()
public CaseExecutionManager getCaseExecutionManager()
public CaseSentryPartManager getCaseSentryPartManager()
public DecisionDefinitionManager getDecisionDefinitionManager()
public DecisionRequirementsDefinitionManager getDecisionRequirementsDefinitionManager()
public HistoricDecisionInstanceManager getHistoricDecisionInstanceManager()
public FilterManager getFilterManager()
public ExternalTaskManager getExternalTaskManager()
public void registerCommandContextListener(CommandContextListener commandContextListener)
public TransactionContext getTransactionContext()
public FailedJobCommandFactory getFailedJobCommandFactory()
public Authentication getAuthentication()
public <T> T runWithoutAuthorization(Callable<T> runnable)
public String getAuthenticatedUserId()
public void enableAuthorizationCheck()
public void disableAuthorizationCheck()
public boolean isAuthorizationCheckEnabled()
public void setAuthorizationCheckEnabled(boolean authorizationCheckEnabled)
public void enableUserOperationLog()
public void disableUserOperationLog()
public boolean isUserOperationLogEnabled()
public void setLogUserOperationEnabled(boolean userOperationLogEnabled)
public void enableTenantCheck()
public void disableTenantCheck()
public void setTenantCheckEnabled(boolean tenantCheckEnabled)
public boolean isTenantCheckEnabled()
public JobEntity getCurrentJob()
public void setCurrentJob(JobEntity currentJob)
public boolean isRestrictUserOperationLogToAuthenticatedUsers()
public void setRestrictUserOperationLogToAuthenticatedUsers(boolean restrictUserOperationLogToAuthenticatedUsers)
public String getOperationId()
public void setOperationId(String operationId)
Copyright © 2017. All rights reserved.