|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.security.ACLEventListener
public class ACLEventListener
responsible for intercepting all pre-INSERT, pre-UPDATE, pre-DELETE, and
post-LOAD events to apply access control. For each event, a call is made to
the SecuritySystem
to see if the event is allowed, and if not,
another call is made to the SecuritySystem
to throw a
SecurityViolation
.
SecuritySystem
,
SecurityViolation
,
Serialized FormConstructor Summary | |
---|---|
ACLEventListener(ACLVoter aclVoter)
main constructor. controls access to individual db rows.. |
Method Summary | |
---|---|
void |
onPostDelete(org.hibernate.event.PostDeleteEvent event)
unused |
void |
onPostInsert(org.hibernate.event.PostInsertEvent event)
unused |
void |
onPostLoad(org.hibernate.event.PostLoadEvent event)
catches all load events after the fact, and tests the current users permissions to read that object. |
void |
onPostUpdate(org.hibernate.event.PostUpdateEvent event)
unused |
boolean |
onPreDelete(org.hibernate.event.PreDeleteEvent event)
|
boolean |
onPreInsert(org.hibernate.event.PreInsertEvent event)
|
void |
onPreLoad(org.hibernate.event.PreLoadEvent event)
unused |
boolean |
onPreUpdate(org.hibernate.event.PreUpdateEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ACLEventListener(ACLVoter aclVoter)
Method Detail |
---|
public void onPostDelete(org.hibernate.event.PostDeleteEvent event)
onPostDelete
in interface org.hibernate.event.PostDeleteEventListener
public void onPostInsert(org.hibernate.event.PostInsertEvent event)
onPostInsert
in interface org.hibernate.event.PostInsertEventListener
public void onPostUpdate(org.hibernate.event.PostUpdateEvent event)
onPostUpdate
in interface org.hibernate.event.PostUpdateEventListener
public void onPreLoad(org.hibernate.event.PreLoadEvent event)
onPreLoad
in interface org.hibernate.event.PreLoadEventListener
public void onPostLoad(org.hibernate.event.PostLoadEvent event)
onPostLoad
in interface org.hibernate.event.PostLoadEventListener
public boolean onPreInsert(org.hibernate.event.PreInsertEvent event)
onPreInsert
in interface org.hibernate.event.PreInsertEventListener
public boolean onPreUpdate(org.hibernate.event.PreUpdateEvent event)
onPreUpdate
in interface org.hibernate.event.PreUpdateEventListener
public boolean onPreDelete(org.hibernate.event.PreDeleteEvent event)
onPreDelete
in interface org.hibernate.event.PreDeleteEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.