Code example for EmptyInterceptor

0
 * It will grab the user from 
 * {@link org.sculptor.framework.errorhandling.ServiceContext} provided by 
 * {@link org.sculptor.framework.errorhandling.ServiceContextStore}. 
 * 
 */ 
public class AuditInterceptor extends EmptyInterceptor {
 
    private static final long serialVersionUID = -4898120478874862611L;
 
    @Override 
    public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
        // do nothing 
    } 
 
    @Override 
    public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
            String[] propertyNames, Type[] types) {
 
        return changeLastUpdatedInformation(entity, currentState, propertyNames);
    }