|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFilePermissionsService
Service used to get and set the permissions of a file. The
getCapabilities(IHostFile)
method must be implemented to tell
clients what kinds of permission services are actually available on a
concrete implementation.
Field Summary | |
---|---|
static int |
FS_CAN_GET_ALL
|
static int |
FS_CAN_GET_GROUP
|
static int |
FS_CAN_GET_OWNER
|
static int |
FS_CAN_GET_PERMISSIONS
|
static int |
FS_CAN_SET_ALL
|
static int |
FS_CAN_SET_GROUP
|
static int |
FS_CAN_SET_OWNER
|
static int |
FS_CAN_SET_PERMISSIONS
|
Method Summary | |
---|---|
int |
getCapabilities(IHostFile file)
Returns the capabilities of this file permissions service for the corresponding file. |
IHostFilePermissions |
getFilePermissions(IHostFile file,
IProgressMonitor monitor)
Gets the permissions for a file including the user and group owner |
void |
setFilePermissions(IHostFile file,
IHostFilePermissions permissions,
IProgressMonitor monitor)
Sets the permissions for a file including the user and group owner as specified in the permissions |
Field Detail |
---|
static final int FS_CAN_GET_OWNER
static final int FS_CAN_GET_GROUP
static final int FS_CAN_GET_PERMISSIONS
static final int FS_CAN_SET_OWNER
static final int FS_CAN_SET_GROUP
static final int FS_CAN_SET_PERMISSIONS
static final int FS_CAN_GET_ALL
static final int FS_CAN_SET_ALL
Method Detail |
---|
IHostFilePermissions getFilePermissions(IHostFile file, IProgressMonitor monitor) throws SystemMessageException
file
- the remote filemonitor
- the monitor for this potentially long running operation
SystemMessageException
- if an error occurs.
Typically this would be one of those in the RemoteFileException family.void setFilePermissions(IHostFile file, IHostFilePermissions permissions, IProgressMonitor monitor) throws SystemMessageException
file
- the remote filepermissions
- the new permissions for this filemonitor
- the monitor for this potentially long running operation
SystemMessageException
- if an error occurs.
Typically this would be one of those in the RemoteFileException family.int getCapabilities(IHostFile file)
file
- the remote file
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |