com.arsdigita.auditing
Class AuditedACSObject

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.auditing.AuditedACSObject
All Implemented Interfaces:
Audited
Direct Known Subclasses:
PersistentComponent, Task

public abstract class AuditedACSObject
extends ACSObject
implements Audited

Base class. Provides default functionality for auditing ACSObjects.

Version:
1.0
Author:
Joseph Bank

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.kernel.ACSObject
BASE_DATA_OBJECT_TYPE, CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
protected AuditedACSObject(DataObject AuditedACSObjectData)
          Equaivalent to the corresponding ACSObject constructor.
  AuditedACSObject(ObjectType type)
          Equaivalent to the corresponding ACSObject constructor.
  AuditedACSObject(OID oid)
          Equaivalent to the corresponding ACSObject constructor.
  AuditedACSObject(String typeName)
          Equaivalent to the corresponding ACSObject constructor.
 
Method Summary
 Date getCreationDate()
          Gets the creation date of the object.
 String getCreationIP()
          Gets the IP address associated with creating an object.
 User getCreationUser()
          Gets the user who created the object.
 Date getLastModifiedDate()
          Gets the last modified date.
 String getLastModifiedIP()
          Gets the last modified IP address.
 User getLastModifiedUser()
          Gets the user who last modified the object.
protected  void initialize()
          Initializes with a basic audit trail and an Auditing Observer.
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, 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

AuditedACSObject

protected AuditedACSObject(DataObject AuditedACSObjectData)
Equaivalent to the corresponding ACSObject constructor.


AuditedACSObject

public AuditedACSObject(String typeName)
Equaivalent to the corresponding ACSObject constructor.


AuditedACSObject

public AuditedACSObject(ObjectType type)
Equaivalent to the corresponding ACSObject constructor.


AuditedACSObject

public AuditedACSObject(OID oid)
                 throws DataObjectNotFoundException
Equaivalent to the corresponding ACSObject constructor.

Method Detail

getCreationUser

public User getCreationUser()
Gets the user who created the object. May be null.

Specified by:
getCreationUser in interface Audited
Returns:
the user who created the object.

getCreationDate

public Date getCreationDate()
Gets the creation date of the object.

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

getCreationIP

public String getCreationIP()
Gets the IP address associated with creating an object. May be null.

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

getLastModifiedUser

public User getLastModifiedUser()
Gets the user who last modified the object. May be null.

Specified by:
getLastModifiedUser in interface Audited
Returns:
the last modifying user.

getLastModifiedDate

public Date getLastModifiedDate()
Gets the last modified date.

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

getLastModifiedIP

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

Specified by:
getLastModifiedIP in interface Audited
Returns:
the IP address associated with the last modification.

initialize

protected void initialize()
Initializes with a basic audit trail and an Auditing Observer. This method is called from the DomainObject constructor, so it is invoked whenever a new ACSObject is constructed.

Overrides:
initialize in class ACSObject


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