public class ACLEventListener
extends java.lang.Object
implements org.hibernate.event.PreDeleteEventListener, org.hibernate.event.PreInsertEventListener, org.hibernate.event.PreLoadEventListener, org.hibernate.event.PreUpdateEventListener, org.hibernate.event.PostDeleteEventListener, org.hibernate.event.PostInsertEventListener, org.hibernate.event.PostLoadEventListener, org.hibernate.event.PostUpdateEventListener
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 and Description |
---|
ACLEventListener(ACLVoter aclVoter)
main constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public ACLEventListener(ACLVoter aclVoter)
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