|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.jpkg.PathPermissions
public class PathPermissions
Simple data class to contain permissions for paths used in a PermissionsMap.
Constructor Summary | |
---|---|
PathPermissions(int mode,
boolean recursive)
Create a new permissions map which will be owned by the default user/group, e.g. |
|
PathPermissions(int uid,
int gid,
int mode,
boolean recursive)
Create a new permissions map with the given uid and gid owner. |
|
PathPermissions(String user,
String group,
int mode,
boolean recursive)
Create a new permissions map with the given user and group owner. |
Method Summary | |
---|---|
int |
getGid()
The group id to set as owner for this path. |
String |
getGroup()
The groupname to set as owner for this path. |
int |
getMode()
The file permission mode.. |
int |
getUid()
The user id to set as owner for this path. |
String |
getUser()
The username to set as owner for this path. |
boolean |
isRecursive()
Whether this permission map applies recursively down the path. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PathPermissions(int mode, boolean recursive)
mode
- the file permission mode, in represented octal, e.g. 0644.recursive
- whether to apply this permission recursively down the path.public PathPermissions(String user, String group, int mode, boolean recursive)
mode
- the file permission mode, in represented octal, e.g. 0644.recursive
- whether to apply this permission recursively down the path.public PathPermissions(int uid, int gid, int mode, boolean recursive)
mode
- the file permission mode, represented in octal, e.g. 0644.recursive
- whether to apply this permission recursively down the path.Method Detail |
---|
public String getUser()
public String getGroup()
public int getUid()
public int getGid()
public int getMode()
public boolean isRecursive()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |