| org.apache.turbine.modules.actions.VelocityAction org.apache.turbine.modules.actions.VelocitySecureAction
VelocitySecureAction | abstract public class VelocitySecureAction extends VelocityAction (Code) | | VelocitySecure action.
Always performs a Security Check that you've defined before
executing the doBuildtemplate(). You should extend this class and
add the specific security check needed. If you have a number of
screens that need to perform the same check, you could make a base
screen by extending this class and implementing the isAuthorized().
Then each action that needs to perform the same check could extend
your base action.
author: Dave Bryson author: Jon S. Stevens author: Jason van Zyl version: $Id: VelocitySecureAction.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
abstract public void | doPerform(RunData data, Context context) Implement this to add information to the context. | abstract protected boolean | isAuthorized(RunData data) Implement this method to perform the security check needed.
You should set the template in this method that you want the
user to be sent to if they're unauthorized.
Parameters: data - Turbine information. | protected void | perform(RunData data) This method overrides the method in WebMacroSiteAction to
perform a security check first. |
doPerform | abstract public void doPerform(RunData data, Context context) throws Exception(Code) | | Implement this to add information to the context.
Parameters: data - Turbine information. Parameters: context - Context for web pages. throws: Exception - a generic exception. |
isAuthorized | abstract protected boolean isAuthorized(RunData data) throws Exception(Code) | | Implement this method to perform the security check needed.
You should set the template in this method that you want the
user to be sent to if they're unauthorized.
Parameters: data - Turbine information. True if the user is authorized to access the screen. throws: Exception - a generic exception. |
perform | protected void perform(RunData data) throws Exception(Code) | | This method overrides the method in WebMacroSiteAction to
perform a security check first.
Parameters: data - Turbine information. throws: Exception - a generic exception. |
|
|