net.sourceforge.blogentis.turbine
Class SecureBlogScreen
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.turbine.modules.Screen
org.apache.turbine.modules.screens.TemplateScreen
org.apache.turbine.modules.screens.VelocityScreen
net.sourceforge.blogentis.turbine.BaseBlogScreen
net.sourceforge.blogentis.turbine.SecureBlogScreen
- Direct Known Subclasses:
- BlogComments, BlogFiles, BlogMedia, BlogPlugins, BlogProperties, BlogSections, BlogSideboxes, BlogTrackbacks, BlogUsers, PostEdit
- public abstract class SecureBlogScreen
- extends BaseBlogScreen
Base Screen that requires a particulare permission to be held by the user.
- Author:
- abas
Fields inherited from class org.apache.turbine.modules.screens.TemplateScreen |
log |
Method Summary |
protected abstract java.lang.String[] |
getPermissions()
Get the array of permissions this screen supports. |
protected boolean |
isAuthorized(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
|
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen |
buildTemplate, doBuildTemplate, getContext |
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen |
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate |
Methods inherited from class org.apache.turbine.modules.Screen |
build, getLayout, prepareText, prepareTextMinimum, setLayout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureBlogScreen
public SecureBlogScreen()
getPermissions
protected abstract java.lang.String[] getPermissions()
- Get the array of permissions this screen supports. The logged-in user
must have at least one of them to be allowed access to this screen.
- Returns:
- the array of permissions.
isAuthorized
protected final boolean isAuthorized(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
- Overrides:
isAuthorized
in class BaseBlogScreen
Copyright © 2003-2004 SourceForge.net. All Rights Reserved.