|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.au.DirectoryService
public class DirectoryService
This class provides a convenient way to access a directory service and query objects within it.
| Constructor Summary | |
|---|---|
DirectoryService()
Constructs an instance that provides access to the directory service via the JNDI adapter of Info*Engine. |
|
| Method Summary | |
|---|---|
int |
createObjects(java.lang.String url,
Group objects)
Creates new objects in the directory service. |
static java.lang.String |
decodeUrl(java.lang.String encoded)
Decodes a URL-encoded string. |
int |
deleteObject(java.lang.String url)
Deletes a directory entry. |
static java.lang.String |
normalizeDN(java.lang.String dn)
Normalizes a distinguished name such that unneeded whitespace is removed. |
Group |
queryObjects(java.lang.String url)
Queries the directory service for objects matching the criteria specified by an LDAP URL. |
int |
updateObjects(java.lang.String url,
Group objects,
java.lang.String modification)
Updates objects in the directory service. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryService()
throws IEException
IEException - if the JNDI adapter can not be loaded
or initialized successfully| Method Detail |
|---|
public Group queryObjects(java.lang.String url)
throws IEException
url - The LDAP URL specifying the object(s) to be queried.
IEException - if the query fails
public int createObjects(java.lang.String url,
Group objects)
throws IEException
url - The LDAP URL specifying the directory provider URLobjects - An Info*Engine group specifying the objects to be
created. Each element of the group must have an
attribute named "dn" and an attribute named
"objectClass", at a minimum. These specify the
distinguished name of the object to be created, and
the directory object class, respectively. Other
attributes specify additional attributes of the
directory entry to be created.
IEException - if creation fails
public int updateObjects(java.lang.String url,
Group objects,
java.lang.String modification)
throws IEException
url - The LDAP URL specifying the directory provider URLobjects - An Info*Engine group specifying the objects to be
updated. Each element of the group must have an
attribute named "dn". This specifies the distinguished
name of the object to be updated. Other attributes
specify the entry attributes to be added, replaced,
or deleted.modification - One of "add" (add attributes to each entry),
"replace" (replace attributes in each entry),
or "delete" (delete attributes from each entry).
IEException - if update fails
public int deleteObject(java.lang.String url)
throws IEException
url - The LDAP URL specifying the object to be deleted.
IEException - if deletion failspublic static java.lang.String normalizeDN(java.lang.String dn)
dn - The distinguished name to be normalized.
public static java.lang.String decodeUrl(java.lang.String encoded)
encoded - URL-encoded string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||