com.novell.admin.ns.nds
Class NDSObject

java.lang.Object
  |
  +--com.novell.admin.ns.NSObject
        |
        +--com.novell.admin.ns.DefaultNSObject
              |
              +--com.novell.admin.ns.nds.NDSObject
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class NDSObject
extends DefaultNSObject

Memory model for objects stored in a namespace.

This model allows applications to access and modify all elements associated with an NDS object. Use this class to retrieve elements such as attributes, flags, and schema definitions for an object.


Fields inherited from class com.novell.admin.ns.DefaultNSObject
addedAttributeDefinitions, namespace, objectEntry
 
Fields inherited from class com.novell.admin.ns.NSObject
addedAttributes, attributes, classDefinition, deletedAttributes, modifiedAttributes, propertyListeners, revision
 
Constructor Summary
protected NDSObject(com.novell.application.console.snapin.ObjectEntry objEntry, java.util.Vector initialAttributes, long rev)
          Constructor.
 
Method Summary
 boolean addAuxiliaryClassDefinition(ClassDefinition classDef, ObjectAttribute[] attributes)
          Adds an auxiliary class definition.
 NSObject clone(com.novell.application.console.snapin.ObjectEntry newIdentity)
          Creates an exact duplicate of this NSObject but gives it a new identity.
 boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef)
          Deletes an auxiliary class definition.
protected  void setClassDefinition()
          Sets the class definition for this object.
 
Methods inherited from class com.novell.admin.ns.DefaultNSObject
addAttribute, addPropertyChangeListener, checkAdd, clearAddedAttribute, clearAddedAttributeDefinitions, clearDeletedAttribute, clearModifiedAttribute, deleteAttribute, getAddedAttributeDefinitions, getAddedAttributes, getAttribute, getAttributes, getClassDefinitions, getDeletedAttributes, getMandatoryAttributes, getModifiedAttributes, getObjectEntry, getOptionalAttributes, getRevision, getUnvaluedAttributes, isAttributeMandatory, isAttributeOptional, isNamedBy, propertyChange, removePropertyChangeListener
 
Methods inherited from class com.novell.admin.ns.NSObject
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDSObject

protected NDSObject(com.novell.application.console.snapin.ObjectEntry objEntry,
                    java.util.Vector initialAttributes,
                    long rev)
Constructor.
Parameters:
objEntry - The object entry representation.
initialAttributes - A Vector of ObjectAttributes.
rev - The object's revision number.
Method Detail

addAuxiliaryClassDefinition

public boolean addAuxiliaryClassDefinition(ClassDefinition classDef,
                                           ObjectAttribute[] attributes)
                                    throws NamespaceException
Adds an auxiliary class definition.
Parameters:
classDef - The class definition to add.
Throws:
NamespaceException - No rights to add the class.
Overrides:
addAuxiliaryClassDefinition in class DefaultNSObject

deleteAuxiliaryClassDefinition

public boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef)
                                       throws NamespaceException
Deletes an auxiliary class definition.
Parameters:
classDef - The class definition to delete.
Throws:
NamespaceException - No rights to remove the class.
Overrides:
deleteAuxiliaryClassDefinition in class DefaultNSObject

clone

public NSObject clone(com.novell.application.console.snapin.ObjectEntry newIdentity)
               throws NamespaceException
Creates an exact duplicate of this NSObject but gives it a new identity.
Parameters:
newIdentity - The ObjectEntry whos identity is assumed.
Returns:
new NSObject.
Throws:
NamespaceException - NamespaceException.OBJECTTYPE_NOT_VALID is thrown if the newIdentity's type is different from this.
Overrides:
clone in class DefaultNSObject

setClassDefinition

protected void setClassDefinition()
Sets the class definition for this object.
Overrides:
setClassDefinition in class DefaultNSObject


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated December 17 2003 1746.