com.arsdigita.auditing
Class BasicAuditTrail

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.auditing.BasicAuditTrail
All Implemented Interfaces:
Audited

public class BasicAuditTrail
extends DomainObject
implements Audited

Stores auditing information for an object.

Version:
1.0
Author:
Joseph Bank

Field Summary
static String versionId
           
 
Constructor Summary
BasicAuditTrail()
          Constructs a new audit trail.
BasicAuditTrail(DataObject object)
           
 
Method Summary
protected  String getBaseDataObjectType()
          Returns the base data object type for this domain object class.
 Date getCreationDate()
          Gets the creation date.
 String getCreationIP()
          Gets the creation IP address.
 User getCreationUser()
          Gets the creation user.
 Date getLastModifiedDate()
          Gets the last modified date.
 String getLastModifiedIP()
          Gets the last modified IP address.
 User getLastModifiedUser()
          Gets the last modified user.
static BasicAuditTrail retrieveForACSObject(ACSObject aobj)
          Retrieves a BasicAuditTrail object for an ACSObject.
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

BasicAuditTrail

public BasicAuditTrail(DataObject object)

BasicAuditTrail

public BasicAuditTrail()
Constructs a new audit trail.

Method Detail

getBaseDataObjectType

protected String getBaseDataObjectType()
Description copied from class: DomainObject
Returns the base data object type for this domain object class. Intended to be overrided by subclasses whenever the subclass will only work if their primary data object is of a certain base type.

Overrides:
getBaseDataObjectType in class DomainObject
Returns:
The fully qualified name ("modelName.typeName") of the base data object type for this domain object class, or null if there is no restriction on the data object type for the primary data object encapsulated by this class.

retrieveForACSObject

public static BasicAuditTrail retrieveForACSObject(ACSObject aobj)
Retrieves a BasicAuditTrail object for an ACSObject.

Parameters:
aobj - the object to retrieve the audit trail for
Returns:
the BasicAuditTrail object for the specified object.

getCreationUser

public User getCreationUser()
Gets the creation user.

Specified by:
getCreationUser in interface Audited
Returns:
the user.

getCreationDate

public Date getCreationDate()
Gets the creation date.

Specified by:
getCreationDate in interface Audited
Returns:
the object's creation date.

getCreationIP

public String getCreationIP()
Gets the creation IP address.

Specified by:
getCreationIP in interface Audited
Returns:
the creation IP address.

getLastModifiedUser

public User getLastModifiedUser()
Gets the last modified user.

Specified by:
getLastModifiedUser in interface Audited
Returns:
the user who last modified the object.

getLastModifiedDate

public Date getLastModifiedDate()
Gets the last modified date.

Specified by:
getLastModifiedDate in interface Audited
Returns:
the date that the object was last modified.

getLastModifiedIP

public String getLastModifiedIP()
Gets the last modified IP address.

Specified by:
getLastModifiedIP in interface Audited


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC