Klasse VelocitySecureScreen
java.lang.Object
org.apache.turbine.modules.screens.TemplateScreen
org.apache.turbine.modules.screens.VelocityScreen
org.apache.turbine.modules.screens.VelocitySecureScreen
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.
- Version:
- $Id$
- Autor:
- Dave Bryson, Peter Courcoux
-
Feldübersicht
Von Klasse geerbte Felder org.apache.turbine.modules.screens.VelocityScreen
prefix, templateError, templateService, velocity
Von Klasse geerbte Felder org.apache.turbine.modules.screens.TemplateScreen
log
Von Schnittstelle geerbte Felder org.apache.turbine.modules.Screen
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
doBuildTemplate
(PipelineData pipelineData) This method overrides the method in VelocityScreen to perform a security check first.protected abstract void
doBuildTemplate
(PipelineData pipelineData, org.apache.velocity.context.Context context) Implement this to add information to the context.protected abstract boolean
isAuthorized
(PipelineData pipelineData) Implement this method to perform the security check needed.Von Klasse geerbte Methoden org.apache.turbine.modules.screens.VelocityScreen
buildTemplate
Von Klasse geerbte Methoden org.apache.turbine.modules.screens.TemplateScreen
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate
-
Konstruktordetails
-
VelocitySecureScreen
public VelocitySecureScreen()
-
-
Methodendetails
-
doBuildTemplate
protected abstract void doBuildTemplate(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception Implement this to add information to the context.- Setzt außer Kraft:
doBuildTemplate
in KlasseVelocityScreen
- Parameter:
pipelineData
- Turbine information.context
- Context for web pages.- Löst aus:
Exception
- a generic exception.
-
doBuildTemplate
This method overrides the method in VelocityScreen to perform a security check first.- Setzt außer Kraft:
doBuildTemplate
in KlasseVelocityScreen
- Parameter:
pipelineData
- Turbine information.- Löst aus:
Exception
- a generic exception.
-
isAuthorized
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.- Parameter:
pipelineData
- Turbine information.- Gibt zurück:
- True if the user is authorized to access the screen.
- Löst aus:
Exception
- a generic exception.
-