toolbox.web
Class AbstractPermissionPlugin

Package class diagram package AbstractPermissionPlugin
java.lang.Object
  extended by toolbox.web.AbstractPermissionPlugin
All Implemented Interfaces:
PermissionPlugin
Direct Known Subclasses:
HttpSessionAttributePlugin

public abstract class AbstractPermissionPlugin
extends java.lang.Object
implements PermissionPlugin

Abstract plug-in implementation that may be extended when implement PermissionPlugin's.


Field Summary
protected  java.lang.String m_name
           
protected  java.util.Properties m_properties
           
 
Constructor Summary
AbstractPermissionPlugin()
          Protected constructor.
 
Method Summary
 void destroy()
          Empty implementation.
 java.lang.String getDenied()
          Return the URL of the view that must be generated if permission was not granted.
 void init(java.lang.String name, java.util.Properties props)
          Initialise the plug-in with the configuration properties obtained from the PermissionFilter configuration file.
 void setDenied(java.lang.String view)
          Set the URL of the view that must be generated if permission was not granted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface toolbox.web.PermissionPlugin
allow
 

Field Detail

m_name

protected java.lang.String m_name

m_properties

protected java.util.Properties m_properties
Constructor Detail

AbstractPermissionPlugin

public AbstractPermissionPlugin()
Protected constructor.

Method Detail

init

public void init(java.lang.String name,
                 java.util.Properties props)
Initialise the plug-in with the configuration properties obtained from the PermissionFilter configuration file.

Specified by:
init in interface PermissionPlugin
Parameters:
name - String containing the name of this plug-in.
props - Configuration properties.

getDenied

public java.lang.String getDenied()
Return the URL of the view that must be generated if permission was not granted.

Specified by:
getDenied in interface PermissionPlugin
Returns:
String containing the view URL.

setDenied

public void setDenied(java.lang.String view)
Set the URL of the view that must be generated if permission was not granted.

Specified by:
setDenied in interface PermissionPlugin
Parameters:
view - String containing the view URL.

destroy

public void destroy()
Empty implementation.

Specified by:
destroy in interface PermissionPlugin