Interface AuditEventRepository
- All Known Implementing Classes:
InMemoryAuditEventRepository
public interface AuditEventRepository
Repository for
AuditEvent
s.- Since:
- 1.0.0
- Author:
- Dave Syer, Vedran Pavic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(AuditEvent event) Log an event.Find audit events of specified type relating to the specified principal that occurredafter
the time provided.
-
Method Details
-
add
Log an event.- Parameters:
event
- the audit event to log
-
find
Find audit events of specified type relating to the specified principal that occurredafter
the time provided.- Parameters:
principal
- the principal name to search for (ornull
if unrestricted)after
- time after which an event must have occurred (ornull
if unrestricted)type
- the event type to search for (ornull
if unrestricted)- Returns:
- audit events of specified type relating to the principal
- Since:
- 1.4.0
-