|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsRights | +--com.novell.service.nds.NdsObjectRights
Provides definitions of the effective rights for objects, and methods for checking effective rights for an object.
NdsRights
Field Summary | |
static int |
DS_ENTRY_ADD
Allows a trustee to create new child objects subordinate to an object in the tree. |
static int |
DS_ENTRY_BROWSE
Allows a trustee to discover and view objects and their subordinates in the NDS tree. |
static int |
DS_ENTRY_DELETE
Allows a trustee to delete an object. |
static int |
DS_ENTRY_INHERIT_CTL
Allows a trustee to inherit the rights granted in the ACL, and exercise these rights on subordinate objects. |
static int |
DS_ENTRY_RENAME
Allows a trustee to change the name of an object. |
static int |
DS_ENTRY_SUPERVISOR
Grants a trustee all rights to an object and its attributes. |
Constructor Summary | |
NdsObjectRights(int rights)
Constructs an NdsObjectRights object and sets the object effective rights. |
Method Summary | |
boolean |
hasAdd()
Checks to see if an object has add rights. |
boolean |
hasBrowse()
Checks to see if an object has browse rights. |
boolean |
hasDelete()
Checks to see if an object has delete rights. |
boolean |
hasInheritCtl()
Checks to see if an object has inherit CTL rights. |
boolean |
hasRename()
Checks to see if an object has rename rights. |
boolean |
hasSupervisor()
Checks to see if an object has supervisor rights. |
Methods inherited from class com.novell.service.nds.NdsRights |
getRights |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int DS_ENTRY_BROWSE
(DS_ENTRY_BROWSE = 0x1)
public static final int DS_ENTRY_ADD
This right is available only for objects that can have subordinates, such as containers and volumes.
(DS_ENTRY_ADD = 0x2)
public static final int DS_ENTRY_DELETE
Container objects that have subordinates cannot be deleted until the subordinates are deleted. No property right for the object can block this right.
(DS_ENTRY_DELETE = 0x4)
public static final int DS_ENTRY_RENAME
The value of the Name property is changed; however, only the last part of the complete name can be changed with this right. Changing other parts of the name implies a move operation.
(DS_ENTRY_RENAME = 0x8)
public static final int DS_ENTRY_SUPERVISOR
All rights include object, property, file or directory rights. In the case of a directory, the right applies to all subordinate directories and files. The trustee can grant any right to another user and modify the Inherited Rights Filter. The Supervisor right cannot be filtered on a file or directory, but it can be filtered on an object or property.
(DS_ENTRY_SUPERVISOR = 0x10)
public static final int DS_ENTRY_INHERIT_CTL
(DS_ENTRY_INHERIT_CTL = 0x40)
Constructor Detail |
public NdsObjectRights(int rights)
rights
- The object effective rights as
defined by the above variables.Method Detail |
public boolean hasBrowse()
Calls getRights() for the current object and then checks the browse rights status.
NdsRights.getRights()
public boolean hasAdd()
Calls getRights() for the current object and then checks the add rights status.
NdsRights.getRights()
public boolean hasDelete()
Calls getRights() for the current object and then checks the delete rights status.
NdsRights.getRights()
public boolean hasRename()
Calls getRights() for the current object and then checks the rename rights status.
NdsRights.getRights()
public boolean hasSupervisor()
Calls getRights() for the current object and then checks the supervisor rights status.
NdsRights.getRights()
public boolean hasInheritCtl()
Calls getRights() for the current object and then checks the inherit CTL rights status.
NdsRights.getRights()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |