|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
org.jcoderz.commons.LogEvent
org.jcoderz.commons.AuditLogEvent
public class AuditLogEvent
This is the base class for audit log events.
The base class of this AuditLogEvent is Throwable but instances of this class are not expected to be thrown.
Most functionality is implemented and documented by the
LoggableImpl which is used a member of
objects of this class.
org.jcoderz.commons,
Serialized Form| Field Summary | |
|---|---|
static String |
AUDIT_PRINCIPAL_PARAMETER_NAME
Key used for the audit principal parameter object. |
| Constructor Summary | |
|---|---|
AuditLogEvent(LogMessageInfo messageInfo,
AuditPrincipal principal)
Constructor to create a AuditLogEvent instance with the minimum mandatory parameters. |
|
AuditLogEvent(LogMessageInfo messageInfo,
AuditPrincipal principal,
Throwable cause)
Constructor to create a AuditLogEvent instance with a given root cause. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
AuditPrincipal |
getAuditPrincipal()
Returns the audit principal of this audit log event. |
int |
hashCode()
Override hashCode. |
| Methods inherited from class org.jcoderz.commons.LogEvent |
|---|
addParameter, getCause, getEventTime, getInstanceId, getLogMessageInfo, getMessage, getNodeId, getParameter, getParameterNames, getSourceClass, getSourceMethod, getThreadId, getThreadName, getTrackingNumber, initCause, log, toDetailedString, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String AUDIT_PRINCIPAL_PARAMETER_NAME
| Constructor Detail |
|---|
public AuditLogEvent(LogMessageInfo messageInfo,
AuditPrincipal principal)
messageInfo - the log message info of this audit log event.principal - the audit principal that cause this audit log event.
public AuditLogEvent(LogMessageInfo messageInfo,
AuditPrincipal principal,
Throwable cause)
messageInfo - the log message info of this audit log event.principal - the audit principal that cause this audit log event.cause - the cause of this audit log event.| Method Detail |
|---|
public final AuditPrincipal getAuditPrincipal()
public boolean equals(Object obj)
equals in class Objectobj - the object to compare to.
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||