Package com.flowable.audit.engine
Class AuditEngineConfiguration
java.lang.Object
org.flowable.common.engine.impl.AbstractEngineConfiguration
com.flowable.audit.engine.AuditEngineConfiguration
- All Implemented Interfaces:
AuditEngineConfigurationApi
,SpringEngineConfiguration
,Aware
,ApplicationContextAware
,Lifecycle
,Phased
,SmartLifecycle
public class AuditEngineConfiguration
extends AbstractEngineConfiguration
implements SpringEngineConfiguration, AuditEngineConfigurationApi
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected ApplicationContext
protected AuditManagementService
protected AuditService
protected ChangeTenantIdManager
protected final AuditDataManagers
static final String
static final String
protected final AuditEntityManagers
static final String
static final String
protected boolean
protected PlatformTransactionManager
protected Integer
Fields inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
additionalEventDispatchActions, agendaOperationExecutionListeners, agendaOperationRunner, allConfigurators, alwaysLookupLatestDefinitionVersion, beans, byteArrayDataManager, byteArrayEntityManager, classLoader, clock, commandContextFactory, commandExecutor, commandInterceptors, commandInvoker, commonSchemaManager, configurators, customMybatisInterceptors, customMybatisMappers, customMybatisXMLMappers, customPostCommandInterceptors, customPostDeployers, customPreCommandInterceptors, customPreDeployers, customSessionFactories, DATABASE_TYPE_COCKROACHDB, DATABASE_TYPE_DB2, DATABASE_TYPE_H2, DATABASE_TYPE_HSQL, DATABASE_TYPE_MSSQL, DATABASE_TYPE_MYSQL, DATABASE_TYPE_ORACLE, DATABASE_TYPE_POSTGRES, databaseCatalog, databaseSchema, databaseSchemaUpdate, databaseTablePrefix, databaseType, databaseTypeMappings, databaseWildcardEscapeCharacter, dataSource, dataSourceJndiName, DB_SCHEMA_UPDATE_CREATE, DB_SCHEMA_UPDATE_CREATE_DROP, DB_SCHEMA_UPDATE_DROP_CREATE, DB_SCHEMA_UPDATE_FALSE, DB_SCHEMA_UPDATE_TRUE, dbSqlSessionFactory, DEFAULT_GENERIC_MAX_LENGTH_STRING, DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER, DEFAULT_ORACLE_MAX_LENGTH_STRING, defaultCommandConfig, defaultCommandInterceptors, defaultTenantProvider, dependentEngineMybatisTypeAliasConfigs, dependentEngineMybatisTypeHandlerConfigs, dependentEngineMyBatisXmlMappers, deployers, enableConfiguratorServiceLoader, enableEventDispatcher, enableLogSqlExecutionTime, engineConfigurations, engineLifecycleListeners, eventDispatcher, eventListeners, eventRegistryConfigurator, eventRegistryEventConsumers, fallbackToDefaultTenant, forceCloseMybatisConnectionPool, idGenerator, idmEngineConfigurator, isBulkInsertEnabled, isDbHistoryUsed, jdbcDefaultTransactionIsolationLevel, jdbcDriver, jdbcMaxActiveConnections, jdbcMaxCheckoutTime, jdbcMaxIdleConnections, jdbcMaxWaitTime, jdbcPassword, jdbcPingConnectionNotUsedFor, jdbcPingEnabled, jdbcPingQuery, jdbcUrl, jdbcUsername, lockPollRate, logger, loggingListener, maxLengthStringVariableType, maxNrOfStatementsInBulkInsert, mybatisMappingFile, NO_TENANT_ID, objectMapper, PRODUCT_NAME_CRDB, PRODUCT_NAME_POSTGRES, propertyDataManager, propertyEntityManager, schemaCommandConfig, schemaLockWaitTime, schemaManagementCmd, schemaManager, serviceConfigurations, sessionFactories, sqlSessionFactory, tableDataManager, tablePrefixIsSchema, transactionContextFactory, transactionFactory, transactionsExternallyManaged, typedEventListeners, useClassForNameClassLoading, useLockForDatabaseSchemaUpdate, usePrefixId, usingRelationalDatabase, usingSchemaMgmt, xmlEncoding
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
Fields inherited from interface org.flowable.common.spring.SpringEngineConfiguration
PHASE, PHASE_DELTA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the audit service where audit entries can be created and retrieved.Resource[]
protected void
init()
void
void
protected void
void
void
void
initMybatisTypeHandlers
(org.apache.ibatis.session.Configuration configuration) void
void
protected void
void
boolean
void
setActionEngineName
(String actionEngineName) void
setApplicationContext
(ApplicationContext applicationContext) void
setAuditManagementService
(AuditManagementService auditManagementService) void
setAuditService
(AuditService auditService) void
setChangeTenantIdManager
(ChangeTenantIdManager changeTenantIdManager) setDataSource
(DataSource dataSource) void
setDeploymentMode
(String deploymentMode) void
setDeploymentName
(String deploymentName) void
setDeploymentResources
(Resource[] deploymentResources) void
setTransactionManager
(PlatformTransactionManager transactionManager) void
setTransactionSynchronizationAdapterOrder
(Integer transactionSynchronizationAdapterOrder) void
start()
void
stop()
Methods inherited from class org.flowable.common.engine.impl.AbstractEngineConfiguration
addAgendaOperationExecutionListener, addConfigurator, addCustomPostCommandInterceptor, addCustomPreCommandInterceptor, addCustomSessionFactory, addEngineConfiguration, addEngineLifecycleListener, addEventRegistryEventConsumer, addServiceConfiguration, addSessionFactory, applyCustomMybatisCustomizations, close, configuratorsAfterInit, configuratorsBeforeInit, createDbSqlSessionFactory, defaultInitDbSqlSessionFactoryEntitySettings, getAdditionalDefaultCommandInterceptors, getAdditionalEventDispatchActions, getAgendaOperationExecutionListeners, getAgendaOperationRunner, getAllConfigurators, getBeans, getByteArrayDataManager, getByteArrayEntityManager, getClassLoader, getClock, getCommandContextFactory, getCommandExecutor, getCommandInterceptors, getCommandInvoker, getCommonSchemaManager, getConfigurators, getCustomMybatisInterceptors, getCustomMybatisMappers, getCustomMybatisXMLMappers, getCustomPostCommandInterceptors, getCustomPostDeployers, getCustomPreCommandInterceptors, getCustomPreDeployers, getCustomSessionFactories, getDatabaseCatalog, getDatabaseSchema, getDatabaseSchemaUpdate, getDatabaseTablePrefix, getDatabaseType, getDatabaseWildcardEscapeCharacter, getDataSource, getDataSourceJndiName, getDbSqlSessionFactory, getDefaultCommandConfig, getDefaultCommandInterceptors, getDefaultDatabaseTypeMappings, getDefaultTenantProvider, getDependentEngineMybatisTypeAliasConfigs, getDependentEngineMybatisTypeHandlerConfigs, getDependentEngineMyBatisXmlMappers, getDeployers, getEngineConfigurations, getEngineLifecycleListeners, getEngineSpecificEngineConfigurators, getEventDispatcher, getEventListeners, getEventRegistryConfigurator, getEventRegistryEventConsumers, getIdGenerator, getIdmEngineConfigurator, getJdbcDefaultTransactionIsolationLevel, getJdbcDriver, getJdbcMaxActiveConnections, getJdbcMaxCheckoutTime, getJdbcMaxIdleConnections, getJdbcMaxWaitTime, getJdbcPassword, getJdbcPingConnectionNotUsedFor, getJdbcPingQuery, getJdbcUrl, getJdbcUsername, getLockManager, getLockPollRate, getLoggingListener, getMaxLengthString, getMaxLengthStringVariableType, getMaxNrOfStatementsInBulkInsert, getMybatisMappingFile, getObjectMapper, getPropertyDataManager, getPropertyEntityManager, getResourceAsStream, getSchemaCommandConfig, getSchemaLockWaitTime, getSchemaManagementCmd, getSchemaManager, getServiceConfigurations, getSessionFactories, getSqlSessionFactory, getTableDataManager, getTransactionContextFactory, getTransactionFactory, getTypedEventListeners, getXmlEncoding, initAdditionalEventDispatchActions, initBeans, initClock, initCommandContextFactory, initCommandExecutor, initCommandExecutors, initCommandInterceptors, initCommandInvoker, initConfigurators, initCustomMybatisInterceptors, initCustomMybatisMappers, initDatabaseType, initDataSource, initDbSqlSessionFactory, initEngineConfigurations, initEventDispatcher, initEventListeners, initIdGenerator, initInterceptorChain, initMybatisConfiguration, initMyBatisLogSqlExecutionTimePlugin, initObjectMapper, initSchemaCommandConfig, initService, initSessionFactories, initSqlSessionFactory, initTransactionFactory, initTypedEventListeners, isAlwaysLookupLatestDefinitionVersion, isBulkInsertEnabled, isDbHistoryUsed, isEnableConfiguratorServiceLoader, isEnableEventDispatcher, isEnableLogSqlExecutionTime, isFallbackToDefaultTenant, isForceCloseMybatisConnectionPool, isJdbcPingEnabled, isLoggingSessionEnabled, isTablePrefixIsSchema, isTransactionsExternallyManaged, isUseClassForNameClassLoading, isUseLockForDatabaseSchemaUpdate, isUsePrefixId, isUsingRelationalDatabase, isUsingSchemaMgmt, parseCustomMybatisXMLMappers, parseDependentEngineMybatisXMLMappers, parseMybatisConfiguration, parseMybatisXmlMapping, pathToEngineDbProperties, setAdditionalEventDispatchActions, setAgendaOperationExecutionListeners, setAgendaOperationRunner, setAlwaysLookupLatestDefinitionVersion, setBeans, setBulkInsertEnabled, setByteArrayDataManager, setByteArrayEntityManager, setClassLoader, setClock, setCommandContextFactory, setCommandExecutor, setCommandInterceptors, setCommandInvoker, setCommonSchemaManager, setConfigurators, setCustomMybatisInterceptors, setCustomMybatisMappers, setCustomMybatisXMLMappers, setCustomPostCommandInterceptors, setCustomPostDeployers, setCustomPreCommandInterceptors, setCustomPreDeployers, setCustomSessionFactories, setDatabaseCatalog, setDatabaseSchema, setDatabaseSchemaUpdate, setDatabaseTablePrefix, setDatabaseType, setDatabaseWildcardEscapeCharacter, setDataSourceJndiName, setDbHistoryUsed, setDbSqlSessionFactory, setDefaultCommandConfig, setDefaultCommandInterceptors, setDefaultTenantProvider, setDefaultTenantValue, setDependentEngineMybatisTypeAliasConfigs, setDependentEngineMybatisTypeHandlerConfigs, setDependentEngineMyBatisXmlMappers, setDeployers, setEnableConfiguratorServiceLoader, setEnableEventDispatcher, setEnableLogSqlExecutionTime, setEngineConfigurations, setEngineLifecycleListeners, setEventDispatcher, setEventListeners, setEventRegistryConfigurator, setEventRegistryEventConsumers, setFallbackToDefaultTenant, setForceCloseMybatisConnectionPool, setIdGenerator, setIdmEngineConfigurator, setJdbcDefaultTransactionIsolationLevel, setJdbcDriver, setJdbcMaxActiveConnections, setJdbcMaxCheckoutTime, setJdbcMaxIdleConnections, setJdbcMaxWaitTime, setJdbcPassword, setJdbcPingConnectionNotUsedFor, setJdbcPingEnabled, setJdbcPingQuery, setJdbcUrl, setJdbcUsername, setLockPollRate, setLoggingListener, setMaxLengthStringVariableType, setMaxNrOfStatementsInBulkInsert, setMybatisMappingFile, setObjectMapper, setPropertyDataManager, setPropertyEntityManager, setSchemaCommandConfig, setSchemaLockWaitTime, setSchemaManagementCmd, setSchemaManager, setServiceConfigurations, setSessionFactories, setSqlSessionFactory, setTableDataManager, setTablePrefixIsSchema, setTransactionContextFactory, setTransactionFactory, setTransactionsExternallyManaged, setTypedEventListeners, setUseClassForNameClassLoading, setUseLockForDatabaseSchemaUpdate, setUsePrefixId, setUsingRelationalDatabase, setUsingSchemaMgmt, setXmlEncoding
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.spring.SpringEngineConfiguration
getBeans, getPhase, isAutoStartup, stop
-
Field Details
-
DEFAULT_MYBATIS_MAPPING_FILE
- See Also:
-
DEFAULT_ENGINE_NAME
- See Also:
-
KEY_AUDIT_ENGINE_CONFIG
- See Also:
-
LIQUIBASE_CHANGELOG_PREFIX
- See Also:
-
actionEngineName
-
auditService
-
auditManagementService
-
changeTenantIdManager
-
dataManagers
-
entityManagers
-
transactionManager
-
transactionSynchronizationAdapterOrder
-
applicationContext
-
running
protected volatile boolean running -
enginesBuild
-
-
Constructor Details
-
AuditEngineConfiguration
public AuditEngineConfiguration()
-
-
Method Details
-
getEngineCfgKey
- Specified by:
getEngineCfgKey
in classAbstractEngineConfiguration
-
getEngineScopeType
- Specified by:
getEngineScopeType
in classAbstractEngineConfiguration
-
createTransactionInterceptor
- Specified by:
createTransactionInterceptor
in classAbstractEngineConfiguration
-
initDbSqlSessionFactoryEntitySettings
protected void initDbSqlSessionFactoryEntitySettings()- Specified by:
initDbSqlSessionFactoryEntitySettings
in classAbstractEngineConfiguration
-
getMyBatisXmlConfigurationStream
- Specified by:
getMyBatisXmlConfigurationStream
in classAbstractEngineConfiguration
-
getEngineName
- Specified by:
getEngineName
in classAbstractEngineConfiguration
-
setTransactionSynchronizationAdapterOrder
public void setTransactionSynchronizationAdapterOrder(Integer transactionSynchronizationAdapterOrder) -
getDataManagers
-
getEntityManagers
-
setDataSource
- Overrides:
setDataSource
in classAbstractEngineConfiguration
-
buildAuditEngine
-
init
protected void init() -
initServices
protected void initServices() -
initChangeTenantIdManager
public void initChangeTenantIdManager() -
initTransactionContextFactory
public void initTransactionContextFactory()- Overrides:
initTransactionContextFactory
in classAbstractEngineConfiguration
-
initDefaultCommandConfig
public void initDefaultCommandConfig()- Overrides:
initDefaultCommandConfig
in classAbstractEngineConfiguration
-
initMybatisTypeHandlers
public void initMybatisTypeHandlers(org.apache.ibatis.session.Configuration configuration) - Overrides:
initMybatisTypeHandlers
in classAbstractEngineConfiguration
-
initDataManagers
public void initDataManagers()- Overrides:
initDataManagers
in classAbstractEngineConfiguration
-
initEntityManagers
public void initEntityManagers()- Overrides:
initEntityManagers
in classAbstractEngineConfiguration
-
initSchemaManager
public void initSchemaManager()- Overrides:
initSchemaManager
in classAbstractEngineConfiguration
-
initSchemaManagementCommand
public void initSchemaManagementCommand() -
getTransactionManager
- Specified by:
getTransactionManager
in interfaceSpringEngineConfiguration
-
setTransactionManager
- Specified by:
setTransactionManager
in interfaceSpringEngineConfiguration
-
getApplicationContext
- Specified by:
getApplicationContext
in interfaceSpringEngineConfiguration
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Specified by:
setApplicationContext
in interfaceSpringEngineConfiguration
-
getActionEngineName
-
setActionEngineName
-
isRunning
public boolean isRunning() -
getAuditService
Description copied from interface:AuditEngineConfigurationApi
Returns the audit service where audit entries can be created and retrieved.- Specified by:
getAuditService
in interfaceAuditEngineConfigurationApi
-
setAuditService
-
getAuditManagementService
- Specified by:
getAuditManagementService
in interfaceAuditEngineConfigurationApi
-
setAuditManagementService
-
getChangeTenantIdManager
-
setChangeTenantIdManager
-
start
public void start() -
stop
public void stop() -
getDeploymentName
- Specified by:
getDeploymentName
in interfaceSpringEngineConfiguration
-
setDeploymentName
- Specified by:
setDeploymentName
in interfaceSpringEngineConfiguration
-
getDeploymentResources
- Specified by:
getDeploymentResources
in interfaceSpringEngineConfiguration
-
setDeploymentResources
- Specified by:
setDeploymentResources
in interfaceSpringEngineConfiguration
-
getDeploymentMode
- Specified by:
getDeploymentMode
in interfaceSpringEngineConfiguration
-
setDeploymentMode
- Specified by:
setDeploymentMode
in interfaceSpringEngineConfiguration
-