|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.modules.Assembler
org.apache.turbine.modules.Screen
org.apache.turbine.modules.screens.TemplateScreen
org.apache.turbine.modules.screens.VelocityScreen
org.apache.turbine.modules.screens.VelocitySecureScreen
public abstract class 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.
Field Summary |
---|
Fields inherited from class org.apache.turbine.modules.screens.TemplateScreen |
---|
log |
Fields inherited from class org.apache.turbine.modules.Screen |
---|
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX |
Constructor Summary | |
---|---|
VelocitySecureScreen()
|
Method Summary | |
---|---|
protected void |
doBuildTemplate(PipelineData pipelineData)
This method overrides the method in VelocityScreen to perform a security check first. |
protected void |
doBuildTemplate(PipelineData pipelineData,
org.apache.velocity.context.Context context)
Implement this to add information to the context. |
protected void |
doBuildTemplate(RunData data)
Deprecated. Use PipelineData version instead. |
protected abstract void |
doBuildTemplate(RunData data,
org.apache.velocity.context.Context context)
Deprecated. Use PipelineData version instead. |
protected boolean |
isAuthorized(PipelineData pipelineData)
Implement this method to perform the security check needed. |
protected abstract boolean |
isAuthorized(RunData data)
Deprecated. Use PipelineData version instead. |
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen |
---|
buildTemplate, buildTemplate, getContext, getContext |
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen |
---|
doBuild, doBuild, doPostBuildTemplate, doPostBuildTemplate, doRedirect, doRedirect, doRedirect, doRedirect, setTemplate, setTemplate |
Methods inherited from class org.apache.turbine.modules.Screen |
---|
build, build, getLayout, getLayout, getPrefix, prepareText, prepareTextMinimum, setLayout, setLayout |
Methods inherited from class org.apache.turbine.modules.Assembler |
---|
getRunData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocitySecureScreen()
Method Detail |
---|
protected abstract void doBuildTemplate(RunData data, org.apache.velocity.context.Context context) throws Exception
doBuildTemplate
in class VelocityScreen
data
- Turbine information.context
- Context for web pages.
Exception,
- a generic exception.
Exception
protected void doBuildTemplate(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
doBuildTemplate
in class VelocityScreen
data
- Turbine information.context
- Context for web pages.
Exception,
- a generic exception.
Exception
protected void doBuildTemplate(RunData data) throws Exception
doBuildTemplate
in class VelocityScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.protected void doBuildTemplate(PipelineData pipelineData) throws Exception
doBuildTemplate
in class VelocityScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.protected abstract boolean isAuthorized(RunData data) throws Exception
data
- Turbine information.
Exception,
- a generic exception.
Exception
protected boolean isAuthorized(PipelineData pipelineData) throws Exception
data
- Turbine information.
Exception,
- a generic exception.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |