|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.jpkg.PermissionsMap
public class PermissionsMap
Maps arbitrary permissions onto associated paths.
Field Summary | |
---|---|
(package private) Map<String,PathPermissions> |
_permissions
Mapping of path to the permissions for that path. |
Constructor Summary | |
---|---|
PermissionsMap()
|
Method Summary | |
---|---|
void |
addPathPermissions(String path,
PathPermissions permissions)
Add a PathPermissions object associated with a given path. |
PathPermissions |
getPathPermissions(String path)
Return a PathPermissions object for the supplied path if it exists, null otherwise. |
Set<Map.Entry<String,PathPermissions>> |
getPermissions()
Return a Set of Map.Entry objects holding paths and the PathPermissions object
associated with that path. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Map<String,PathPermissions> _permissions
Constructor Detail |
---|
public PermissionsMap()
Method Detail |
---|
public void addPathPermissions(String path, PathPermissions permissions)
PathPermissions
object associated with a given path. This method guarantees that there
will only be one PathPermissions
object applied to a given path. Calling this method more than
once for the same path will replace any permissions already set for that path. The path will
be normalized.
InvalidPathException
- If the supplied path is invalid.public Set<Map.Entry<String,PathPermissions>> getPermissions()
Set
of Map.Entry
objects holding paths and the PathPermissions
object
associated with that path.
public PathPermissions getPathPermissions(String path)
PathPermissions
object for the supplied path if it exists, null otherwise.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |