public class AccessManager extends AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy
Constructor and Description |
---|
AccessManager(java.io.File source,
java.util.List actionMappings)
Constructor for the AccessManager object
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.String path)
Gets the actionPath attribute of the AccessManager object
|
java.util.List |
getActionPaths()
Gets the actionPaths attribute of the AccessManager object
|
GuardedPath |
getGuardedPath(java.lang.String path)
Gets the guardedPath attribute of the AccessManager object
|
java.util.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(java.io.File source,
java.util.List actionMappings)
Return a singleton instance of the AccessManager class.
|
Roles.Role |
getRoleForPath(java.lang.String path)
Gets the roleForPath attribute of the AccessManager object
|
java.util.Collection |
getRoles()
Gets the roles attribute of the AccessManager object
|
java.util.Collection |
getRoles(Roles.Role maxRole)
Gets the roles attribute of the AccessManager object
|
static void |
main(java.lang.String[] args)
The main program for the AccessManager class
|
GuardedPath |
matchGuardedPath(java.lang.String path)
NOT YET DOCUMENTED
|
protected static void |
prtln(java.lang.String s)
NOT YET DOCUMENTED
|
destroy, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, refresh, setNodeText, setSource
public AccessManager(java.io.File source, java.util.List actionMappings) throws java.lang.Exception
source
- NOT YET DOCUMENTEDactionMappings
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic static AccessManager getInstance()
public static AccessManager getInstance(java.io.File source, java.util.List actionMappings)
source
- NOT YET DOCUMENTEDactionMappings
- NOT YET DOCUMENTEDpublic java.util.Collection getRoles()
public java.util.Collection getRoles(Roles.Role maxRole)
maxRole
- NOT YET DOCUMENTEDpublic ActionPath getActionPath(java.lang.String path)
path
- NOT YET DOCUMENTEDpublic GuardedPath getGuardedPath(java.lang.String path)
path
- NOT YET DOCUMENTEDpublic java.util.List getActionPaths()
public java.util.List getGuardedPaths()
public void addGuardedPath(GuardedPath gp)
gp
- The feature to be added to the GuardedPath attributepublic void deleteGuardedPath(GuardedPath gp)
gp
- NOT YET DOCUMENTEDpublic void alignActionsToGuardedPaths()
public void flush() throws java.lang.Exception
flush
in class AbstractConfigReader
java.lang.Exception
- NOT YET DOCUMENTEDpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line argumentsjava.lang.Exception
- NOT YET DOCUMENTEDpublic Roles.Role getRoleForPath(java.lang.String path)
path
- NOT YET DOCUMENTEDpublic GuardedPath matchGuardedPath(java.lang.String path)
path
- NOT YET DOCUMENTEDprotected static void prtln(java.lang.String s)
s
- NOT YET DOCUMENTED