public class AuditEvent
extends java.lang.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<java.lang.String,?> |
EMPTY_PARAMS |
com.google.common.collect.ListMultimap<java.lang.String,?> |
params |
java.lang.Object |
result |
java.lang.String |
sessionId |
long |
timeAtStart |
static java.lang.String |
UNKNOWN_SESSION_ID |
AuditEvent.UUID |
uuid |
java.lang.String |
what |
long |
when |
CurrentUser |
who |
Constructor and Description |
---|
AuditEvent(java.lang.String sessionId,
CurrentUser who,
java.lang.String what,
long when,
com.google.common.collect.ListMultimap<java.lang.String,?> params,
java.lang.Object result)
Creates a new audit event with results
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String UNKNOWN_SESSION_ID
protected static final com.google.common.collect.ImmutableListMultimap<java.lang.String,?> EMPTY_PARAMS
public final java.lang.String sessionId
public final CurrentUser who
public final long when
public final java.lang.String what
public final com.google.common.collect.ListMultimap<java.lang.String,?> params
public final java.lang.Object result
public final long timeAtStart
public final long elapsed
public final AuditEvent.UUID uuid
public AuditEvent(java.lang.String sessionId, CurrentUser who, java.lang.String what, long when, com.google.common.collect.ListMultimap<java.lang.String,?> params, java.lang.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