|
|||||||||
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.NdsAttributeRights
Provides definitions of the effective rights for attributes, and methods for checking attribute effective rights.
NdsRights
Field Summary | |
static int |
DS_ATTR_COMPARE
Allows a trustee to compare a value with an attribute's value. |
static int |
DS_ATTR_INHERIT_CTL
Allows a trustee to inherit the rights granted in the ACL and exercise these attribute rights on subordinate objects. |
static int |
DS_ATTR_READ
Allows a trustee to read an attribute. |
static int |
DS_ATTR_SELF
Allows a trustee to add or delete its name as an attribute value on those attributes that take object names as their values. |
static int |
DS_ATTR_SUPERVISOR
Gives a trustee all rights to the object's attributes. |
static int |
DS_ATTR_WRITE
Allows a trustee to add, delete, or modify an attribute value. |
Constructor Summary | |
NdsAttributeRights(javax.naming.directory.Attribute attr)
Constructs an NdsAttributeRights object and sets the attribute name and associated effective rights. |
|
NdsAttributeRights(int rights)
Constructs an NdsAttributeRights object and sets the attribute effective rights. |
Method Summary | |
java.lang.String |
getAttrName()
Returns the name of the current attribute as a String. |
boolean |
hasCompare()
Checks to see if an attribute has Compare rights. |
boolean |
hasInheritCtl()
Checks to see if an attribute has Inherit CTL rights. |
boolean |
hasRead()
Checks to see if an attribute has Read rights. |
boolean |
hasSelf()
Checks to see if an attribute has Self rights. |
boolean |
hasSupervisor()
Checks to see if an attribute has Supervisor rights. |
boolean |
hasWrite()
Checks to see if an attribute has Write 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_ATTR_COMPARE
This allows the trustee to see if the attribute contains the value without having rights to see what the value is.
(DS_ATTR_COMPARE = 0x1)
public static final int DS_ATTR_READ
This right confers the Compare right as well as the Read right.
(DS_ATTR_READ = 0x2)
public static final int DS_ATTR_WRITE
This right also gives the trustee the Self (Add or Delete Self) right.
(DS_ATTR_WRITE = 0x4)
public static final int DS_ATTR_SELF
(DS_ATTR_SELF = 0x8)
public static final int DS_ATTR_SUPERVISOR
(DS_ATTR_SUPERVISOR = 0x20)
public static final int DS_ATTR_INHERIT_CTL
(DS_ATTR_INHERIT_CTL = 0x40)
Constructor Detail |
public NdsAttributeRights(int rights)
rights
- The attribute effective rights as
defined by the above variables.public NdsAttributeRights(javax.naming.directory.Attribute attr) throws com.novell.service.jncp.NSIException
attr
- The Attribute for which to get the
attribute effective rights.Method Detail |
public java.lang.String getAttrName()
public boolean hasCompare()
Calls getRights() for the current attribute and then checks the Compare rights status.
NdsRights.getRights()
public boolean hasRead()
Calls getRights() for the current attribute and then checks the Read rights status.
NdsRights.getRights()
public boolean hasWrite()
Calls getRights() for the current attribute and then checks the Write rights status.
NdsRights.getRights()
public boolean hasSelf()
Calls getRights() for the current attribute and then checks the Self rights status.
NdsRights.getRights()
public boolean hasSupervisor()
Calls getRights() for the current attribute and then checks the Supervisor rights status.
NdsRights.getRights()
public boolean hasInheritCtl()
Calls getRights() for the current attribute 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 |