Package com.io7m.idstore.database.api
Interface IdDatabaseAuditQueriesType
- All Superinterfaces:
IdDatabaseQueriesType
The database queries involving the audit log.
-
Field Summary
Fields inherited from interface com.io7m.idstore.database.api.IdDatabaseQueriesType
EARLIEST -
Method Summary
Modifier and TypeMethodDescriptionlongauditCount(IdAuditSearchParameters parameters) auditEvents(IdAuditSearchParameters parameters, OptionalLong seek) Retrieve all audit events from the database matching the given parameters.voidauditPut(UUID userId, OffsetDateTime time, String type, String message) Create an audit event.
-
Method Details
-
auditEvents
List<IdAuditEvent> auditEvents(IdAuditSearchParameters parameters, OptionalLong seek) throws IdDatabaseException Retrieve all audit events from the database matching the given parameters.- Parameters:
parameters- The search parametersseek- The record to which to seek, if any- Returns:
- A series of audit events, sorted by time
- Throws:
IdDatabaseException- On errors
-
auditPut
void auditPut(UUID userId, OffsetDateTime time, String type, String message) throws IdDatabaseException Create an audit event.- Parameters:
userId- The user ID of the eventtime- The event timetype- The event typemessage- The event message- Throws:
IdDatabaseException- On errors
-
auditCount
- Parameters:
parameters- The parameters- Returns:
- The number of events matching the given parameter
- Throws:
IdDatabaseException
-