Class AccessManager

java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
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:
  • Constructor Details

    • 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 Details

    • 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