org.apache.struts.chain.servlet
Class AuthorizeAction

java.lang.Object
  extended byorg.apache.struts.chain.AbstractAuthorizeAction
      extended byorg.apache.struts.chain.servlet.AuthorizeAction
All Implemented Interfaces:
org.apache.commons.chain.Command

public class AuthorizeAction
extends AbstractAuthorizeAction

Determine if the action is authorized for the given roles.

Version:
$Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $

Field Summary
 
Fields inherited from class org.apache.struts.chain.AbstractAuthorizeAction
 
Constructor Summary
AuthorizeAction()
           
 
Method Summary
protected  boolean isAuthorized(org.apache.commons.chain.Context context, java.lang.String[] roles, org.apache.struts.config.ActionConfig mapping)
          Determine if the action is authorized for the given roles.
 
Methods inherited from class org.apache.struts.chain.AbstractAuthorizeAction
execute, getActionConfigKey, getActionServletKey, setActionConfigKey, setActionServletKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizeAction

public AuthorizeAction()
Method Detail

isAuthorized

protected boolean isAuthorized(org.apache.commons.chain.Context context,
                               java.lang.String[] roles,
                               org.apache.struts.config.ActionConfig mapping)
                        throws java.lang.Exception
Description copied from class: AbstractAuthorizeAction

Determine if the action is authorized for the given roles.

Specified by:
isAuthorized in class AbstractAuthorizeAction
Parameters:
context - The Context for the current request
roles - An array of valid roles for this request
mapping - The current action mapping
Returns:
true if the request is authorized, else false
Throws:
java.lang.Exception - If the action cannot be tested for authorization


Copyright ? 2003 - Apache Software Foundation