public class CommandContext extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
authorizationCheckEnabled |
protected List<CommandContextListener> |
commandContextListeners |
protected FailedJobCommandFactory |
failedJobCommandFactory |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected Map<Class<?>,SessionFactory> |
sessionFactories |
protected List<Session> |
sessionList |
protected Map<Class<?>,Session> |
sessions |
protected TransactionContext |
transactionContext |
Constructor and Description |
---|
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration) |
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration,
TransactionContextFactory transactionContextFactory) |
protected boolean authorizationCheckEnabled
protected TransactionContext transactionContext
protected Map<Class<?>,SessionFactory> sessionFactories
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected FailedJobCommandFactory failedJobCommandFactory
protected List<CommandContextListener> commandContextListeners
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
public void performOperation(AtomicOperation executionOperation, ExecutionEntity execution)
public void performOperation(CmmnAtomicOperation executionOperation, CaseExecutionEntity execution)
protected ProcessApplicationReference getTargetProcessApplication(ExecutionEntity execution)
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 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 JobManager getJobManager()
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 AuthorizationManager getAuthorizationManager()
public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()
public WritableIdentityProvider getWritableIdentityProvider()
public CaseDefinitionManager getCaseDefinitionManager()
public CaseExecutionManager getCaseExecutionManager()
public CaseSentryPartManager getCaseSentryPartManager()
public FilterManager getFilterManager()
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)
Copyright © 2018. All rights reserved.