Home » Struts-1.3.10 » org.apache.struts » chain » [javadoc | source]
org.apache.struts.chain
abstract public class: AbstractAuthorizeAction [javadoc | source]
java.lang.Object
   org.apache.struts.chain.AbstractAuthorizeAction

All Implemented Interfaces:
    org.apache.commons.chain.Command

Direct Known Subclasses:
    AuthorizeAction

Determine whether the requested action is authorized for the current user. If not, abort chain processing and perferably, return an error message of some kind.

Method from org.apache.struts.chain.AbstractAuthorizeAction Summary:
execute,   getActionConfigKey,   getActionServletKey,   isAuthorized,   setActionConfigKey,   setActionServletKey
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.AbstractAuthorizeAction Detail:
 public boolean execute(Context context) throws Exception 

    Determine whether the requested action is authorized for the current user. If not, abort chain processing and perferably, return an error message of some kind.

 public String getActionConfigKey() 

    Return the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public String getActionServletKey() 

    Return the context attribute key under which the ActionServlet for the currently selected application action is stored.

 abstract protected boolean isAuthorized(Context context,
    String[] roles,
    ActionConfig actionConfig) throws Exception

    Determine if the action is authorized for the given roles.

 public  void setActionConfigKey(String actionConfigKey) 

    Set the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public  void setActionServletKey(String actionServletKey) 

    Set the context attribute key under which the ActionServlet for the currently selected application action is stored.