com.novell.admin.ns.ldap
Class LDAPNSObject

java.lang.Object
  extended bycom.novell.admin.ns.NSObject
      extended bycom.novell.admin.ns.DefaultNSObject
          extended bycom.novell.admin.ns.ldap.LDAPNSObject
All Implemented Interfaces:
java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class LDAPNSObject
extends DefaultNSObject

Memory model for objects stored in a namespace.

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

See Also:
Serialized Form

Field Summary
 
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
LDAPNSObject(ObjectEntry objEntry, java.util.Vector initialAttributes, long rev)
          Constructor.
 
Method Summary
 boolean addAuxiliaryClassDefinition(ClassDefinition classDef, ObjectAttribute[] attributes)
          Adds an auxiliary class definition.
 NSObject clone(ObjectEntry newIdentity)
          Creates an exact duplicate of this NSObject but gives it a new identity.
 boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef)
          Deletes an auxiliary class definition.
 void initObjectClassAttribute(LDAPObjectAttribute objClassAttr)
          Sets the object class attribute in the NSObject
 
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, setClassDefinition
 
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

LDAPNSObject

public LDAPNSObject(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.

Overrides:
addAuxiliaryClassDefinition in class DefaultNSObject
Parameters:
classDef - The class definition to add.
attributes - The attributes to add.

The only attributes that will be added are those that are not currently valued. If attributes are valued, please modify the value instead of trying to add the attribute.

Returns:
True if all attributes where added, false otherwise.
Throws:
NamespaceException - No rights to add the class.

clone

public NSObject clone(ObjectEntry newIdentity)
               throws NamespaceException
Creates an exact duplicate of this NSObject but gives it a new identity.

Overrides:
clone in class DefaultNSObject
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.

deleteAuxiliaryClassDefinition

public boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef)
                                       throws NamespaceException
Deletes an auxiliary class definition.

Overrides:
deleteAuxiliaryClassDefinition in class DefaultNSObject
Parameters:
classDef - The class definition to delete.
Returns:
True if the class got deleted, false otherwize.
Throws:
NamespaceException - No rights to remove the class.

initObjectClassAttribute

public void initObjectClassAttribute(LDAPObjectAttribute objClassAttr)
Sets the object class attribute in the NSObject

Parameters:
objClassAttr - The value of the "objectClass" attribute.


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.