| org.apache.turbine.modules.screens.TemplateScreen org.apache.turbine.modules.screens.VelocityScreen org.apache.turbine.modules.screens.VelocitySecureScreen
VelocitySecureScreen | abstract public class VelocitySecureScreen extends VelocityScreen (Code) | | VelocitySecureScreen
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 screen that needs to perform the same check could extend
your base screen.
author: Dave Bryson version: $Id: VelocitySecureScreen.java 536036 2007-05-08 00:44:53Z seade $ |
Method Summary | |
abstract protected void | doBuildTemplate(RunData data, Context context) Implement this to add information to the context. | protected void | doBuildTemplate(RunData data) This method overrides the method in VelocityScreen to
perform a security check first. | 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. |
doBuildTemplate | abstract protected void doBuildTemplate(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. exception: Exception - , a generic exception. |
doBuildTemplate | protected void doBuildTemplate(RunData data) throws Exception(Code) | | This method overrides the method in VelocityScreen to
perform a security check first.
Parameters: data - Turbine information. exception: 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. exception: Exception - , a generic exception. |
Fields inherited from org.apache.turbine.modules.screens.TemplateScreen | protected Log log(Code)(Java Doc)
|
|
|