|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.auditing.AuditingObserver
Implements DomainObjectObserver pattern so that it can be added to another DomainObject to provide automatic auditing.
Field Summary | |
static org.apache.log4j.Logger |
s_log
|
static String |
versionId
|
Constructor Summary | |
AuditingObserver(BasicAuditTrail audit_trail)
Creates a new AuditingObserver using the passed in audit trail. |
Method Summary | |
void |
add(DomainObject dobj,
String name,
DataObject dataObject)
Callback for an add operation on the observed DomainObject |
void |
afterDelete(DomainObject dobj)
Callback after a delete operation on the observed DomainObject |
void |
afterSave(DomainObject dobj)
Saves the modified audit trail. |
void |
beforeDelete(DomainObject dobj)
Callback before a delete operation on the observed DomainObject |
void |
beforeSave(DomainObject dobj)
Records some information about the save operation and modifies the audit trail. |
void |
clear(DomainObject dobj,
String name)
Callback for a clear operation on the observed DomainObject |
boolean |
equals(Object other)
|
protected AuditingSaveInfo |
getSaveInfo()
|
int |
hashCode()
|
void |
remove(DomainObject dobj,
String name,
DataObject dataObject)
Callback for a remove operation on the observed DomainObject |
void |
set(DomainObject dobj,
String name,
Object old_value,
Object new_value)
Callback for a set operation on the observed DomainObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.log4j.Logger s_log
public static final String versionId
Constructor Detail |
public AuditingObserver(BasicAuditTrail audit_trail)
Method Detail |
protected AuditingSaveInfo getSaveInfo()
public void beforeSave(DomainObject dobj) throws PersistenceException
beforeSave
in interface DomainObjectObserver
dobj
- the observed domain object
PersistenceException
public void afterSave(DomainObject dobj) throws PersistenceException
afterSave
in interface DomainObjectObserver
dobj
- the observed domain object
PersistenceException
public void beforeDelete(DomainObject dobj) throws PersistenceException
DomainObjectObserver
beforeDelete
in interface DomainObjectObserver
dobj
- the observed domain object
PersistenceException
public void set(DomainObject dobj, String name, Object old_value, Object new_value)
DomainObjectObserver
set
in interface DomainObjectObserver
dobj
- the observed domain objectname
- the name of the parameter being setold_value
- the old value of the parameter being setnew_value
- the old value of the parameter being setpublic void add(DomainObject dobj, String name, DataObject dataObject)
DomainObjectObserver
add
in interface DomainObjectObserver
dobj
- the observed domain objectname
- the name of the parameter being setpublic void remove(DomainObject dobj, String name, DataObject dataObject)
DomainObjectObserver
remove
in interface DomainObjectObserver
dobj
- the observed domain objectname
- the name of the parameter being setpublic void clear(DomainObject dobj, String name)
DomainObjectObserver
clear
in interface DomainObjectObserver
dobj
- the observed domain objectname
- the name of the parameter being setpublic void afterDelete(DomainObject dobj) throws PersistenceException
DomainObjectObserver
afterDelete
in interface DomainObjectObserver
dobj
- the observed domain object
PersistenceException
public boolean equals(Object other)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |