|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.audit.AuditReport
Report of audit events for a period and event. The events are indexed
by target and by user for easy of retrieval.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private AuditEventType |
eventType
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private AuditPeriod |
period
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private HashMap |
targetUserMap
|
private HashMap |
userTargetMap
|
Constructor Summary | |
AuditReport()
|
Method Summary | |
void |
addAuditEvent(AuditEvent audit_event,
boolean only_latest)
Adds an audit event to the report. |
Object[] |
getActiveObjects()
Returns a list of target objects for which there was activity for the event type and interval of the audit period. |
Object[] |
getActiveUsers(ObjectReference audit_ref)
Returns a list of "active users" for the audit report for the persistable object passed as argument. |
Object[] |
getAllActiveUsers()
Returns the list of all "active users" for the audit report for the persistable object passed as argument. |
AuditPeriod |
getAuditPeriod()
Returns the audit period. |
protected AuditEventType |
getEventType()
Gets the value of the attribute: eventType. |
protected AuditPeriod |
getPeriod()
Gets the value of the attribute: period. |
protected HashMap |
getTargetUserMap()
Gets the value of the attribute: targetUserMap; Maps target references to audit event info objects. |
Object[] |
getUserActivity(WTPrincipalReference user_ref)
Returns a list of audit event info objects, containing the target objects and the last time of the event for the audit report. |
protected HashMap |
getUserTargetMap()
Gets the value of the attribute: userTargetMap. |
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(AuditReport thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setEventType(AuditEventType a_EventType)
Sets the value of the attribute: eventType. |
protected void |
setPeriod(AuditPeriod a_Period)
Sets the value of the attribute: period. |
protected void |
setTargetUserMap(HashMap a_TargetUserMap)
Sets the value of the attribute: targetUserMap; Maps target references to audit event info objects. |
protected void |
setUserTargetMap(HashMap a_UserTargetMap)
Sets the value of the attribute: userTargetMap. |
String |
toString()
Returns a string containing all audit info objects in the report. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private AuditPeriod period
private AuditEventType eventType
private HashMap targetUserMap
private HashMap userTargetMap
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public AuditReport()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AuditReport 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 AuditPeriod getPeriod()
protected void setPeriod(AuditPeriod a_Period) throws WTPropertyVetoException
a_Period
-
WTPropertyVetoException
protected AuditEventType getEventType()
protected void setEventType(AuditEventType a_EventType) throws WTPropertyVetoException
a_EventType
-
WTPropertyVetoException
protected HashMap getTargetUserMap()
protected void setTargetUserMap(HashMap a_TargetUserMap) throws WTPropertyVetoException
a_TargetUserMap
-
WTPropertyVetoException
protected HashMap getUserTargetMap()
protected void setUserTargetMap(HashMap a_UserTargetMap) throws WTPropertyVetoException
a_UserTargetMap
-
WTPropertyVetoException
public Object[] getActiveUsers(ObjectReference audit_ref)
audit_ref
-
AuditEventInfo
public Object[] getAllActiveUsers()
AuditEventInfo
public Object[] getActiveObjects()
public Object[] getUserActivity(WTPrincipalReference user_ref)
user_ref
-
AuditEventInfo
public String toString()
public AuditPeriod getAuditPeriod()
public void addAuditEvent(AuditEvent audit_event, boolean only_latest) throws WTException
audit_event
- only_latest
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |