|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes a namespace service for object administration.
| Method Summary | |
void |
create(NSObject obj)
Creates a new object in the namespace. |
NSObject |
createNSObject(com.novell.application.console.snapin.ObjectEntry objEntry,
java.util.Vector attributes)
Creates a new NSObject. |
NSObject |
createNSObject(com.novell.application.console.snapin.ObjectEntry objEntry,
java.util.Vector attributes,
long revision)
Deprecated. Please use createNSObject(ObjectEntry objEntry, Vector attributes). |
com.novell.application.console.snapin.ObjectEntry |
createObjectEntry(com.novell.application.console.snapin.ObjectEntry parent,
java.lang.String child,
java.lang.String className)
Creates an ObjectEntry for a child object that does not exist in the namespace. |
void |
delete(com.novell.application.console.snapin.ObjectEntry obj)
Deletes an object from the namespace. |
boolean |
doesExist(com.novell.application.console.snapin.ObjectEntry parentEntry,
java.lang.String objStr)
Checks to see if an object exists in the namespace. |
void |
freeDetails(java.lang.Object key)
Removes an NSObject from the cache. |
AttributeDefinition |
getAttributeDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj,
java.lang.String attrName)
Returns an attribute definition for a specific attribute in a specific context. |
ObjectAttribute[] |
getAttributes(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.String[] attrStrings)
Reads an existing object in the namespace and returns an array containing the object's attributes, including their values. |
com.novell.application.console.snapin.ObjectEntryEnumeration |
getChildren(com.novell.application.console.snapin.ObjectEntry obj)
Returns an ObjectEntry's child objects. |
com.novell.application.console.snapin.ObjectEntryEnumeration |
getChildren(com.novell.application.console.snapin.ObjectEntry obj,
com.novell.application.console.snapin.ResultModifier modifiers)
Returns an ObjectEntry's child objects according to a filtered request. |
ClassDefinition |
getClassDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj,
java.lang.String className)
Reads the namespace schema and returns a class definition for a specific class. |
NSObject |
getDetails(com.novell.application.console.snapin.ObjectEntry obj)
Reads the details for an existing object and returns an NSObject for that object. |
NSObject |
getDetails(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.Object key)
Reads the details for an existing object and returns an NSObject for that object. |
java.lang.String |
getFullName(com.novell.application.console.snapin.ObjectEntry objEntry)
Returns the full name or path of an object. |
int |
getMaxNameLength(com.novell.application.console.snapin.ObjectEntry parentOE,
AttributeDefinition attrDef)
Returns the maximum character length for a new object name, depending on the namespace. |
Rights |
getObjectEffectiveRights(com.novell.application.console.snapin.ObjectEntry objForInquire,
com.novell.application.console.snapin.ObjectEntry trustee)
Returns the effective rights of an object to a target object. |
com.novell.application.console.snapin.ObjectEntry |
getObjectEntry(com.novell.application.console.snapin.ObjectEntry parentEntry,
java.lang.String objEntryStr)
Returns an ObjectEntry for a valid object name. |
com.novell.application.console.snapin.ObjectEntry |
getObjectEntry(java.lang.String objEntryStr)
Returns an ObjectEntry for a valid object name. |
com.novell.application.console.snapin.ObjectType |
getObjectType(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.String className)
Returns an object type for the given object entry. |
com.novell.application.console.snapin.ObjectType[] |
getObjectTypes(com.novell.application.console.snapin.ObjectEntry obj)
Returns all of the possible object types for this namespace. |
Rights[] |
getPropertyEffectiveRights(com.novell.application.console.snapin.ObjectEntry objForInquire,
com.novell.application.console.snapin.ObjectEntry trustee,
java.lang.String[] attrNames)
Returns the effective rights of an object to a target object's attributes. |
SchemaDefinition |
getSchemaDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj)
Returns the schema definition from a given context. |
com.novell.application.console.snapin.ObjectEntry |
move(com.novell.application.console.snapin.ObjectEntry objToMove,
com.novell.application.console.snapin.ObjectEntry destination)
Moves an object to another location in the namespace. |
com.novell.application.console.snapin.ObjectEntry |
rename(com.novell.application.console.snapin.ObjectEntry fromObjEntry,
java.lang.String newName)
Renames an object. |
void |
setAttributes(com.novell.application.console.snapin.ObjectEntry obj,
ObjectAttribute[] attributes)
Writes attributes, including values, to an existing object. |
void |
update(NSObject obj)
Writes object changes to the namespace. |
| Method Detail |
public void create(NSObject obj)
throws SPIException,
com.novell.application.console.snapin.SnapinVetoException
obj - The object to create. This object must be complete
with its attributes and values.public NSObject createNSObject(com.novell.application.console.snapin.ObjectEntry objEntry,
java.util.Vector attributes)
throws NamespaceException
Use this method to create an NSObject when the object does not exist in the namespace. Then use the create method to write the object to the namespace.
objEntry - The object entry representing the new NSObject.attributes - Vector of ObjectAttributes for the object.public NSObject createNSObject(com.novell.application.console.snapin.ObjectEntry objEntry,
java.util.Vector attributes,
long revision)
throws NamespaceException
objEntry - The object entry representation.attributes - Vector of ObjectAttributes.revision - Always pass 0 here since there is no previous revision.public com.novell.application.console.snapin.ObjectEntry createObjectEntry(com.novell.application.console.snapin.ObjectEntry parent,
java.lang.String child,
java.lang.String className)
throws NamespaceException,
SPIException
parent - The ObjectEntry of the child's parent.child - The name of the child object.className - The class type of the child object.public void delete(com.novell.application.console.snapin.ObjectEntry obj)
throws SPIException,
com.novell.application.console.snapin.SnapinVetoException
obj - The object entry representing the object to delete.public boolean doesExist(com.novell.application.console.snapin.ObjectEntry parentEntry,
java.lang.String objStr)
throws SPIException
parentEntry - The parent of the object being checked.objStr - A string representing the object being checked.public int getMaxNameLength(com.novell.application.console.snapin.ObjectEntry parentOE,
AttributeDefinition attrDef)
throws SPIException
This method is used most often before creating a new object to determine a valid length of the object's name.
Some namespaces may limit the number of characters in an object name. For example, NDS limits a full distinguished name, including delimiters, to 256 characters.
parentOE - The parent under which the object will be created.attrDef - The attribute definition of the naming attribute for the
object to be created.public com.novell.application.console.snapin.ObjectType[] getObjectTypes(com.novell.application.console.snapin.ObjectEntry obj)
throws SPIException
obj - The context in the namespace from which to get the object types.public com.novell.application.console.snapin.ObjectType getObjectType(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.String className)
throws SPIException
obj - The context for which to get the object type.className - The name of the class for which to get the object type.public ObjectAttribute[] getAttributes(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.String[] attrStrings)
throws SPIException,
NamespaceException
obj - The object for which to obtain attributes.attrStrings - The object attributes to obtain.public void setAttributes(com.novell.application.console.snapin.ObjectEntry obj,
ObjectAttribute[] attributes)
throws SPIException
obj - The object to which the attributes are being written.attribute - The attributes being written.public ClassDefinition getClassDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj,
java.lang.String className)
throws SPIException,
NamespaceException
ctxObj - The context from which the class definition is being retrieved.className - The name of the class whose definition is being retrieved.public AttributeDefinition getAttributeDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj,
java.lang.String attrName)
throws SPIException,
NamespaceException
ctxObj - The context from which the attribute definition is being retrieved.attrName - The name of the attribute whose definition is being retrieved.public SchemaDefinition getSchemaDefinition(com.novell.application.console.snapin.ObjectEntry ctxObj)
throws SPIException
ctxObj - The context from which the schema definition is being retrieved.public com.novell.application.console.snapin.ObjectEntryEnumeration getChildren(com.novell.application.console.snapin.ObjectEntry obj)
throws SPIException
obj - The ObjectEntry for which to return the child objects.public com.novell.application.console.snapin.ObjectEntryEnumeration getChildren(com.novell.application.console.snapin.ObjectEntry obj,
com.novell.application.console.snapin.ResultModifier modifiers)
throws SPIException
The modifiers parameter by default allows the objects to be returned by name and object type.
obj - The ObjectEntry for which to return the child objects.modifiers - Determines how the child list is built.public Rights getObjectEffectiveRights(com.novell.application.console.snapin.ObjectEntry objForInquire,
com.novell.application.console.snapin.ObjectEntry trustee)
throws SPIException
objForInquire - The target object.trustee - The trustee for the target object.public Rights[] getPropertyEffectiveRights(com.novell.application.console.snapin.ObjectEntry objForInquire,
com.novell.application.console.snapin.ObjectEntry trustee,
java.lang.String[] attrNames)
throws SPIException
objForInquire - The target object whose attributes are being checked.trustee - The trustee for the target object.attrNames - The names of the attributes on the target object.public NSObject getDetails(com.novell.application.console.snapin.ObjectEntry obj)
throws SPIException
obj - The ObjectEntry for which to return the NSObject.public NSObject getDetails(com.novell.application.console.snapin.ObjectEntry obj,
java.lang.Object key)
throws SPIException
This method provides the option of caching the NSObjects using the "key" parameter. This allows the NSObject to be retrieved from the cache rather than searching the namespace.
obj - The ObjectEntry for which to return the NSObject.key - The key into the hash table where the NSObject is stored.public void freeDetails(java.lang.Object key)
key - The key into the hash table where the NSObject is stored.public java.lang.String getFullName(com.novell.application.console.snapin.ObjectEntry objEntry)
objEntry - The object whose name is being retrieved.public com.novell.application.console.snapin.ObjectEntry getObjectEntry(java.lang.String objEntryStr)
throws SPIException
The object must exist in the namespace, or this method will fail.
objEntryStr - A String representing the full name of an existing object.public com.novell.application.console.snapin.ObjectEntry getObjectEntry(com.novell.application.console.snapin.ObjectEntry parentEntry,
java.lang.String objEntryStr)
throws SPIException
The object must exist in the namespace, or this method will fail.
parentEntry - The parent ObjectEntry of the object being retrieved.objEntryStr - A String representing the name of the child object.public com.novell.application.console.snapin.ObjectEntry move(com.novell.application.console.snapin.ObjectEntry objToMove,
com.novell.application.console.snapin.ObjectEntry destination)
throws SPIException,
com.novell.application.console.snapin.SnapinVetoException
objToMove - The object to move.destination - The destination location.public com.novell.application.console.snapin.ObjectEntry rename(com.novell.application.console.snapin.ObjectEntry fromObjEntry,
java.lang.String newName)
throws SPIException,
com.novell.application.console.snapin.SnapinVetoException
fromObjEntry - The object to rename.newName - The new name for the object.public void update(NSObject obj)
throws SPIException,
com.novell.application.console.snapin.SnapinVetoException
obj - The namespace object being updated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||