com.jivesoftware.base.action.interceptor
Class AdminAuthInterceptor
java.lang.Object
com.jivesoftware.base.action.interceptor.AuthInterceptor
com.jivesoftware.base.action.interceptor.AdminAuthInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable
- Direct Known Subclasses:
- ForumsAdminAuthInterceptor
public class AdminAuthInterceptor
- extends AuthInterceptor
Auth Interceptor for admin stuff.
- See Also:
- Serialized Form
Method Summary |
protected AuthToken |
getAuthToken(com.opensymphony.xwork.ActionInvocation ai)
Returns the AuthToken of the page user. |
protected java.lang.String |
getRedirectURL(javax.servlet.http.HttpServletRequest request,
java.lang.String optionalParams)
|
protected UserManager |
getUserManager(AuthToken authToken)
Returns a UserManager given an authToken. |
java.lang.String |
intercept(com.opensymphony.xwork.ActionInvocation ai)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdminAuthInterceptor
public AdminAuthInterceptor()
intercept
public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation ai)
throws java.lang.Exception
- Specified by:
intercept
in interface com.opensymphony.xwork.interceptor.Interceptor
- Overrides:
intercept
in class AuthInterceptor
- Throws:
java.lang.Exception
getAuthToken
protected AuthToken getAuthToken(com.opensymphony.xwork.ActionInvocation ai)
- Description copied from class:
AuthInterceptor
- Returns the AuthToken of the page user. If the page user is a guest then the
auth token is anonymous (such that getAuthToken().isAnonymous() == true).
- Overrides:
getAuthToken
in class AuthInterceptor
- Returns:
- the page user's AuthToken
- See Also:
AuthToken
getUserManager
protected UserManager getUserManager(AuthToken authToken)
- Description copied from class:
AuthInterceptor
- Returns a UserManager given an authToken. THe returned UserManager should be a proxy object.
- Specified by:
getUserManager
in class AuthInterceptor
- Parameters:
authToken
- the authToken for got page user
- Returns:
- a UserManager
getRedirectURL
protected java.lang.String getRedirectURL(javax.servlet.http.HttpServletRequest request,
java.lang.String optionalParams)
Copyright © 1999-2006 Jive Software.