Package com.io7m.idstore.database.api

# Interface IdDatabaseAuditQueriesType

All Superinterfaces:
  `IdDatabaseQueriesType`

public non-sealed interface IdDatabaseAuditQueriesType extends IdDatabaseQueriesType
The database queries involving the audit log.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IdDatabaseAuditEventsSearchType`
  `auditEventsSearch(IdAuditSearchParameters parameters)`
  Retrieve all audit events from the database matching the given parameters.
  `void`
  `auditPut(UUID userId, OffsetDateTime time, String type, String message)`
  Create an audit event.

- ## Method Details

  - ### auditEventsSearch

    IdDatabaseAuditEventsSearchType auditEventsSearch(IdAuditSearchParameters parameters) throws IdDatabaseException
    Retrieve all audit events from the database matching the given parameters.
    Parameters:
      `parameters` - The search parameters
    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 event
      `time` - The event time
      `type` - The event type
      `message` - The event message
    Throws:
      `IdDatabaseException` - On errors