|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.admin.ns.NSObject
Memory model for objects stored in a namespace.
This model is provided for applications to access and modify all elements associated with a directory object. Elements such as attributes, flags, and schema for an object should be retrieved using this class.
Field Summary | |
protected java.util.Vector |
addedAttributes
Running list of newly valued attributes. |
protected java.util.Hashtable |
attributes
Current list of mandatory and optional attributes. |
protected java.util.Vector |
classDefinition
Class definition |
protected java.util.Vector |
deletedAttributes
Running list of deleted attributes. |
protected java.util.Vector |
modifiedAttributes
Running list of modified attributes. |
protected java.util.Vector |
propertyListeners
List of registered Property Change Listeners |
protected long |
revision
Revision of the object at the time of the directory read. |
Constructor Summary | |
NSObject()
|
Method Summary | |
abstract void |
addAttribute(ObjectAttribute attr)
Adds a newly valued attribute to the object. |
abstract boolean |
addAuxiliaryClassDefinition(ClassDefinition classDef,
ObjectAttribute[] attrs)
Adds an auxiliary class Definition. |
abstract void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add this listener to the listener list for this object. |
abstract void |
clearAddedAttribute(java.lang.String attrName)
Removes an attribute from the attributes to add. |
abstract void |
clearDeletedAttribute(java.lang.String attrName)
Removes an attribute from the attributes to delete. |
abstract void |
clearModifiedAttribute(java.lang.String attrName)
Removes an attribute from the attributes to modify. |
java.lang.Object |
clone()
Creates an exact duplicate of this NSObject but discards all change info. |
abstract NSObject |
clone(com.novell.application.console.snapin.ObjectEntry newIdentity)
Creates an exact duplicate of this NSObject but give it a new identity. |
abstract boolean |
deleteAttribute(java.lang.String attrName)
Deletes a currently valued attribute of this object. |
abstract boolean |
deleteAuxiliaryClassDefinition(ClassDefinition classDef)
Deletes an auxiliary class Definition. |
abstract java.lang.String[] |
getAddedAttributes()
Retrieves the attributes that have been added to the object. |
abstract ObjectAttribute |
getAttribute(java.lang.String attrName)
Retrieves a specific attribute of this object. |
abstract java.lang.String[] |
getAttributes()
Retrieves the names of the valued attributes of the object. |
abstract ClassDefinition[] |
getClassDefinitions()
Retrieves the schema class definition for the object. |
abstract java.lang.String[] |
getDeletedAttributes()
Retrieves the attributes that have been deleted from the object. |
abstract java.lang.String[] |
getMandatoryAttributes()
Retrieves the mandatory attributes of the object. |
abstract java.lang.String[] |
getModifiedAttributes()
Retrieves the attributes that have been modified in the object. |
abstract com.novell.application.console.snapin.ObjectEntry |
getObjectEntry()
Retrieves the object entry representation of the object. |
abstract java.lang.String[] |
getOptionalAttributes()
Retrieves the optional attributes of the object. |
abstract long |
getRevision()
Retrieves the revision of the object. |
abstract java.lang.String[] |
getUnvaluedAttributes()
Retrieves the names of the attributes that are not valued. |
abstract boolean |
isAttributeMandatory(java.lang.String attrName)
Checks to see if a particular attribute is mandatory for the Object Entry's schema class or any associated auxiliary classes. |
abstract boolean |
isAttributeOptional(java.lang.String attrName)
Checks to see if a particular attribute is optional for the Object Entry's schema class or any associated auxiliary classes. |
abstract boolean |
isNamedBy(java.lang.String attrName)
Checks to see if a particular attribute is a naming for the Object Entry's schema class or any associated auxiliary classes. |
abstract void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove this listener from the listener list for this object. |
protected abstract void |
setClassDefinition()
Sets the class definition for this object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected long revision
protected java.util.Vector classDefinition
protected java.util.Hashtable attributes
protected java.util.Vector addedAttributes
protected java.util.Vector deletedAttributes
protected java.util.Vector modifiedAttributes
protected java.util.Vector propertyListeners
Constructor Detail |
public NSObject()
Method Detail |
public abstract void addAttribute(ObjectAttribute attr) throws NamespaceException
attr
- The valued attribute to be added.public abstract ObjectAttribute getAttribute(java.lang.String attrName)
attrName
- The name of the attribute that is to be retrieved.public abstract boolean deleteAttribute(java.lang.String attrName) throws NamespaceException
attr
- The attribute to be deleted from the object.public abstract java.lang.String[] getAddedAttributes()
public abstract java.lang.String[] getAttributes()
public abstract java.lang.String[] getMandatoryAttributes()
public abstract java.lang.String[] getOptionalAttributes()
public abstract java.lang.String[] getUnvaluedAttributes()
public abstract ClassDefinition[] getClassDefinitions()
public abstract java.lang.String[] getDeletedAttributes()
public abstract java.lang.String[] getModifiedAttributes()
public abstract com.novell.application.console.snapin.ObjectEntry getObjectEntry()
public abstract long getRevision()
public abstract NSObject clone(com.novell.application.console.snapin.ObjectEntry newIdentity) throws NamespaceException
newIdentity
- The ObjectEntry whos identity is assumed.public java.lang.Object clone()
public abstract void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to be added.public abstract void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to be removed.public abstract void clearAddedAttribute(java.lang.String attrName)
attr
- The valued attribute to be removed from the add list.public abstract void clearDeletedAttribute(java.lang.String attrName)
attrName
- The valued attribute to be removed from the delete list.public abstract void clearModifiedAttribute(java.lang.String attrName)
attrName
- The valued attribute to be removed from the modify list.public abstract boolean isAttributeMandatory(java.lang.String attrName)
attrName
- Name of the attribute to look for.public abstract boolean isAttributeOptional(java.lang.String attrName)
attrName
- Name of the attribute to look for.public abstract boolean isNamedBy(java.lang.String attrName)
attrName
- Name of the attribute to look for.public abstract boolean addAuxiliaryClassDefinition(ClassDefinition classDef, ObjectAttribute[] attrs) throws NamespaceException
classDef
- The class definition to add.attrs
- The attributes to add.public abstract boolean deleteAuxiliaryClassDefinition(ClassDefinition classDef) throws NamespaceException
classDef
- The class definition to add.protected abstract void setClassDefinition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |