public class InMemoryAuditEventRepository extends Object implements AuditEventRepository
AuditEventRepository
implementation.Constructor and Description |
---|
InMemoryAuditEventRepository() |
Modifier and Type | Method and 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.
|
void |
setCapacity(int capacity) |
public void setCapacity(int capacity)
capacity
- the capacity to setpublic List<AuditEvent> find(String principal, Date after)
AuditEventRepository
find
in interface AuditEventRepository
principal
- the principal name to search forafter
- timestamp of earliest result requiredpublic void add(AuditEvent event)
AuditEventRepository
add
in interface AuditEventRepository
event
- the audit event to logCopyright © 2013. All rights reserved.