Package com.evolveum.midpoint.model.api
Interface ModelAuditService
-
- All Known Implementing Classes:
AuditController
public interface ModelAuditService
- Author:
- semancik
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
audit(AuditEventRecord record, Task task, OperationResult result)
void
cleanupAudit(CleanupPolicyType policy, Task task, OperationResult parentResult)
Clean up audit records that are older than specified.long
countObjects(String query, Map<String,Object> params, Task task, OperationResult parentResult)
List<AuditEventRecord>
listRecords(String query, Map<String,Object> params, Task task, OperationResult parentResult)
<O extends ObjectType>
PrismObject<O>reconstructObject(Class<O> type, String oid, String eventIdentifier, Task task, OperationResult result)
boolean
supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported.
-
-
-
Method Detail
-
reconstructObject
<O extends ObjectType> PrismObject<O> reconstructObject(Class<O> type, String oid, String eventIdentifier, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
-
audit
void audit(AuditEventRecord record, Task task, OperationResult result) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
-
cleanupAudit
void cleanupAudit(CleanupPolicyType policy, Task task, OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
Clean up audit records that are older than specified.- Parameters:
policy
- Records will be deleted base on this policy.- Throws:
SecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
listRecords
List<AuditEventRecord> listRecords(String query, Map<String,Object> params, Task task, OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
- Throws:
UnsupportedOperationException
- if object retrieval is not supportedSecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
countObjects
long countObjects(String query, Map<String,Object> params, Task task, OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
- Throws:
UnsupportedOperationException
- if object retrieval is not supportedSecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
supportsRetrieval
boolean supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported. This applies to listRecords, countObjects, reconstructObject and similar operations.
-
-