Package com.evolveum.midpoint.repo.sql
Class SqlAuditServiceImpl
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.SqlBaseService
-
- com.evolveum.midpoint.repo.sql.SqlAuditServiceImpl
-
- All Implemented Interfaces:
AuditService
public class SqlAuditServiceImpl extends SqlBaseService implements AuditService
- Author:
- lazyman
-
-
Field Summary
Fields Modifier and Type Field Description static String
OP_CLEANUP_AUDIT_MAX_AGE
static String
OP_CLEANUP_AUDIT_MAX_RECORDS
static String
OP_LIST_RECORDS
static String
OP_LIST_RECORDS_ATTEMPT
static String
OP_LOAD_AUDIT_DELTA
-
Fields inherited from class com.evolveum.midpoint.repo.sql.SqlBaseService
LOCKING_DELAY_INTERVAL_BASE, LOCKING_EXP_THRESHOLD, LOCKING_MAX_RETRIES
-
Fields inherited from interface com.evolveum.midpoint.audit.api.AuditService
MAX_MESSAGE_SIZE, MAX_PROPERTY_SIZE
-
-
Constructor Summary
Constructors Constructor Description SqlAuditServiceImpl(SqlRepositoryFactory repositoryFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
audit(AuditEventRecord record, Task task)
void
cleanupAudit(CleanupPolicyType policy, OperationResult parentResult)
Clean up audit records that are older than specified.long
countObjects(String query, Map<String,Object> params)
Map<String,String>
getCustomColumn()
List<AuditEventRecord>
listRecords(String query, Map<String,Object> params, OperationResult parentResult)
void
listRecordsIterative(String query, Map<String,Object> params, AuditResultHandler handler, OperationResult parentResult)
void
reindexEntry(AuditEventRecord record)
Reindex items, e.g.boolean
supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported.-
Methods inherited from class com.evolveum.midpoint.repo.sql.SqlBaseService
getConfiguration, getMatchingRuleRegistry, getPerformanceMonitor, getPrismContext, setMatchingRuleRegistry, setPrismContext
-
-
-
-
Field Detail
-
OP_CLEANUP_AUDIT_MAX_AGE
public static final String OP_CLEANUP_AUDIT_MAX_AGE
- See Also:
- Constant Field Values
-
OP_CLEANUP_AUDIT_MAX_RECORDS
public static final String OP_CLEANUP_AUDIT_MAX_RECORDS
- See Also:
- Constant Field Values
-
OP_LIST_RECORDS
public static final String OP_LIST_RECORDS
- See Also:
- Constant Field Values
-
OP_LIST_RECORDS_ATTEMPT
public static final String OP_LIST_RECORDS_ATTEMPT
- See Also:
- Constant Field Values
-
OP_LOAD_AUDIT_DELTA
public static final String OP_LOAD_AUDIT_DELTA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SqlAuditServiceImpl
public SqlAuditServiceImpl(SqlRepositoryFactory repositoryFactory)
-
-
Method Detail
-
audit
public void audit(AuditEventRecord record, Task task)
- Specified by:
audit
in interfaceAuditService
-
listRecords
public List<AuditEventRecord> listRecords(String query, Map<String,Object> params, OperationResult parentResult)
- Specified by:
listRecords
in interfaceAuditService
-
listRecordsIterative
public void listRecordsIterative(String query, Map<String,Object> params, AuditResultHandler handler, OperationResult parentResult)
- Specified by:
listRecordsIterative
in interfaceAuditService
-
reindexEntry
public void reindexEntry(AuditEventRecord record)
Description copied from interface:AuditService
Reindex items, e.g. if new columns were created for audit table according to which the search should be possible- Specified by:
reindexEntry
in interfaceAuditService
-
cleanupAudit
public void cleanupAudit(CleanupPolicyType policy, OperationResult parentResult)
Description copied from interface:AuditService
Clean up audit records that are older than specified.- Specified by:
cleanupAudit
in interfaceAuditService
- Parameters:
policy
- Records will be deleted base on this policy.
-
countObjects
public long countObjects(String query, Map<String,Object> params)
- Specified by:
countObjects
in interfaceAuditService
-
supportsRetrieval
public boolean supportsRetrieval()
Description copied from interface:AuditService
Returns true if retrieval of objects from the audit trail is supported. This applies to listRecords, countObjects, reconstructObject and similar operations.- Specified by:
supportsRetrieval
in interfaceAuditService
-
-