Interface AuditEventRepository

All Known Implementing Classes:
InMemoryAuditEventRepository

public interface AuditEventRepository
Repository for AuditEvents.
Since:
1.0.0
Author:
Dave Syer, Vedran Pavic
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(AuditEvent event)
    Log an event.
    find(String principal, Instant after, String type)
    Find audit events of specified type relating to the specified principal that occurred after the time provided.
  • Method Details

    • add

      void add(AuditEvent event)
      Log an event.
      Parameters:
      event - the audit event to log
    • find

      List<AuditEvent> find(String principal, Instant after, String type)
      Find audit events of specified type relating to the specified principal that occurred after the time provided.
      Parameters:
      principal - the principal name to search for (or null if unrestricted)
      after - time after which an event must have occurred (or null if unrestricted)
      type - the event type to search for (or null if unrestricted)
      Returns:
      audit events of specified type relating to the principal
      Since:
      1.4.0