public class LDAPNSObject extends DefaultNSObject
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.
addedAttributeDefinitions, namespace, objectEntryaddedAttributes, attributes, classDefinition, deletedAttributes, modifiedAttributes, propertyListeners, revision, shadowSign| Constructor and Description |
|---|
LDAPNSObject(ObjectEntry objEntry,
java.util.Vector initialAttributes,
long rev)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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(ObjectAttribute objClassAttr)
Sets the object class attribute in the NSObject
|
addAttribute, addPropertyChangeListener, checkAdd, clearAddedAttribute, clearAddedAttributeDefinitions, clearDeletedAttribute, clearModifiedAttribute, deleteAttribute, getAddedAttributeDefinitions, getAddedAttributes, getAttribute, getAttribute, getAttribute, getAttributes, getClassDefinitions, getDeletedAttributes, getMandatoryAttributes, getModifiedAttributes, getObjectEntry, getOptionalAttributes, getRevision, getUnvaluedAttributes, isAddPossible, isAttributeMandatory, isAttributeOptional, isNamedBy, propertyChange, removePropertyChangeListener, setClassDefinitionclone, getShadowSign, setShadowSignpublic LDAPNSObject(ObjectEntry objEntry, java.util.Vector initialAttributes, long rev)
objEntry - The object entry representation.initialAttributes - A Vector of ObjectAttributes.rev - The object's revision number.public void initObjectClassAttribute(ObjectAttribute objClassAttr)
objClassAttr - The value of the "objectClass" attribute.public boolean addAuxiliaryClassDefinition(ClassDefinition classDef, ObjectAttribute[] attributes) throws NamespaceException
addAuxiliaryClassDefinition in class DefaultNSObjectclassDef - 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.
NamespaceException - No rights to add the class.public boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef) throws NamespaceException
deleteAuxiliaryClassDefinition in class DefaultNSObjectclassDef - The class definition to delete.NamespaceException - No rights to remove the class.public NSObject clone(ObjectEntry newIdentity) throws NamespaceException
clone in class DefaultNSObjectnewIdentity - The ObjectEntry whos identity is assumed.NamespaceException - NamespaceException.OBJECTTYPE_NOT_VALID is
thrown if the newIdentity's type is different from this.
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 ${TODAY} ${TSTAMP}.