DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.access
Class AccessManager

java.lang.Object
  extended by org.dlese.dpc.schemedit.config.AbstractConfigReader
      extended by org.dlese.dpc.schemedit.security.access.AccessManager
All Implemented Interfaces:
Serializable

public class AccessManager
extends AbstractConfigReader

NOT YET DOCUMENTED

Version:
$Id: AccessManager.java,v 1.6 2009/07/07 02:58:29 ostwald Exp $
Author:
Jonathan Ostwald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy
 
Constructor Summary
AccessManager(File source, List actionMappings)
          Constructor for the AccessManager object
 
Method Summary
 void addGuardedPath(GuardedPath gp)
          Adds a feature to the GuardedPath attribute of the AccessManager object
 void alignActionsToGuardedPaths()
          NOT YET DOCUMENTED
 void deleteGuardedPath(GuardedPath gp)
          NOT YET DOCUMENTED
 void flush()
          Update DocMap with recent ActionPath and GuardedPaths, and then write it to disk.
 ActionPath getActionPath(String path)
          Gets the actionPath attribute of the AccessManager object
 List getActionPaths()
          Gets the actionPaths attribute of the AccessManager object
 GuardedPath getGuardedPath(String path)
          Gets the guardedPath attribute of the AccessManager object
 List getGuardedPaths()
          Gets the guardedPaths attribute of the AccessManager object
static AccessManager getInstance()
          Gets the instance attribute of the AccessManager class, but only if AccessManager has already been instantiated.
static AccessManager getInstance(File source, List actionMappings)
          Return a singleton instance of the AccessManager class.
 Roles.Role getRoleForPath(String path)
          Gets the roleForPath attribute of the AccessManager object
 Collection getRoles()
          Gets the roles attribute of the AccessManager object
 Collection getRoles(Roles.Role maxRole)
          Gets the roles attribute of the AccessManager object
static void main(String[] args)
          The main program for the AccessManager class
 GuardedPath matchGuardedPath(String path)
          NOT YET DOCUMENTED
protected static void prtln(String s)
          NOT YET DOCUMENTED
 
Methods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, refresh, setNodeText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessManager

public AccessManager(File source,
                     List actionMappings)
              throws Exception
Constructor for the AccessManager object

Parameters:
source - NOT YET DOCUMENTED
actionMappings - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

getInstance

public static AccessManager getInstance()
Gets the instance attribute of the AccessManager class, but only if AccessManager has already been instantiated.

Returns:
The instance value

getInstance

public static AccessManager getInstance(File source,
                                        List actionMappings)
Return a singleton instance of the AccessManager class.

Parameters:
source - NOT YET DOCUMENTED
actionMappings - NOT YET DOCUMENTED
Returns:
The instance value

getRoles

public Collection getRoles()
Gets the roles attribute of the AccessManager object

Returns:
The roles value

getRoles

public Collection getRoles(Roles.Role maxRole)
Gets the roles attribute of the AccessManager object

Parameters:
maxRole - NOT YET DOCUMENTED
Returns:
The roles value

getActionPath

public ActionPath getActionPath(String path)
Gets the actionPath attribute of the AccessManager object

Parameters:
path - NOT YET DOCUMENTED
Returns:
The actionPath value

getGuardedPath

public GuardedPath getGuardedPath(String path)
Gets the guardedPath attribute of the AccessManager object

Parameters:
path - NOT YET DOCUMENTED
Returns:
The guardedPath value

getActionPaths

public List getActionPaths()
Gets the actionPaths attribute of the AccessManager object

Returns:
The actionPaths value

getGuardedPaths

public List getGuardedPaths()
Gets the guardedPaths attribute of the AccessManager object

Returns:
The guardedPaths value

addGuardedPath

public void addGuardedPath(GuardedPath gp)
Adds a feature to the GuardedPath attribute of the AccessManager object

Parameters:
gp - The feature to be added to the GuardedPath attribute

deleteGuardedPath

public void deleteGuardedPath(GuardedPath gp)
NOT YET DOCUMENTED

Parameters:
gp - NOT YET DOCUMENTED

alignActionsToGuardedPaths

public void alignActionsToGuardedPaths()
NOT YET DOCUMENTED


flush

public void flush()
           throws Exception
Update DocMap with recent ActionPath and GuardedPaths, and then write it to disk.

Overrides:
flush in class AbstractConfigReader
Throws:
Exception - NOT YET DOCUMENTED

main

public static void main(String[] args)
                 throws Exception
The main program for the AccessManager class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

getRoleForPath

public Roles.Role getRoleForPath(String path)
Gets the roleForPath attribute of the AccessManager object

Parameters:
path - NOT YET DOCUMENTED
Returns:
The roleForPath value

matchGuardedPath

public GuardedPath matchGuardedPath(String path)
NOT YET DOCUMENTED

Parameters:
path - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

prtln

protected static void prtln(String s)
NOT YET DOCUMENTED

Parameters:
s - NOT YET DOCUMENTED

DLESE Tools
v1.6.0