Package com.evolveum.midpoint.audit.api
Interface AuditService
-
public interface AuditService
- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_MESSAGE_SIZE
static int
MAX_PROPERTY_SIZE
-
Method Summary
All Methods Instance Methods Abstract 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)
List<AuditEventRecord>
listRecords(String query, Map<String,Object> params, OperationResult result)
void
listRecordsIterative(String query, Map<String,Object> params, AuditResultHandler auditResultHandler, OperationResult result)
void
reindexEntry(AuditEventRecord record)
Reindex items, e.g.boolean
supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported.
-
-
-
Field Detail
-
MAX_MESSAGE_SIZE
static final int MAX_MESSAGE_SIZE
- See Also:
- Constant Field Values
-
MAX_PROPERTY_SIZE
static final int MAX_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
audit
void audit(AuditEventRecord record, Task task)
-
cleanupAudit
void cleanupAudit(CleanupPolicyType policy, OperationResult parentResult)
Clean up audit records that are older than specified.- Parameters:
policy
- Records will be deleted base on this policy.
-
listRecords
List<AuditEventRecord> listRecords(String query, Map<String,Object> params, OperationResult result)
- Throws:
UnsupportedOperationException
- if object retrieval is not supported
-
listRecordsIterative
void listRecordsIterative(String query, Map<String,Object> params, AuditResultHandler auditResultHandler, OperationResult result)
-
reindexEntry
void reindexEntry(AuditEventRecord record)
Reindex items, e.g. if new columns were created for audit table according to which the search should be possible
-
countObjects
long countObjects(String query, Map<String,Object> params)
- Throws:
UnsupportedOperationException
- if object retrieval is not supported
-
supportsRetrieval
boolean supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported. This applies to listRecords, countObjects, reconstructObject and similar operations.
-
-