org.objectweb.jac.aspects.user
Class UserAC.OwnerFilterWrapper

java.lang.Object
  |
  +--org.objectweb.jac.core.Wrapper
        |
        +--org.objectweb.jac.aspects.user.UserAC.OwnerFilterWrapper
All Implemented Interfaces:
Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
Enclosing class:
UserAC

public static class UserAC.OwnerFilterWrapper
extends Wrapper

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.Wrapper
ac, cr
 
Constructor Summary
UserAC.OwnerFilterWrapper(AspectComponent ac)
           
UserAC.OwnerFilterWrapper(AspectComponent ac, String profileName)
           
 
Method Summary
 Object filterResult(Interaction interaction)
          Filters the result of a collection's getter to keep only the object that are owned by the currently logged user.
 Object invoke(MethodInvocation invocation)
           
 
Methods inherited from class org.objectweb.jac.core.Wrapper
attr, attrdef, construct, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAC.OwnerFilterWrapper

public UserAC.OwnerFilterWrapper(AspectComponent ac)

UserAC.OwnerFilterWrapper

public UserAC.OwnerFilterWrapper(AspectComponent ac,
                                 String profileName)
Method Detail

filterResult

public Object filterResult(Interaction interaction)
Filters the result of a collection's getter to keep only the object that are owned by the currently logged user.


invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface MethodInterceptor
Overrides:
invoke in class Wrapper
Throwable