Search in sources :

Example 1 with AuditServiceFactoryException

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.");
}
Also used : AuditServiceFactoryException(com.evolveum.midpoint.audit.api.AuditServiceFactoryException) SqaleRepoContext(com.evolveum.midpoint.repo.sqale.SqaleRepoContext) RepositoryServiceFactoryException(com.evolveum.midpoint.repo.api.RepositoryServiceFactoryException)

Example 2 with AuditServiceFactoryException

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.");
}
Also used : AuditServiceFactoryException(com.evolveum.midpoint.audit.api.AuditServiceFactoryException) RepositoryServiceFactoryException(com.evolveum.midpoint.repo.api.RepositoryServiceFactoryException)

Example 3 with AuditServiceFactoryException

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.");
}
Also used : AuditServiceFactoryException(com.evolveum.midpoint.audit.api.AuditServiceFactoryException) RepositoryServiceFactoryException(com.evolveum.midpoint.repo.api.RepositoryServiceFactoryException)

Aggregations

AuditServiceFactoryException (com.evolveum.midpoint.audit.api.AuditServiceFactoryException)3 RepositoryServiceFactoryException (com.evolveum.midpoint.repo.api.RepositoryServiceFactoryException)3 SqaleRepoContext (com.evolveum.midpoint.repo.sqale.SqaleRepoContext)1