org.iges.anagram
Class PrivilegeMgr
java.lang.Object
|
+--org.iges.anagram.AbstractModule
|
+--org.iges.anagram.PrivilegeMgr
- All Implemented Interfaces:
- Module
- public class PrivilegeMgr
- extends AbstractModule
Manages a hierarchical collection of privilege sets, and assigns them
to incoming requests.
Methods inherited from class org.iges.anagram.AbstractModule |
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ipRanges
protected java.util.SortedMap ipRanges
privileges
protected java.util.Map privileges
privilegeDocument
protected org.w3c.dom.Document privilegeDocument
defaultPrivilege
protected Privilege defaultPrivilege
PrivilegeMgr
public PrivilegeMgr()
getModuleID
public final java.lang.String getModuleID()
- Description copied from interface:
Module
- Returns an ID for this module. This ID should be a legal XML
tag name. It has two uses: as a tag name in the server's
configuration file, and as the final element of the complete module
name.
- Specified by:
getModuleID
in interface Module
- Specified by:
getModuleID
in class AbstractModule
configure
public void configure(Setting setting)
throws ConfigException
- Description copied from class:
AbstractModule
- Configures the module according to the settings provided. The
server supports dynamic reconfiguration. Thus this method may be
called at any time in the life of the module. If the module
cannot be reconfigured, it should throw an exception.
- Specified by:
configure
in interface Module
- Specified by:
configure
in class AbstractModule
ConfigException
getPrivilege
public Privilege getPrivilege(HttpServletRequest request)
- Returns the privilege set
associated with the given HTTP servlet request
buildPrivileges
protected void buildPrivileges(Setting setting)
buildInheritance
protected void buildInheritance(Setting setting)
throws ConfigException
ConfigException
setDefaultPrivilege
protected void setDefaultPrivilege(Setting setting)
throws ConfigException
ConfigException
buildIPRanges
protected void buildIPRanges(Setting setting)
addDot
protected java.lang.String addDot(java.lang.String ip)