use of com.evolveum.midpoint.audit.api.AuditServiceFactoryException in project midpoint by Evolveum.
the class SqaleAuditServiceFactory method init.
@Override
public synchronized void init(@NotNull Configuration configuration) throws AuditServiceFactoryException {
LOGGER.info("Initializing SQL audit service factory.");
try {
SqaleRepoContext sqlRepoContext = createSqaleRepoContext(configuration);
auditService = new SqaleAuditService(sqlRepoContext, sqlPerformanceMonitorsCollection);
initCustomColumns(configuration, sqlRepoContext);
} catch (RepositoryServiceFactoryException ex) {
throw new AuditServiceFactoryException(ex.getMessage(), ex);
}
LOGGER.info("SQL audit service factory initialization complete.");
}
use of com.evolveum.midpoint.audit.api.AuditServiceFactoryException in project midpoint by Evolveum.
the class SqlAuditServiceFactory method destroy.
@Override
public synchronized void destroy() throws AuditServiceFactoryException {
LOGGER.info("Destroying Sql audit service factory.");
try {
repositoryFactory.destroy();
} catch (RepositoryServiceFactoryException ex) {
throw new AuditServiceFactoryException(ex.getMessage(), ex);
}
LOGGER.info("Sql audit service factory destroy complete.");
}
use of com.evolveum.midpoint.audit.api.AuditServiceFactoryException in project midpoint by Evolveum.
the class SqlAuditServiceFactory method init.
@Override
public synchronized void init(@NotNull Configuration configuration) throws AuditServiceFactoryException {
LOGGER.info("Initializing Sql audit service factory.");
try {
SqlRepoContext sqlRepoContext = createSqlRepoContext(configuration);
// base helper is only used for logging/exception handling, so the default one is OK
auditService = new SqlAuditServiceImpl(defaultBaseHelper, sqlRepoContext, schemaService);
initCustomColumns(configuration, sqlRepoContext);
} catch (RepositoryServiceFactoryException ex) {
throw new AuditServiceFactoryException(ex.getMessage(), ex);
}
LOGGER.info("SQL audit service factory initialization complete.");
}
Aggregations