net.sourceforge.blogentis.utils.tools
Class SecurityTool

java.lang.Object
  extended bynet.sourceforge.blogentis.utils.tools.SecurityTool
All Implemented Interfaces:
org.apache.turbine.services.pull.RunDataApplicationTool

public class SecurityTool
extends java.lang.Object
implements org.apache.turbine.services.pull.RunDataApplicationTool

Tool to simplify Velocity access control checks.

Author:
abas

Field Summary
protected  BlogRunData data
           
 
Constructor Summary
SecurityTool()
           
SecurityTool(BlogRunData data)
           
 
Method Summary
 boolean getCanEditThisPost()
           
 boolean getIsBlogAdmin()
           
 boolean getIsBlogAuthor()
           
 boolean getIsBlogEditor()
           
 boolean getIsSiteAdmin()
           
 void init(java.lang.Object obj)
           
 void refresh(org.apache.turbine.util.RunData data)
           
 void setRunData(BlogRunData brdata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected BlogRunData data
Constructor Detail

SecurityTool

public SecurityTool()

SecurityTool

public SecurityTool(BlogRunData data)
Method Detail

init

public void init(java.lang.Object obj)
Specified by:
init in interface org.apache.turbine.services.pull.RunDataApplicationTool

setRunData

public void setRunData(BlogRunData brdata)

refresh

public void refresh(org.apache.turbine.util.RunData data)
Specified by:
refresh in interface org.apache.turbine.services.pull.RunDataApplicationTool

getIsSiteAdmin

public boolean getIsSiteAdmin()

getIsBlogAdmin

public boolean getIsBlogAdmin()

getIsBlogAuthor

public boolean getIsBlogAuthor()

getIsBlogEditor

public boolean getIsBlogEditor()

getCanEditThisPost

public boolean getCanEditThisPost()


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.