Package org.apache.commons.vfs2.util
Class PosixPermissions
java.lang.Object
org.apache.commons.vfs2.util.PosixPermissions
- Direct Known Subclasses:
- UserIsOwnerPosixPermissions
Unix permissions.
- Since:
- 2.1
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionPosixPermissions(int permissions, boolean isOwner, boolean isInGroup) Creates a new PosixPermissions object.
- 
Method SummaryModifier and TypeMethodDescriptionintGets permissions.booleanGets whether the permissions are executable.booleanGets whether the permissions are readable.booleanGets whether the permissions are writable.intmakeExecutable(boolean executable, boolean ownerOnly) Creates new permissions based on these permissions.makeReadable(boolean readable, boolean ownerOnly) Creates new permissions based on these permissions.makeWritable(boolean writable, boolean ownerOnly) Creates new permissions based on these permissions.
- 
Constructor Details- 
PosixPermissionsCreates a new PosixPermissions object.- Parameters:
- permissions- The permissions
- isOwner- true if the user is the owner of the file
- isInGroup- true if the user is a group owner of the file
 
 
- 
- 
Method Details- 
getPermissionsGets permissions.- Returns:
- permissions.
 
- 
isExecutableGets whether the permissions are executable.- Returns:
- whether the permissions are executable.
 
- 
isReadableGets whether the permissions are readable.- Returns:
- whether the permissions are readable.
 
- 
isWritableGets whether the permissions are writable.- Returns:
- whether the permissions are writable.
 
- 
makeExecutableCreates new permissions based on these permissions.- Parameters:
- executable- Whether the new permissions should be readable.
- ownerOnly- Whether the new permissions are only for the owner.
- Returns:
- the new permissions.
 
- 
makeReadableCreates new permissions based on these permissions.- Parameters:
- readable- Whether the new permissions should be readable.
- ownerOnly- Whether the new permissions are only for the owner.
- Returns:
- the new permissions.
 
- 
makeWritableCreates new permissions based on these permissions.- Parameters:
- writable- Whether the new permissions should be readable.
- ownerOnly- Whether the new permissions are only for the owner.
- Returns:
- the new permissions.
 
 
-