org.iternine.jeppetto.dao.hibernate
Class AccessControlInterceptor

java.lang.Object
  extended by org.hibernate.EmptyInterceptor
      extended by org.iternine.jeppetto.dao.hibernate.AccessControlInterceptor
All Implemented Interfaces:
Serializable, org.hibernate.Interceptor

public class AccessControlInterceptor
extends org.hibernate.EmptyInterceptor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
 
Constructor Summary
AccessControlInterceptor()
           
 
Method Summary
 void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
           
 boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types)
           
 boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types)
           
 void setAccessControlContextProvider(AccessControlContextProvider accessControlContextProvider)
           
 void setAccessControlHelper(AccessControlHelper accessControlHelper)
           
 
Methods inherited from class org.hibernate.EmptyInterceptor
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onLoad, onPrepareStatement, postFlush, preFlush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessControlInterceptor

public AccessControlInterceptor()
Method Detail

onFlushDirty

public boolean onFlushDirty(Object entity,
                            Serializable id,
                            Object[] currentState,
                            Object[] previousState,
                            String[] propertyNames,
                            org.hibernate.type.Type[] types)
Specified by:
onFlushDirty in interface org.hibernate.Interceptor
Overrides:
onFlushDirty in class org.hibernate.EmptyInterceptor

onSave

public boolean onSave(Object entity,
                      Serializable id,
                      Object[] state,
                      String[] propertyNames,
                      org.hibernate.type.Type[] types)
Specified by:
onSave in interface org.hibernate.Interceptor
Overrides:
onSave in class org.hibernate.EmptyInterceptor

onDelete

public void onDelete(Object entity,
                     Serializable id,
                     Object[] state,
                     String[] propertyNames,
                     org.hibernate.type.Type[] types)
Specified by:
onDelete in interface org.hibernate.Interceptor
Overrides:
onDelete in class org.hibernate.EmptyInterceptor

setAccessControlHelper

public void setAccessControlHelper(AccessControlHelper accessControlHelper)

setAccessControlContextProvider

public void setAccessControlContextProvider(AccessControlContextProvider accessControlContextProvider)


Copyright © 2012. All Rights Reserved.