public interface NSFileRights
| Modifier and Type | Field and Description |
|---|---|
static int |
TRUSTEE_ACCESSCONTROL
This bit is set if the trustee has access control rights to the
file, or access control rights in the directory.
|
static int |
TRUSTEE_CREATE
This bit is set if the trustee has create rights to the
file, or create rights in the corresponding directory.
|
static int |
TRUSTEE_DELETE
This bit is set if the trustee can delete the file or
directory.
|
static int |
TRUSTEE_MODIFY
This bit is set if the trustee can modify the status flags of the
corresponding file, or modify the status flags of files in the corresponding
directory.
|
static short |
TRUSTEE_NONE
This constant represents a trustee right value with no rights set.
|
static int |
TRUSTEE_READ
This bit is set if the trustee can read the file, or read
files in the corresponding directory.
|
static int |
TRUSTEE_SEARCH
This bit is set for file scan abilities.
|
static int |
TRUSTEE_SUPERVISOR
This bit is set if the trustee has supervisor rights to the corresponding
file, or supervisor rights to the corresponding directory and its
sub-files.
|
static int |
TRUSTEE_WRITE
This bit is set if the trustee can write to the file, or write
to files in the corresponding directory.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addRights(int addRights)
Adds the specified addRights to the current rights.
|
int |
getRights()
Returns all the rights an object has.
|
boolean |
hasRights(int checkRights)
Determines if current rights include all of the specified checkRights.
|
int |
removeRights(int removeRights)
Remove the specified removeRights from the current rights.
|
void |
setRights(int newRights)
Sets all the rights.
|
static final short TRUSTEE_NONE
static final int TRUSTEE_READ
static final int TRUSTEE_WRITE
static final int TRUSTEE_CREATE
static final int TRUSTEE_DELETE
static final int TRUSTEE_ACCESSCONTROL
static final int TRUSTEE_SEARCH
static final int TRUSTEE_MODIFY
static final int TRUSTEE_SUPERVISOR
int getRights()
throws SPIException
SPIExceptionvoid setRights(int newRights)
throws SPIException
newRights - - bit mask of the current privileges
Example: (TRUSTEE_READ | TRUSTEE_WRITE | TRUSTEE_CREATE)SPIExceptionboolean hasRights(int checkRights)
throws SPIException
checkRights - - the rights to check for - multiple rights may be or'ed together
Example: (TRUSTEE_READ | TRUSTEE_WRITE)SPIExceptionint addRights(int addRights)
throws SPIException
addRights - - the rights to add to the current rights - multiple rights may be or'ed together
Example: (TRUSTEE_READ | TRUSTEE_WRITE)SPIExceptionint removeRights(int removeRights)
throws SPIException
removeRights - - the rights to remove from current rights - multiple rights may be or'ed together
Example: (TRUSTEE_READ | TRUSTEE_WRITE)SPIException
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.