com.novell.admin.ns.nds
Interface NDSNamespace

All Superinterfaces:
AdminNamespace, AuthenticationNamespace, MultiObjModificationNamespace, PartitionableNamespace

public interface NDSNamespace
extends AdminNamespace, AuthenticationNamespace, MultiObjModificationNamespace, PartitionableNamespace

This class provides the ability to manage a Novell Directory Service Namespace.


Field Summary
static int ACCESSMASTER
           
static int ALIASDEREFERENCEDISABLE
           
static int ALIASDEREFERENCENORMAL
           
static java.lang.String name
          The name of the namespace.
 
Method Summary
 void create(NSObject obj, ObjectEntry serverObj)
          Creates a new object in the namespace.
 void delete(ObjectEntry obj, ObjectEntry serverObj)
          Deletes an object from the namespace.
 java.lang.String escapeTheRDNDot(java.lang.String rdn)
          Will place an escape character '\' in front of any unescaped dot '.' characters in the String passed in.
 ObjectAttribute getAttribute(ObjectEntry obj, java.lang.String attrStr)
          Returns the attribute value(s) for a namespace object's specific attribute.
 ObjectAttribute[] getAttributes(ObjectEntry obj, java.lang.String[] attrStrings, ObjectEntry serverObj)
          Reads an existing object in the namespace and returns an array containing the object's attributes, including their values.
 ObjectEntryEnumeration getChildContainers(ObjectEntry parent, ResultModifier modifiers)
          Retrieves the child container objects for a given container object.
 java.lang.Object getContext(ObjectEntry oe)
          Helper method to return a Provider Context
 java.lang.String getDereferencedAliasObjectDN(ObjectEntry aliasOE)
          Retrieves the DN of the object the alias is pointing to.
 NSObject getDetails(ObjectEntry obj, ObjectEntry serverObj)
          Reads the details for an existing object and returns an NSObject for that object.
 java.lang.String getFullyTypedName(ObjectEntry objectEntry)
          Returns the object's fully typed name, not including the root entry.
 java.util.Date getLastModificationTime(ObjectEntry objectEntry)
          Returns the time of the last modification of the object in NDS.
 java.lang.String[] getNameComponents(ObjectEntry oe)
          Returns an array of distinguished names.
 NDSNCPExtension getNCPExtension(java.lang.String name, ObjectEntry serverOE)
          Helper method to the ncp extension device.
 ObjectType[] getObjectType(ObjectEntry tree, java.lang.String[] objectFDN)
          Returns an ObjectType for each object's fully distinguished name (FDN).
 PartitionService getPartitionService(ObjectEntry obj)
          Returns the handle to the partition management service.
 Rights getPropertyEffectiveRights(ObjectEntry objForInquire, ObjectEntry trustee, java.lang.String attrName)
          Get the effective property rights of a trustee on an objects attribute.
 java.lang.String getTreeNameFromServer(java.lang.String server)
          Get the tree name from a specified server.
 java.lang.String getUnrootedName(ObjectEntry objectEntry)
          Returns the object's fully distinguished name, not including the tree.
 boolean isServerUp(ObjectEntry obj)
          Determines whether or not the particular server is up.
 boolean isSkadsServer(ObjectEntry obj)
          Determines whether or not the object is in an NDS v8 tree.
 int ncpFragmentRequest(ObjectEntry oe, int ncp, int verb, byte[][] requestFrags, byte[][] replyFrags)
          Send NCP using a fragmented request
 void setAccessConfidence(int newConfidence)
           
 void setAliasDereference(int newDereference)
           
 void setAttribute(ObjectEntry obj, ObjectAttribute attribute)
          Writes the attribute value for a namespace objects particular attribute.
 void update(NSObject obj, ObjectEntry serverObj)
          Writes object changes to the namespace.
 
Methods inherited from interface com.novell.admin.ns.AdminNamespace
create, createNSObject, createNSObject, createObjectEntry, delete, doesExist, freeDetails, getAttributeDefinition, getAttributes, getChildren, getChildren, getClassDefinition, getDetails, getDetails, getFullName, getMaxNameLength, getObjectEffectiveRights, getObjectEntry, getObjectEntry, getObjectType, getObjectTypes, getPropertyEffectiveRights, getSchemaDefinition, move, rename, setAttributes, update
 
Methods inherited from interface com.novell.admin.ns.AuthenticationNamespace
authenticate, authenticate, authenticateServer, changePassword, changePassword, getAuthenticatedIdentity, setPassword, setPassword, unAuthenticate, unAuthenticate
 
