public class AuditEvent extends Object
Modifier and Type | Field and Description |
---|---|
static int |
USER_CODES
All user generated codes must be equal to or greater than this constant
to avoid clashing with Openfire event codes.
|
Constructor and Description |
---|
AuditEvent(Session eventSession,
Date timestamp,
int eventCode,
int eventReason,
String eventData)
Create a new audit event.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Obtain the primary type of event.
|
String |
getData()
Obtain the data associated with the event.
|
int |
getReason()
Obtain the subtype of event.
|
Session |
getSession()
Obtain the session associated with the event.
|
Date |
getTimestamp()
Obtain the timestamp of when the event occured.
|
void |
setCode(int code)
Set the primary type of event.
|
void |
setData(String data)
Set the data associated with the event.
|
void |
setReason(int reason)
Set the subtype of event.
|
void |
setSession(Session session)
Set the session associated with the event.
|
void |
setTimestamp(Date time)
Set the timestamp of when the event occured.
|
public static final int USER_CODES
public AuditEvent(Session eventSession, Date timestamp, int eventCode, int eventReason, String eventData)
eventSession
- the session that triggered the event or null
if no session is associated with this event.timestamp
- the date/time the event occured.eventCode
- a code indicating the type of event that occured.eventReason
- a second code indicating more details about the event type.eventData
- arbitrary string data associated with the event or null.public int getCode()
public void setCode(int code)
code
- the code indicating the event's type.public String getData()
public void setData(String data)
data
- the data associated with the event.public int getReason()
public void setReason(int reason)
reason
- the code indicating the event's subtype.public Session getSession()
public void setSession(Session session)
session
- the session associated with the event.public Date getTimestamp()
public void setTimestamp(Date time)
time
- the time the event occured.Copyright © 2003-2008 Jive Software.