Class LegacyVelocitySecureScreen
- java.lang.Object
- 
- org.apache.turbine.modules.screens.TemplateScreen
- 
- org.apache.turbine.modules.screens.VelocityScreen
- 
- org.apache.turbine.modules.screens.LegacyVelocityScreen
- 
- org.apache.turbine.modules.screens.LegacyVelocitySecureScreen
 
 
 
 
- 
 @Deprecated public abstract class LegacyVelocitySecureScreen extends LegacyVelocityScreen Deprecated.Use VelocitySecureScreen directlySupport Turbine 2 screens- Author:
- Thomas Vandahl
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.turbine.modules.screens.VelocityScreenprefix, templateError, templateService, velocity
 - 
Fields inherited from class org.apache.turbine.modules.screens.TemplateScreenlog
 - 
Fields inherited from interface org.apache.turbine.modules.ScreenCACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
 
- 
 - 
Constructor SummaryConstructors Constructor Description LegacyVelocitySecureScreen()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddoBuildTemplate(PipelineData pipelineData)Deprecated.This method overrides the method in VelocityScreen to perform a security check first.protected abstract voiddoBuildTemplate(RunData data, org.apache.velocity.context.Context context)Deprecated.Implement this to add information to the context.protected abstract booleanisAuthorized(RunData data)Deprecated.Implement this method to perform the security check needed.- 
Methods inherited from class org.apache.turbine.modules.screens.LegacyVelocityScreendoBuildTemplate
 - 
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreenbuildTemplate
 - 
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreendoBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate
 
- 
 
- 
- 
- 
Constructor Detail- 
LegacyVelocitySecureScreenpublic LegacyVelocitySecureScreen() Deprecated.
 
- 
 - 
Method Detail- 
doBuildTemplateprotected abstract void doBuildTemplate(RunData data, org.apache.velocity.context.Context context) throws Exception Deprecated.Implement this to add information to the context.- Overrides:
- doBuildTemplatein class- LegacyVelocityScreen
- Parameters:
- data- Turbine information.
- context- Context for web pages.
- Throws:
- Exception- a generic exception.
 
 - 
doBuildTemplateprotected void doBuildTemplate(PipelineData pipelineData) throws Exception Deprecated.This method overrides the method in VelocityScreen to perform a security check first.- Overrides:
- doBuildTemplatein class- VelocityScreen
- Parameters:
- pipelineData- Turbine information.
- Throws:
- Exception- a generic exception.
 
 - 
isAuthorizedprotected abstract boolean isAuthorized(RunData data) throws 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 VelocitySecurityCheck utility.- Parameters:
- data- Turbine information.
- Returns:
- True if the user is authorized to access the screen.
- Throws:
- Exception- a generic exception.
 
 
- 
 
-