Methods inherited from interface com.novell.admin.ns.MultiObjModificationNamespace
getMODDetails, updateMultipleObjects
 

Field Detail

name

public static final java.lang.String name
The name of the namespace.

This is used to register ConsoleOne snapins.


ACCESSMASTER

public static final int ACCESSMASTER

ALIASDEREFERENCENORMAL

public static final int ALIASDEREFERENCENORMAL

ALIASDEREFERENCEDISABLE

public static final int ALIASDEREFERENCEDISABLE
Method Detail

getChildContainers

public ObjectEntryEnumeration getChildContainers(ObjectEntry parent,
                                                 ResultModifier modifiers)
                                          throws SPIException
Retrieves the child container objects for a given container object.

Volume and server leaf objects are also returned. This method is typically used in providing a tree view. Note - Notification is not made when a partial list is returned.

Parameters:
parent - The parent object as an ObjectEntry.
modifiers - Determines how the child list is built.
Returns:
Returns an enumeration of the children.
Throws:
SPIException - Thrown by the service provider.

getDereferencedAliasObjectDN

public java.lang.String getDereferencedAliasObjectDN(ObjectEntry aliasOE)
                                              throws SPIException
Retrieves the DN of the object the alias is pointing to.
Parameters:
aliasOE - The ObjectEntry of the alias.
Returns:
Returns the DN of the object the alias points to.
Throws:
SPIException - Thrown by the service provider.

getNameComponents

public java.lang.String[] getNameComponents(ObjectEntry oe)
Returns an array of distinguished names.

The first element is the leaf object. The remaining elements in the array are the hierarchy of the leaf's parent object.

Parameters:
oe - The object entry.
Returns:
The array of distinguished names.

getObjectType

public ObjectType[] getObjectType(ObjectEntry tree,
                                  java.lang.String[] objectFDN)
                           throws SPIException
Returns an ObjectType for each object's fully distinguished name (FDN).
Parameters:
tree - An object entry for the tree containing the object FDNs.
objectFDN - An array of object FDNs.
Returns:
An array of ObjectTypes.
Throws:
SPIException - Thrown by the service provider.

getFullyTypedName

public java.lang.String getFullyTypedName(ObjectEntry objectEntry)
Returns the object's fully typed name, not including the root entry.

For example: CN=admin.OU=engineering.O=novell

Parameters:
objectEntry - The object that is to be fully typed.
Returns:
The fully typed distinguished name.

getLastModificationTime

public java.util.Date getLastModificationTime(ObjectEntry objectEntry)
                                       throws SPIException
Returns the time of the last modification of the object in NDS.
Parameters:
objectEntry - The object.
Returns:
The date the object was last modified.
Throws:
SPIException - Thrown by the service provider.

getUnrootedName

public java.lang.String getUnrootedName(ObjectEntry objectEntry)
Returns the object's fully distinguished name, not including the tree.
Parameters:
objectEntry - The object.
Returns:
The object's fully distinguished name.

getPartitionService

public PartitionService getPartitionService(ObjectEntry obj)
                                     throws SPIException
Returns the handle to the partition management service.
Specified by:
getPartitionService in interface PartitionableNamespace
Parameters:
obj - The context at which to manage.
Returns:
The partition management service.
Throws:
SPIException - Thrown by the service provider.
See Also:
PartitionService

isSkadsServer

public boolean isSkadsServer(ObjectEntry obj)
                      throws SPIException
Determines whether or not the object is in an NDS v8 tree.
Parameters:
obj - The object.
Returns:
True if object is in an NDS v8 tree, false otherwise.
Throws:
SPIException - Thrown by the service provider.

isServerUp

public boolean isServerUp(ObjectEntry obj)
Determines whether or not the particular server is up.
Parameters:
obj - The server object.
Returns:
True if the server is up, false otherwise.

getAttribute

public ObjectAttribute getAttribute(ObjectEntry obj,
                                    java.lang.String attrStr)
                             throws SPIException
Returns the attribute value(s) for a namespace object's specific attribute.
Parameters:
obj - The object that contains the attribute.
attrStr - The attribute.
Returns:
The ObjectAttribute with values.
Throws:
SPIException - Thrown by the service provider.

getNCPExtension

public NDSNCPExtension getNCPExtension(java.lang.String name,
                                       ObjectEntry serverOE)
                                throws SPIException
Helper method to the ncp extension device.
Parameters:
name - The name of the ncp extension on the file server
serverOE - The server where the ncp extension resides
Returns:
The ncp extension service.
Throws:
SPIException - Refer to SPIException documentation.

getContext

public java.lang.Object getContext(ObjectEntry oe)
                            throws SPIException
