com.novell.emframe.dev.rights
Class eDirRightsData

java.lang.Object
  extended bycom.novell.emframe.dev.rights.eDirRightsData
Direct Known Subclasses:
eDirObjectRightsData, eDirPropertyRightsData

public abstract class eDirRightsData
extends java.lang.Object

Abstract class for rights data objects to determine if the information is the same as when it was read or is "dirty" (meaning the information has changed and needs to be written back out to the object). Listeners can be added to be notified when the rights data object becomes "dirty" or changed.


Constructor Summary
eDirRightsData()
          Constructs an eDirRightsData object with no dirty listeners.
 
Method Summary
 void addDirtyListener(eDirDirtyListener listener)
          Add a "dirty" listener to this eDirRightsData object.
 void clearDirty()
          Clears the dirty flag.
abstract  int getRights()
          Abstract method to get the rights from this eDirRightsData object.
abstract  boolean hasInheritableRights()
          Abstract method to return whether the eDirRightsData includes inheritable rights.
 boolean isDirty()
          Returns whether this object is "dirty" or has changed.
 void removeDirtyListener(eDirDirtyListener listener)
          Remove a "dirty" listener to this eDirRightsData object.
 void setDirty()
          Set the dirty flag and notify the listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

eDirRightsData

public eDirRightsData()
Constructs an eDirRightsData object with no dirty listeners.

Method Detail

addDirtyListener

public void addDirtyListener(eDirDirtyListener listener)
Add a "dirty" listener to this eDirRightsData object. The dirty listener will be notified whenever the object is "dirty" or changed.

Parameters:
listener - Object extending the eDirDirtyListener interface to be notified when the object is dirty.
See Also:
removeDirtyListener(com.novell.emframe.dev.rights.eDirDirtyListener)

clearDirty

public void clearDirty()
Clears the dirty flag.

See Also:
setDirty(), isDirty()

getRights

public abstract int getRights()
Abstract method to get the rights from this eDirRightsData object.

Returns:
An int comprising of the merging of binary flags representing specific eDirectory rights.

hasInheritableRights

public abstract boolean hasInheritableRights()
Abstract method to return whether the eDirRightsData includes inheritable rights.

Returns:
boolean true if right is present, false otherwise

isDirty

public boolean isDirty()
Returns whether this object is "dirty" or has changed.

Returns:
boolean true if dirty, false if otherwise
See Also:
setDirty(), clearDirty()

removeDirtyListener

public void removeDirtyListener(eDirDirtyListener listener)
Remove a "dirty" listener to this eDirRightsData object.

Parameters:
listener - Object extending the eDirDirtyListener interface to be removed from the list of dirty listeners.
See Also:
addDirtyListener(com.novell.emframe.dev.rights.eDirDirtyListener)

setDirty

public void setDirty()
Set the dirty flag and notify the listeners.

See Also:
clearDirty(), isDirty()


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.