Class AuditController
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.controller.AuditController
-
- All Implemented Interfaces:
ModelAuditService
@Component public class AuditController extends Object implements ModelAuditService
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description AuditController()
-
Method Summary
All Methods Instance Methods Concrete 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.int
countObjects(@Nullable ObjectQuery query, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, Task task, @NotNull OperationResult parentResult)
<O extends ObjectType>
PrismObject<O>reconstructObject(Class<O> type, String oid, String eventIdentifier, Task task, OperationResult result)
@NotNull SearchResultList<AuditEventRecordType>
searchObjects(@Nullable ObjectQuery query, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull Task task, @NotNull OperationResult parentResult)
void
searchObjectsIterative(@Nullable ObjectQuery query, @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull AuditResultHandler handler, @NotNull Task task, @NotNull OperationResult parentResult)
boolean
supportsRetrieval()
Returns true if retrieval of objects from the audit trail is supported.
-
-
-
Method Detail
-
audit
public void audit(AuditEventRecord record, Task task, OperationResult result) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
- Specified by:
audit
in interfaceModelAuditService
- Throws:
SecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
searchObjects
@NotNull public @NotNull SearchResultList<AuditEventRecordType> searchObjects(@Nullable @Nullable ObjectQuery query, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
- Specified by:
searchObjects
in interfaceModelAuditService
- Throws:
SecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
searchObjectsIterative
public void searchObjectsIterative(@Nullable @Nullable ObjectQuery query, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, @NotNull @NotNull AuditResultHandler handler, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
-
countObjects
public int countObjects(@Nullable @Nullable ObjectQuery query, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options, Task task, @NotNull @NotNull OperationResult parentResult) throws SchemaException, ExpressionEvaluationException, SecurityViolationException, CommunicationException, ConfigurationException, ObjectNotFoundException
- Specified by:
countObjects
in interfaceModelAuditService
- Throws:
SchemaException
ExpressionEvaluationException
SecurityViolationException
CommunicationException
ConfigurationException
ObjectNotFoundException
-
cleanupAudit
public void cleanupAudit(CleanupPolicyType policy, Task task, OperationResult parentResult) throws SecurityViolationException, SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException
Description copied from interface:ModelAuditService
Clean up audit records that are older than specified.- Specified by:
cleanupAudit
in interfaceModelAuditService
- Parameters:
policy
- Records will be deleted base on this policy.- Throws:
SecurityViolationException
SchemaException
ObjectNotFoundException
ExpressionEvaluationException
CommunicationException
ConfigurationException
-
supportsRetrieval
public boolean supportsRetrieval()
Description copied from interface:ModelAuditService
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 interfaceModelAuditService
-
reconstructObject
public <O extends ObjectType> PrismObject<O> reconstructObject(Class<O> type, String oid, String eventIdentifier, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException
- Specified by:
reconstructObject
in interfaceModelAuditService
- Throws:
ObjectNotFoundException
SchemaException
-
-