UserClassFilePermissions
public interface ConfigurableUserClassFilePermissions extends UserClassFilePermissions
ConfigurableFilePermissions
).
For details on the actual permissions see UserClassFilePermissions
.
Modifier and Type | Method | Description |
---|---|---|
void |
setExecute(boolean execute) |
Enables or disables execute access to a file or directory for a certain class of users.
|
void |
setRead(boolean read) |
Enables or disables read access to a file or directory for a certain class of users.
|
void |
setWrite(boolean write) |
Enables or disables write access to a file or directory for a certain class of users.
|
getExecute, getRead, getWrite
void setRead(boolean read)
Read access grants the capability to view the contents of a file, or to list the contents of a directory.
void setWrite(boolean write)
Write access grants the capability to modify or remove the contents of a file, or to add or remove files to/from a directory.
void setExecute(boolean execute)
Execute access grant the capability to run a file as a program; executing a directory doesn't really make sense, it's more like a traverse permission; for example, a user must have 'execute' access to the 'bin' directory in order to execute the 'ls' or 'cd' commands.