wt.audit
Class AuditEventInfo

java.lang.Object
  extended bywt.audit.AuditEventInfo
All Implemented Interfaces:
Externalizable, Serializable

public class AuditEventInfo
extends Object
implements Externalizable

Auxiliary class just to hold user and the time of its last event.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Timestamp eventTime
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  ObjectReference targetReference
           
private  WTPrincipalReference userReference
           
 
Constructor Summary
AuditEventInfo()
           
 
Method Summary
 Timestamp getEventTime()
          Gets the value of the attribute: eventTime; Time of the event.
 ObjectReference getTargetReference()
          Gets the value of the attribute: targetReference; Reference to a persistable object that is the target of the event.
 WTPrincipalReference getUserReference()
          Gets the value of the attribute: userReference; Reference to event originator.
 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(AuditEventInfo thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setEventTime(Timestamp a_EventTime)
          Sets the value of the attribute: eventTime; Time of the event.
 void setTargetReference(ObjectReference a_TargetReference)
          Sets the value of the attribute: targetReference; Reference to a persistable object that is the target of the event.
 void setUserReference(WTPrincipalReference a_UserReference)
          Sets the value of the attribute: userReference; Reference to event originator.
private  void targetReferenceValidate(ObjectReference a_TargetReference)
           
 String toString()
          Produces String representation of the object.
private  void userReferenceValidate(WTPrincipalReference a_UserReference)
           
 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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

userReference

private WTPrincipalReference userReference

eventTime

private Timestamp eventTime

targetReference

private ObjectReference targetReference

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

AuditEventInfo

public AuditEventInfo()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(AuditEventInfo thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getUserReference

public WTPrincipalReference getUserReference()
Gets the value of the attribute: userReference; Reference to event originator.

Supported API: false

Returns:
WTPrincipalReference

setUserReference

public void setUserReference(WTPrincipalReference a_UserReference)
                      throws WTPropertyVetoException
Sets the value of the attribute: userReference; Reference to event originator.

Supported API: false

Parameters:
a_UserReference -
Throws:
WTPropertyVetoException

userReferenceValidate

private void userReferenceValidate(WTPrincipalReference a_UserReference)
                            throws WTPropertyVetoException
Parameters:
a_UserReference -
Throws:
WTPropertyVetoException

getEventTime

public Timestamp getEventTime()
Gets the value of the attribute: eventTime; Time of the event.

Supported API: false

Returns:
Timestamp

setEventTime

public void setEventTime(Timestamp a_EventTime)
                  throws WTPropertyVetoException
Sets the value of the attribute: eventTime; Time of the event.

Supported API: false

Parameters:
a_EventTime -
Throws:
WTPropertyVetoException

getTargetReference

public ObjectReference getTargetReference()
Gets the value of the attribute: targetReference; Reference to a persistable object that is the target of the event.

Supported API: false

Returns:
ObjectReference

setTargetReference

public void setTargetReference(ObjectReference a_TargetReference)
                        throws WTPropertyVetoException
Sets the value of the attribute: targetReference; Reference to a persistable object that is the target of the event.

Supported API: false

Parameters:
a_TargetReference -
Throws:
WTPropertyVetoException

targetReferenceValidate

private void targetReferenceValidate(ObjectReference a_TargetReference)
                              throws WTPropertyVetoException
Parameters:
a_TargetReference -
Throws:
WTPropertyVetoException

toString

public String toString()
Produces String representation of the object.

Supported API: false

Returns:
String