|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public static final java.lang.String name
This is used to register ConsoleOne snapins.
public static final int ACCESSMASTER
public static final int ALIASDEREFERENCENORMAL
public static final int ALIASDEREFERENCEDISABLE
| Method Detail |
public ObjectEntryEnumeration getChildContainers(ObjectEntry parent,
ResultModifier modifiers)
throws SPIException
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.
parent - The parent object as an ObjectEntry.modifiers - Determines how the child list is built.
public java.lang.String getDereferencedAliasObjectDN(ObjectEntry aliasOE)
throws SPIException
aliasOE - The ObjectEntry of the alias.public java.lang.String[] getNameComponents(ObjectEntry oe)
The first element is the leaf object. The remaining elements in the array are the hierarchy of the leaf's parent object.
oe - The object entry.
public ObjectType[] getObjectType(ObjectEntry tree,
java.lang.String[] objectFDN)
throws SPIException
tree - An object entry for the tree containing the object FDNs.objectFDN - An array of object FDNs.public java.lang.String getFullyTypedName(ObjectEntry objectEntry)
For example: CN=admin.OU=engineering.O=novell
objectEntry - The object that is to be fully typed.
public java.util.Date getLastModificationTime(ObjectEntry objectEntry)
throws SPIException
objectEntry - The object.public java.lang.String getUnrootedName(ObjectEntry objectEntry)
objectEntry - The object.
public PartitionService getPartitionService(ObjectEntry obj)
throws SPIException
obj - The context at which to manage.PartitionService
public boolean isSkadsServer(ObjectEntry obj)
throws SPIException
obj - The object.public boolean isServerUp(ObjectEntry obj)
obj - The server object.
public ObjectAttribute getAttribute(ObjectEntry obj,
java.lang.String attrStr)
throws SPIException
obj - The object that contains the attribute.attrStr - The attribute.
public NDSNCPExtension getNCPExtension(java.lang.String name,
ObjectEntry serverOE)
throws SPIException
name - The name of the ncp extension on the file serverserverOE - The server where the ncp extension resides
public java.lang.Object getContext(ObjectEntry oe)
throws SPIException
serverOE - The server where the ncp extension resides
public ObjectAttribute[] getAttributes(ObjectEntry obj,
java.lang.String[] attrStrings,
ObjectEntry serverObj)
throws SPIException,
NamespaceException
obj - The object for which to obtain attributes.attrStrings - The object attributes to obtain.
public NSObject getDetails(ObjectEntry obj,
ObjectEntry serverObj)
throws SPIException
Performs a directed read.
obj - The ObjectEntry for which to return the NSObject.
public void setAttribute(ObjectEntry obj,
ObjectAttribute attribute)
throws SPIException
obj - The object that contains the attribute.attribute - The attribute.
public java.lang.String getTreeNameFromServer(java.lang.String server)
throws SPIException
server - The server.
public Rights getPropertyEffectiveRights(ObjectEntry objForInquire,
ObjectEntry trustee,
java.lang.String attrName)
throws SPIException
objForInquire - The object.trustee - The trustee.attrName - The attribute.
public int ncpFragmentRequest(ObjectEntry oe,
int ncp,
int verb,
byte[][] requestFrags,
byte[][] replyFrags)
throws SPIException
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.
public void update(NSObject obj,
ObjectEntry serverObj)
throws SPIException,
SnapinVetoException
obj - The namespace object being updated.
public void create(NSObject obj,
ObjectEntry serverObj)
throws SPIException,
SnapinVetoException
obj - The object to create. This object must be complete
with its attributes and values.serverObj - The server to direct the create operation to.
public void delete(ObjectEntry obj,
ObjectEntry serverObj)
throws SPIException,
SnapinVetoException
obj - The object entry representing the object to delete.serverObj - The server to direct the delete operation to.public java.lang.String escapeTheRDNDot(java.lang.String rdn)
rdn - The String object being updated.
public void setAccessConfidence(int newConfidence)
throws NamespaceException,
SPIException
public void setAliasDereference(int newDereference)
throws NamespaceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||