Interface AuditEventRepository
- All Known Implementing Classes:
InMemoryAuditEventRepository
public interface AuditEventRepository
Repository forAuditEvent
s.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(AuditEvent event)
Log an event.List<AuditEvent>
find(String principal, Date after)
Find audit events relating to the specified principal since the time provided.List<AuditEvent>
find(String principal, Date after, String type)
Find audit events of specified type relating to the specified principal since the time provided.List<AuditEvent>
find(Date after)
Find audit events since the time provided.
Method Detail
add
void add(AuditEvent event)
Log an event.- Parameters:
event
- the audit event to log
find
List<AuditEvent> find(Date after)
Find audit events since the time provided.- Parameters:
after
- timestamp of earliest result required (ornull
if unrestricted)- Returns:
- audit events
- Since:
- 1.4.0
find
List<AuditEvent> find(String principal, Date after)
Find audit events relating to the specified principal since the time provided.- Parameters:
principal
- the principal name to search for (ornull
if unrestricted)after
- timestamp of earliest result required (ornull
if unrestricted)- Returns:
- audit events relating to the principal
find
List<AuditEvent> find(String principal, Date after, String type)
Find audit events of specified type relating to the specified principal since the time provided.- Parameters:
principal
- the principal name to search for (ornull
if unrestricted)after
- timestamp of earliest result required (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