Class AccessManager
java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
org.dlese.dpc.schemedit.security.access.AccessManager
- All Implemented Interfaces:
Serializable
NOT YET DOCUMENTED
- Version:
- $Id: AccessManager.java,v 1.6 2009/07/07 02:58:29 ostwald Exp $
- Author:
- Jonathan Ostwald
- See Also:
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy -
Constructor Summary
ConstructorsConstructorDescriptionAccessManager(File source, List actionMappings) Constructor for the AccessManager object -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a feature to the GuardedPath attribute of the AccessManager objectvoidNOT YET DOCUMENTEDvoidNOT YET DOCUMENTEDvoidflush()Update DocMap with recent ActionPath and GuardedPaths, and then write it to disk.getActionPath(String path) Gets the actionPath attribute of the AccessManager objectGets the actionPaths attribute of the AccessManager objectgetGuardedPath(String path) Gets the guardedPath attribute of the AccessManager objectGets the guardedPaths attribute of the AccessManager objectstatic AccessManagerGets the instance attribute of the AccessManager class, but only if AccessManager has already been instantiated.static AccessManagergetInstance(File source, List actionMappings) Return a singleton instance of the AccessManager class.getRoleForPath(String path) Gets the roleForPath attribute of the AccessManager objectgetRoles()Gets the roles attribute of the AccessManager objectgetRoles(Roles.Role maxRole) Gets the roles attribute of the AccessManager objectstatic voidThe main program for the AccessManager classmatchGuardedPath(String path) NOT YET DOCUMENTEDprotected static voidNOT YET DOCUMENTEDMethods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, refresh, setNodeText, setSource
-
Constructor Details
-
AccessManager
Constructor for the AccessManager object- Parameters:
source- NOT YET DOCUMENTEDactionMappings- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
getInstance
Gets the instance attribute of the AccessManager class, but only if AccessManager has already been instantiated.- Returns:
- The instance value
-
getInstance
Return a singleton instance of the AccessManager class.- Parameters:
source- NOT YET DOCUMENTEDactionMappings- NOT YET DOCUMENTED- Returns:
- The instance value
-
getRoles
Gets the roles attribute of the AccessManager object- Returns:
- The roles value
-
getRoles
Gets the roles attribute of the AccessManager object- Parameters:
maxRole- NOT YET DOCUMENTED- Returns:
- The roles value
-
getActionPath
Gets the actionPath attribute of the AccessManager object- Parameters:
path- NOT YET DOCUMENTED- Returns:
- The actionPath value
-
getGuardedPath
Gets the guardedPath attribute of the AccessManager object- Parameters:
path- NOT YET DOCUMENTED- Returns:
- The guardedPath value
-
getActionPaths
Gets the actionPaths attribute of the AccessManager object- Returns:
- The actionPaths value
-
getGuardedPaths
Gets the guardedPaths attribute of the AccessManager object- Returns:
- The guardedPaths value
-
addGuardedPath
Adds a feature to the GuardedPath attribute of the AccessManager object- Parameters:
gp- The feature to be added to the GuardedPath attribute
-
deleteGuardedPath
NOT YET DOCUMENTED- Parameters:
gp- NOT YET DOCUMENTED
-
alignActionsToGuardedPaths
public void alignActionsToGuardedPaths()NOT YET DOCUMENTED -
flush
Update DocMap with recent ActionPath and GuardedPaths, and then write it to disk.- Overrides:
flushin classAbstractConfigReader- Throws:
Exception- NOT YET DOCUMENTED
-
main
The main program for the AccessManager class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
getRoleForPath
Gets the roleForPath attribute of the AccessManager object- Parameters:
path- NOT YET DOCUMENTED- Returns:
- The roleForPath value
-
matchGuardedPath
NOT YET DOCUMENTED- Parameters:
path- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
prtln
NOT YET DOCUMENTED- Parameters:
s- NOT YET DOCUMENTED
-