Package com.evolveum.midpoint.model.api
Interface ModelAuditService
-
public interface ModelAuditService
- Author:
- semancik
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
audit(com.evolveum.midpoint.audit.api.AuditEventRecord record, com.evolveum.midpoint.task.api.Task task, OperationResult result)
void
cleanupAudit(CleanupPolicyType policy, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Clean up audit records that are older than specified.long
countObjects(String query, Map<String,Object> params, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
List<com.evolveum.midpoint.audit.api.AuditEventRecord>
listRecords(String query, Map<String,Object> params, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult)
Deprecated.<O extends ObjectType>
PrismObject<O>reconstructObject(Class<O> type, String oid, String eventIdentifier, com.evolveum.midpoint.task.api.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, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
-
audit
void audit(com.evolveum.midpoint.audit.api.AuditEventRecord record, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
-
cleanupAudit
void cleanupAudit(CleanupPolicyType policy, com.evolveum.midpoint.task.api.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
@Deprecated List<com.evolveum.midpoint.audit.api.AuditEventRecord> listRecords(String query, Map<String,Object> params, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
Deprecated.- Throws:
UnsupportedOperationException
- if object retrieval is not supportedSecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
countObjects
long countObjects(String query, Map<String,Object> params, com.evolveum.midpoint.task.api.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.
-
-