magoffin.matt.ma2.aop
Class UserDeleteIndexInterceptor

java.lang.Object
  extended by magoffin.matt.ma2.aop.AbstractIndexInterceptor
      extended by magoffin.matt.ma2.aop.UserDeleteIndexInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterReturningAdvice

public class UserDeleteIndexInterceptor
extends AbstractIndexInterceptor

Interceptor to support removal of User domain objects from the search index.

This method expects an Long value to exist on the args parameter passed to the afterReturning(Object, Method, Object[], Object) method. It will assume the first Long object found is the userId of the user that should be removed from the user index via IndexBiz.removeUserFromIndex(Long).

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
 
Fields inherited from class magoffin.matt.ma2.aop.AbstractIndexInterceptor
log
 
Constructor Summary
UserDeleteIndexInterceptor()
           
 
Method Summary
 void afterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
           
 
Methods inherited from class magoffin.matt.ma2.aop.AbstractIndexInterceptor
getIndexBiz, setIndexBiz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDeleteIndexInterceptor

public UserDeleteIndexInterceptor()
Method Detail

afterReturning

public void afterReturning(java.lang.Object returnValue,
                           java.lang.reflect.Method method,
                           java.lang.Object[] args,
                           java.lang.Object target)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable