|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.kernel.permissions.PermissionsObserver
Global observer to enforce permissions on ACS Objects. This observer verifies that the user has write access to the object before the object is saved.
| Field Summary |
| Fields inherited from interface com.arsdigita.domain.GlobalObserver |
versionId |
| Constructor Summary | |
PermissionsObserver()
|
|
| 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)
Callback after a save operation on the observed DomainObject |
void |
beforeDelete(DomainObject dobj)
Callback before a delete operation on the observed DomainObject |
void |
beforeSave(DomainObject dobj)
Callback before a save operation on the observed DomainObject |
void |
clear(DomainObject dobj,
String name)
Callback for a clear operation on the observed DomainObject |
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 |
boolean |
shouldObserve(DomainObject dobj)
This method should return a value indicating whether or not this GlobalObserver wishes to observe the given domain object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PermissionsObserver()
| Method Detail |
public void set(DomainObject dobj,
String name,
Object old_value,
Object new_value)
DomainObjectObserver
set in interface DomainObjectObserverdobj - 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 set
public void add(DomainObject dobj,
String name,
DataObject dataObject)
DomainObjectObserver
add in interface DomainObjectObserverdobj - the observed domain objectname - the name of the parameter being set
public void remove(DomainObject dobj,
String name,
DataObject dataObject)
DomainObjectObserver
remove in interface DomainObjectObserverdobj - the observed domain objectname - the name of the parameter being set
public void clear(DomainObject dobj,
String name)
DomainObjectObserver
clear in interface DomainObjectObserverdobj - the observed domain objectname - the name of the parameter being setpublic void beforeSave(DomainObject dobj)
DomainObjectObserver
beforeSave in interface DomainObjectObserverdobj - the observed domain objectpublic void afterSave(DomainObject dobj)
DomainObjectObserver
afterSave in interface DomainObjectObserverdobj - the observed domain objectpublic void beforeDelete(DomainObject dobj)
DomainObjectObserver
beforeDelete in interface DomainObjectObserverdobj - the observed domain objectpublic void afterDelete(DomainObject dobj)
DomainObjectObserver
afterDelete in interface DomainObjectObserverdobj - the observed domain objectpublic boolean shouldObserve(DomainObject dobj)
GlobalObserver
shouldObserve in interface GlobalObserverdobj - The domain object that is a candidate for observation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||