ConfigurableFilePermissions@Incubating public interface FilePermissions
Follows the style of Unix file permissions, based on the concept of file ownership.
Permissions are grouped into 3 distinct categories (representing different classes of users):
For further details on specific permission for a certain class of user see UserClassFilePermissions, but in essence
each class of users can have the right to READ, WRITE or EXECUTE files.
The default permissions used differ between files and directories and are as follows:
| Modifier and Type | Method | Description |
|---|---|---|
UserClassFilePermissions |
getGroup() |
Describes what actions a user, who is a member of the group that the file/directory belongs to,
can perform on the file/directory.
|
UserClassFilePermissions |
getOther() |
Describes what actions all other users (non-owner, non-group) can perform on the file/directory.
|
UserClassFilePermissions |
getUser() |
Describes what actions the owner of the file can perform on the file/directory.
|
int |
toUnixNumeric() |
Converts the permissions for the various user groups to a numeric Unix permission.
|
UserClassFilePermissions getUser()
For further details about possible actions see UserClassFilePermissions.
UserClassFilePermissions getGroup()
For further details about possible actions see UserClassFilePermissions.
UserClassFilePermissions getOther()
For further details about possible actions see UserClassFilePermissions.
int toUnixNumeric()
ConfigurableFilePermissions.unix(String) for details.