|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.audit.configaudit.AbstractAuditEventRecorder
wt.audit.configaudit.DefaultAuditEventRecorder
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
ORG_NAME
|
private static String |
QUERY_PRINCIPALS_TASK
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Constructor Summary | |
DefaultAuditEventRecorder()
|
Method Summary | |
protected Timestamp |
computeEventTimestamp(Persistable target,
String event_type)
Getting a timestamp for the audit event is kind of 'ad hoc'. |
protected ProjectAuditEvent |
createAuditEvent(WTUser user,
String event_key,
String event_type,
Persistable target)
Supported API: false |
protected Persistable |
getEventTarget(KeyedEvent event)
Retrieves the event target of an event. |
private ObjectIdentifier |
getOid(Object object)
Returns object's associated oid. |
private String |
getOidString(Object object)
Returns String representation of the object's oid (debugging). |
protected String |
getTargetObjectName(Object target)
This method provides a performant way of getting the name object. |
protected String |
getUserOrgName(WTUser user)
Queries the directory for the user's org name. |
protected ProjectAuditEvent |
persistEvent(KeyedEvent event)
This method creates the persistent event object and returns it. |
protected WTCollection |
persistMultiObjectEvent(KeyedEvent event)
This method creates the persistent records for each object that is target of a multi-object event. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DefaultAuditEventRecorder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setContainerAttributes(ProjectAuditEvent pae,
Persistable target)
|
private String |
showCollection(Collection collection)
Returns String representation of the list passed as argument (debugging). |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.audit.configaudit.AbstractAuditEventRecorder |
logEvent, logEvent, readVersion, recordEvent, recordMultiObjectEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String ORG_NAME
private static final boolean VERBOSE
private static final String QUERY_PRINCIPALS_TASK
Constructor Detail |
public DefaultAuditEventRecorder()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractAuditEventRecorder
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractAuditEventRecorder
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DefaultAuditEventRecorder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected ProjectAuditEvent persistEvent(KeyedEvent event) throws WTException
persistEvent
in class AbstractAuditEventRecorder
event
-
WTException
protected Persistable getEventTarget(KeyedEvent event) throws WTException
event
-
WTException
protected WTCollection persistMultiObjectEvent(KeyedEvent event) throws WTException
ProjectAuditEvent
objects.
persistMultiObjectEvent
in class AbstractAuditEventRecorder
event
-
WTException
protected ProjectAuditEvent createAuditEvent(WTUser user, String event_key, String event_type, Persistable target) throws WTException
user
- event_key
- event_type
- target
-
WTException
protected Timestamp computeEventTimestamp(Persistable target, String event_type) throws WTException
WTException
protected void setContainerAttributes(ProjectAuditEvent pae, Persistable target) throws WTException
WTException
protected String getTargetObjectName(Object target) throws WTException
WTException
protected String getUserOrgName(WTUser user) throws WTException
WTException
private ObjectIdentifier getOid(Object object)
private String getOidString(Object object)
private String showCollection(Collection collection) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |