接口 AuditEventRepository
- 所有已知实现类:
InMemoryAuditEventRepository
public interface AuditEventRepository
Repository forAuditEvent
s.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
方法详细资料
add
void add(AuditEvent event)
Log an event.- 参数:
event
- the audit event to log
find
List<AuditEvent> find(Date after)
Find audit events since the time provided.- 参数:
after
- timestamp of earliest result required (ornull
if unrestricted)- 返回:
- audit events
- 从以下版本开始:
- 1.4.0
find
List<AuditEvent> find(String principal, Date after)
Find audit events relating to the specified principal since the time provided.- 参数:
principal
- the principal name to search for (ornull
if unrestricted)after
- timestamp of earliest result required (ornull
if unrestricted)- 返回:
- 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.- 参数:
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)- 返回:
- audit events of specified type relating to the principal
- 从以下版本开始:
- 1.4.0