public class AuditEvent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuditEvent.UUID |
Modifier and Type | Field and Description |
---|---|
long |
elapsed |
protected static com.google.common.collect.ImmutableListMultimap<String,?> |
EMPTY_PARAMS |
com.google.common.collect.ListMultimap<String,?> |
params |
Object |
result |
String |
sessionId |
long |
timeAtStart |
static String |
UNKNOWN_SESSION_ID |
AuditEvent.UUID |
uuid |
String |
what |
long |
when |
CurrentUser |
who |
Constructor and Description |
---|
AuditEvent(String sessionId,
CurrentUser who,
String what,
long when,
com.google.common.collect.ListMultimap<String,?> params,
Object result)
Creates a new audit event with results
|
public static final String UNKNOWN_SESSION_ID
protected static final com.google.common.collect.ImmutableListMultimap<String,?> EMPTY_PARAMS
public final String sessionId
public final CurrentUser who
public final long when
public final String what
public final com.google.common.collect.ListMultimap<String,?> params
public final Object result
public final long timeAtStart
public final long elapsed
public final AuditEvent.UUID uuid
public AuditEvent(String sessionId, CurrentUser who, String what, long when, com.google.common.collect.ListMultimap<String,?> params, Object result)
sessionId
- session id the event belongs towho
- principal that has generated the eventwhat
- object of the eventwhen
- time-stamp of when the event startedparams
- parameters of the eventresult
- result of the event