org.jboss.portal.core.aspects.server
Class UserInterceptor

java.lang.Object
  extended by org.jboss.portal.server.ServerInterceptor
      extended by org.jboss.portal.core.aspects.server.UserInterceptor
All Implemented Interfaces:
Interceptor

public class UserInterceptor
extends ServerInterceptor

The interceptor is responsible for managing the user identity lifecycle based on the principal name returned by the HttpServletRequest.getUserPrincipal() method.

Version:
$Revision: 11707 $
Author:
Julien Viet

Field Summary
protected  boolean cacheUser
          .
static java.lang.String PROFILE_KEY
          .
static java.lang.String USER_KEY
          .
protected  UserModule userModule
          User.
protected  UserProfileModule userProfileModule
          UserProfile
 
Constructor Summary
UserInterceptor()
           
 
Method Summary
 UserModule getUserModule()
           
 UserProfileModule getUserProfileModule()
           
protected  void invoke(ServerInvocation invocation)
           
 boolean isCacheUser()
           
 void setCacheUser(boolean cacheUser)
           
 void setUserModule(UserModule userModule)
           
 
Methods inherited from class org.jboss.portal.server.ServerInterceptor
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_KEY

public static final java.lang.String PROFILE_KEY
.

See Also:
Constant Field Values

USER_KEY

public static final java.lang.String USER_KEY
.

See Also:
Constant Field Values

userModule

protected UserModule userModule
User.


userProfileModule

protected UserProfileModule userProfileModule
UserProfile


cacheUser

protected boolean cacheUser
.

Constructor Detail

UserInterceptor

public UserInterceptor()
Method Detail

getUserModule

public UserModule getUserModule()

getUserProfileModule

public UserProfileModule getUserProfileModule()

setUserModule

public void setUserModule(UserModule userModule)

invoke

protected void invoke(ServerInvocation invocation)
               throws java.lang.Exception,
                      InvocationException
Specified by:
invoke in class ServerInterceptor
Throws:
java.lang.Exception
InvocationException

isCacheUser

public boolean isCacheUser()

setCacheUser

public void setCacheUser(boolean cacheUser)