org.apache.turbine.modules.actions
Class WebMacroSiteSecureAction

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Action
              |
              +--org.apache.turbine.modules.ActionEvent
                    |
                    +--org.apache.turbine.util.webmacro.WebMacroActionEvent
                          |
                          +--org.apache.turbine.modules.actions.WebMacroSiteAction
                                |
                                +--org.apache.turbine.modules.actions.WebMacroSiteSecureAction

Deprecated. you should use velocity

public abstract class WebMacroSiteSecureAction
extends WebMacroSiteAction

WebMacroSiteSecure 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.

Version:
$Id: WebMacroSiteSecureAction.java,v 1.1.1.1 2001/08/16 05:08:31 jvanzyl Exp $
Author:
Dave Bryson, Jon S. Stevens

Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
WebMacroSiteSecureAction()
          Deprecated.  
 
Method Summary
abstract  void doPerform(RunData data, org.webmacro.servlet.WebContext context)
          Deprecated. Implement this to add information to the context.
protected abstract  boolean isAuthorized(RunData data)
          Deprecated. Implement this method to perform the security check needed.
protected  void perform(RunData data)
          Deprecated. This method overrides the method in WebMacroSiteAction to perform a security check first.
 
Methods inherited from class org.apache.turbine.modules.actions.WebMacroSiteAction
doPerform, getContext, setTemplate
 
Methods inherited from class org.apache.turbine.util.webmacro.WebMacroActionEvent
executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
executeEvents, formatString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebMacroSiteSecureAction

public WebMacroSiteSecureAction()
Deprecated. 
Method Detail

doPerform

public abstract void doPerform(RunData data,
                               org.webmacro.servlet.WebContext context)
                        throws java.lang.Exception
Deprecated. 
Implement this to add information to the context.
Overrides:
doPerform in class WebMacroSiteAction
Parameters:
data - Turbine information.
context - Context for web pages.
Throws:
Exception, - a generic exception.

perform

protected void perform(RunData data)
                throws java.lang.Exception
Deprecated. 
This method overrides the method in WebMacroSiteAction to perform a security check first.
Overrides:
perform in class WebMacroSiteAction
Parameters:
data - Turbine information.
Throws:
Exception, - a generic exception.

isAuthorized

protected abstract boolean isAuthorized(RunData data)
                                 throws java.lang.Exception
Deprecated. 
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. See the WebMacroSecurityCheck utility.
Parameters:
data - Turbine information.
Returns:
True if the user is authorized to access the screen.
Throws:
Exception, - a generic exception.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.