com.jivesoftware.forum.action
Class AdminSecurityInterceptor
java.lang.Object
com.jivesoftware.forum.action.AdminSecurityInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable
public class AdminSecurityInterceptor
- extends java.lang.Object
- implements com.opensymphony.xwork.interceptor.Interceptor
This class used to force Permissions.SYSTEM_ADMIN access to any wrapped
action. It has been relaxed to just check for elevated privileges. It is possible to also allow global
moderators (ForumPermissions.MODERATOR by calling
setAllowModerator(boolean).
This interceptor currently requires jive.admin.authToken to already be populated in the
session (this is done by global.jspf in the admin tool).
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdminSecurityInterceptor
public AdminSecurityInterceptor()
destroy
public void destroy()
- Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor
init
public void init()
- Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor
isAllowModerator
public boolean isAllowModerator()
setAllowModerator
public void setAllowModerator(boolean allowModerator)
intercept
public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation in)
throws java.lang.Exception
- Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
- Throws:
java.lang.Exception
Copyright © 1999-2006 Jive Software.