com.novell.emframe.dev.rights
Class eDirObjectRightsData

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

public class eDirObjectRightsData
extends eDirRightsData

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


Field Summary
static int RIGHTS_ADD
          Represents the right to add objects.
static int RIGHTS_BROWSE
          Represents the right to browse objects.
static int RIGHTS_DELETE
          Represents the right to delete objects.
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_RENAME
          Represents the right to rename objects.
static int RIGHTS_SUPERVISOR
          Represents the supervisor right, which encapsulates browse, add, delete, and rename.
 
Constructor Summary
eDirObjectRightsData(int rights)
          Constructs an eDirObjectRightsData object which represents the rights for a specific eDirectory object.
 
Method Summary
 int getRights()
          Gets the rights from this eDirObjectRightsData object.
 boolean hasAddRights()
          Returns whether the eDirObjectRightsData includes the add rights.
 boolean hasBrowseRights()
          Returns whether the eDirObjectRightsData includes browse rights.
 boolean hasDeleteRights()
          Returns whether the eDirObjectRightsData includes delete rights.
 boolean hasDynamicRights()
          Returns whether the eDirObjectRightsData includes dynamic rights.
 boolean hasInheritableRights()
          Returns whether the eDirObjectRightsData includes inheritable rights.
 boolean hasRenameRights()
          Returns whether the eDirObjectRightsData includes rename rights.
 boolean hasSupervisorRights()
          Returns whether the eDirObjectRightsData includes supervisor rights.
 void setAdd(boolean set)
          Set or clear whether the eDirObjectRightsData includes add rights.
 void setBrowse(boolean set)
          Set or clear whether the eDirObjectRightsData includes browse rights.
 void setDelete(boolean set)
          Set or clear whether the eDirObjectRightsData includes delete rights.
 void setDynamic(boolean set)
          Set or clear whether the eDirObjectRightsData includes dynamic rights.
 void setInheritable(boolean set)
          Set or clear whether the eDirObjectRightsData includes inheritable rights.
 void setRename(boolean set)
          Set or clear whether the eDirObjectRightsData includes rename rights.
 void setSupervisor(boolean set)
          Set or clear whether the eDirObjectRightsData includes supervisor 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_ADD

public static final int RIGHTS_ADD
Represents the right to add objects.

See Also:
Constant Field Values

RIGHTS_BROWSE

public static final int RIGHTS_BROWSE
Represents the right to browse objects.

See Also:
Constant Field Values

RIGHTS_DELETE

public static final int RIGHTS_DELETE
Represents the right to delete objects.

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_RENAME

public static final int RIGHTS_RENAME
Represents the right to rename objects.

See Also:
Constant Field Values

RIGHTS_SUPERVISOR

public static final int RIGHTS_SUPERVISOR
Represents the supervisor right, which encapsulates browse, add, delete, and rename.

See Also:
Constant Field Values
Constructor Detail

eDirObjectRightsData

public eDirObjectRightsData(int rights)
Constructs an eDirObjectRightsData object which represents the rights for a specific eDirectory object.

Parameters:
rights - An int comprising of the merging of binary flags representing specific eDirectory rights.
Method Detail

getRights

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

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

hasAddRights

public boolean hasAddRights()
Returns whether the eDirObjectRightsData includes the add rights.

Returns:
boolean true if right is present, false otherwise

hasBrowseRights

public boolean hasBrowseRights()
Returns whether the eDirObjectRightsData includes browse rights.

Returns:
boolean true if right is present, false otherwise

hasDeleteRights

public boolean hasDeleteRights()
Returns whether the eDirObjectRightsData includes delete rights.

Returns:
boolean true if right is present, false otherwise

hasDynamicRights

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

Returns:
boolean true if right is present, false otherwise

hasInheritableRights

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

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

hasRenameRights

public boolean hasRenameRights()
Returns whether the eDirObjectRightsData includes rename rights.

Returns:
boolean true if right is present, false otherwise

hasSupervisorRights

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

Returns:
boolean true if right is present, false otherwise

setAdd

public void setAdd(boolean set)
Set or clear whether the eDirObjectRightsData includes add rights.

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

setBrowse

public void setBrowse(boolean set)
Set or clear whether the eDirObjectRightsData includes browse rights.

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

setDelete

public void setDelete(boolean set)
Set or clear whether the eDirObjectRightsData includes delete rights.

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

setDynamic

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

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

setInheritable

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

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

setRename

public void setRename(boolean set)
Set or clear whether the eDirObjectRightsData includes rename rights.

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

setSupervisor

public void setSupervisor(boolean set)
Set or clear whether the eDirObjectRightsData includes supervisor 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.