net.sourceforge.blogentis.turbine
Class SecureBlogScreen

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Screen
          extended byorg.apache.turbine.modules.screens.TemplateScreen
              extended byorg.apache.turbine.modules.screens.VelocityScreen
                  extended bynet.sourceforge.blogentis.turbine.BaseBlogScreen
                      extended bynet.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

Field Summary
 
Fields inherited from class org.apache.turbine.modules.screens.TemplateScreen
log
 
Constructor Summary
SecureBlogScreen()
           
 
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 net.sourceforge.blogentis.turbine.BaseBlogScreen
doBuildTemplate, getLayoutTemplate, setTemplate
 
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
 

Constructor Detail

SecureBlogScreen

public SecureBlogScreen()
Method Detail

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.