com.novell.emframe.dev.rights
Class eDirPropertyRightsData

java.lang.Object
  extended bycom.novell.emframe.dev.rights.eDirRightsData
      extended bycom.novell.emframe.dev.rights.eDirPropertyRightsData

public class eDirPropertyRightsData
extends eDirRightsData

A class that provides encapsulation of eDirectory property rights on our rights pages.


Field Summary
static int RIGHTS_COMPARE
          Represents the right to compare properties.
static int RIGHTS_DYNAMIC
          Represents that rights are dynamic.
static int RIGHTS_INHERITABLE
          Represents that the specific right can be inherited by child objects.
static int RIGHTS_READ
          Represents the right to read properties.
static int RIGHTS_SELF
          Represents the right to your own properties.
static int RIGHTS_SUPERVISOR
          Represents the supervisor right, which encapsulates compare, read, write, and self.
static int RIGHTS_WRITE
          Represents the right to write properties.
 
Constructor Summary
eDirPropertyRightsData(int rights, boolean allProperties)
          Constructs an eDirPropertyRightsData object which represents the rights for a specific property object or for all properties of an eDirectory object.
 
Method Summary
 int getRights()
          Gets the rights from this eDirPropertyRightsData object.
 boolean hasCompareRights()
          Returns whether the eDirPropertyRightsData includes compare rights.
 boolean hasDynamicRights()
          Returns whether the eDirPropertyRightsData includes dynamic rights.
 boolean hasInheritableRights()
          Returns whether the eDirPropertyRightsData includes inheritable rights.
 boolean hasReadRights()
          Returns whether the eDirPropertyRightsData includes read rights.
 boolean hasSelfRights()
          Returns whether the eDirPropertyRightsData includes self rights.
 boolean hasSupervisorRights()
          Returns whether the eDirPropertyRightsData includes supervisor rights.
 boolean hasWriteRights()
          Returns whether the eDirPropertyRightsData includes write rights.
 void setCompare(boolean set)
          Set or clear whether the eDirPropertyRightsData includes compare rights.
 void setDynamic(boolean set)
          Set or clear whether the eDirPropertyRightsData includes dynamic rights.
 void setInheritable(boolean set)
          Set or clear whether the eDirPropertyRightsData includes inheritable rights.
 void setRead(boolean set)
          Set or clear whether the eDirPropertyRightsData includes read rights.
 void setSelf(boolean set)
          Set or clear whether the eDirPropertyRightsData includes self rights.
 void setSupervisor(boolean set)
          Set or clear whether the eDirPropertyRightsData includes supervisor rights.
 void setWrite(boolean set)
          Set or clear whether the eDirPropertyRightsData includes write rights.
 
Methods inherited from class com.novell.emframe.dev.rights.eDirRightsData
addDirtyListener, clearDirty, isDirty, removeDirtyListener, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHTS_COMPARE

public static final int RIGHTS_COMPARE
Represents the right to compare properties.

See Also:
Constant Field Values

RIGHTS_DYNAMIC

public static final int RIGHTS_DYNAMIC
Represents that rights are dynamic.

See Also:
Constant Field Values

RIGHTS_INHERITABLE

public static final int RIGHTS_INHERITABLE
Represents that the specific right can be inherited by child objects.

See Also:
Constant Field Values

RIGHTS_READ

public static final int RIGHTS_READ
Represents the right to read properties.

See Also:
Constant Field Values

RIGHTS_SELF

public static final int RIGHTS_SELF
Represents the right to your own properties.

See Also:
Constant Field Values

RIGHTS_SUPERVISOR

public static final int RIGHTS_SUPERVISOR
Represents the supervisor right, which encapsulates compare, read, write, and self.

See Also:
Constant Field Values

RIGHTS_WRITE

public static final int RIGHTS_WRITE
Represents the right to write properties.

See Also:
Constant Field Values
Constructor Detail

eDirPropertyRightsData

public eDirPropertyRightsData(int rights,
                              boolean allProperties)
Constructs an eDirPropertyRightsData object which represents the rights for a specific property object or for all properties of an eDirectory object.

Parameters:
rights - An int comprising of the merging of binary flags representing specific eDirectory rights
allProperties - true if the rights are for all properties on this object, false if otherwise
Method Detail

getRights

public int getRights()
Gets the rights from this eDirPropertyRightsData object.

Specified by:
getRights in class eDirRightsData
Returns:
An int comprising of the merging of binary flags representing specific eDirectory rights.

hasCompareRights

public boolean hasCompareRights()
Returns whether the eDirPropertyRightsData includes compare rights.

Returns:
boolean true if right is present, false otherwise

hasDynamicRights

public boolean hasDynamicRights()
Returns whether the eDirPropertyRightsData includes dynamic rights.

Returns:
boolean true if right is present, false otherwise

hasInheritableRights

public boolean hasInheritableRights()
Returns whether the eDirPropertyRightsData includes inheritable rights.

Specified by:
hasInheritableRights in class eDirRightsData
Returns:
boolean true if right is present, false otherwise

hasReadRights

public boolean hasReadRights()
Returns whether the eDirPropertyRightsData includes read rights.

Returns:
boolean true if right is present, false otherwise

hasSelfRights

public boolean hasSelfRights()
Returns whether the eDirPropertyRightsData includes self rights.

Returns:
boolean true if right is present, false otherwise

hasSupervisorRights

public boolean hasSupervisorRights()
Returns whether the eDirPropertyRightsData includes supervisor rights.

Returns:
boolean true if right is present, false otherwise

hasWriteRights

public boolean hasWriteRights()
Returns whether the eDirPropertyRightsData includes write rights.

Returns:
boolean true if right is present, false otherwise

setCompare

public void setCompare(boolean set)
Set or clear whether the eDirPropertyRightsData includes compare rights.

Parameters:
set - true if right is present, false otherwise

setDynamic

public void setDynamic(boolean set)
Set or clear whether the eDirPropertyRightsData includes dynamic rights.

Parameters:
set - true if right is present, false otherwise

setInheritable

public void setInheritable(boolean set)
Set or clear whether the eDirPropertyRightsData includes inheritable rights.

Parameters:
set - true if right is present, false otherwise

setRead

public void setRead(boolean set)
Set or clear whether the eDirPropertyRightsData includes read rights.

Parameters:
set - true if right is present, false otherwise

setSelf

public void setSelf(boolean set)
Set or clear whether the eDirPropertyRightsData includes self rights.

Parameters:
set - true if right is present, false otherwise

setSupervisor

public void setSupervisor(boolean set)
Set or clear whether the eDirPropertyRightsData includes supervisor rights.

Parameters:
set - true if right is present, false otherwise

setWrite

public void setWrite(boolean set)
Set or clear whether the eDirPropertyRightsData includes write rights.

Parameters:
set - true if right is present, false otherwise


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 September 2 2004 0111.