Helper method to return a Provider Context
Parameters:
serverOE - The server where the ncp extension resides
Returns:
The ncp extension service.
Throws:
SPIException - Refer to SPIException documentation.

getAttributes

public ObjectAttribute[] getAttributes(ObjectEntry obj,
                                       java.lang.String[] attrStrings,
                                       ObjectEntry serverObj)
                                throws SPIException,
                                       NamespaceException
Reads an existing object in the namespace and returns an array containing the object's attributes, including their values. Directed read to server passed in.
Parameters:
obj - The object for which to obtain attributes.
attrStrings - The object attributes to obtain.
Returns:
An array of ObjectAttribute objects.
Throws:
SPIException - Thrown when the service provider returns an error.
NamespaceException - Thrown when the namespace detects an error.

getDetails

public NSObject getDetails(ObjectEntry obj,
                           ObjectEntry serverObj)
                    throws SPIException
Reads the details for an existing object and returns an NSObject for that object.

Performs a directed read.

Parameters:
obj - The ObjectEntry for which to return the NSObject.
Returns:
The NSObject for the namespace object.
Throws:
SPIException - Thrown when the service provider returns an error.

setAttribute

public void setAttribute(ObjectEntry obj,
                         ObjectAttribute attribute)
                  throws SPIException
Writes the attribute value for a namespace objects particular attribute.
Parameters:
obj - The object that contains the attribute.
attribute - The attribute.
Throws:
SPIException - Thrown by the service provider.

getTreeNameFromServer

public java.lang.String getTreeNameFromServer(java.lang.String server)
                                       throws SPIException
Get the tree name from a specified server.
Parameters:
server - The server.
Returns:
The tree name.
Throws:
SPIException - Refer to SPIException documentation.

getPropertyEffectiveRights

public Rights getPropertyEffectiveRights(ObjectEntry objForInquire,
                                         ObjectEntry trustee,
                                         java.lang.String attrName)
                                  throws SPIException
Get the effective property rights of a trustee on an objects attribute.
Parameters:
objForInquire - The object.
trustee - The trustee.
attrName - The attribute.
Returns:
The effective rights.
Throws:
SPIException - Refer to SPIException documentation.

ncpFragmentRequest

public int ncpFragmentRequest(ObjectEntry oe,
                              int ncp,
                              int verb,
                              byte[][] requestFrags,
                              byte[][] replyFrags)
                       throws SPIException
Send NCP using a fragmented request
Parameters:
oe - The server oe to send the request to.
ncp - The NCP number.
verb - The NCP verb number.
requestFrags - The fragments to send to the server.
replyFrags - The fragments to fill in with the responce from the server.
Returns:
The number of bytes received in the reply fragment.
Throws:
SPIException - Refer to SPIException documentation.

update

public void update(NSObject obj,
                   ObjectEntry serverObj)
            throws SPIException,
                   SnapinVetoException
Writes object changes to the namespace. Directed write to a server.
Parameters:
obj - The namespace object being updated.
Throws:
SPIException - Thrown when the service provider returns an error.
SnapinVetoException - Another snapin has disallowed the update.

create

public void create(NSObject obj,
                   ObjectEntry serverObj)
            throws SPIException,
                   SnapinVetoException
Creates a new object in the namespace. Directed write to a server.
Parameters:
obj - The object to create. This object must be complete with its attributes and values.
serverObj - The server to direct the create operation to.
Throws:
SPIException - Thrown when the service provider returns an error.
SnapinVetoException - Another snapin has disallowed the create.

delete

public void delete(ObjectEntry obj,
                   ObjectEntry serverObj)
            throws SPIException,
                   SnapinVetoException
Deletes an object from the namespace. Directed write to a server.
Parameters:
obj - The object entry representing the object to delete.
serverObj - The server to direct the delete operation to.
Throws:
SPIException - Thrown when the service provider returns an error.
SnapinVetoException - Another snapin has disallowed the delete.

escapeTheRDNDot

public java.lang.String escapeTheRDNDot(java.lang.String rdn)
Will place an escape character '\' in front of any unescaped dot '.' characters in the String passed in. The purpose of this routine is to allow a user to type in an NDS name that contains dots without having to escape them at the time of entry. This will facilitate names such as "user@novell.com". Although this is not a valid NDS name, we want the user to be able to create and rename NDS objects with this type of name without having to type "user@novell\.com".
Parameters:
rdn - The String object being updated.

setAccessConfidence

public void setAccessConfidence(int newConfidence)
                         throws NamespaceException,
                                SPIException

setAliasDereference

public void setAliasDereference(int newDereference)
                         throws NamespaceException


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.