|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.au.DirectoryService
This class provides a convenient way to access a directory service and query objects within it.
Field Summary | |
private IeProcessor |
adapter
|
private Class |
adapterClass
|
private String |
adapterClassName
|
private String |
attributes
|
private String |
dn
|
private String |
filter
|
private static IeProcessor |
multithreadedAdapter
|
private String |
principal
|
private String |
providerUrl
|
private String |
scope
|
private String |
secret
|
private static String |
sync
|
Constructor Summary | |
DirectoryService()
Constructs an instance that provides access to the directory service via the JNDI adapter of Info*Engine. |
Method Summary | |
int |
createObjects(String url,
Group objects)
Creates new objects in the directory service. |
static String |
decodeUrl(String encoded)
Decodes a URL-encoded string. |
int |
deleteObject(String url)
Deletes a directory entry. |
static String |
normalizeDN(String dn)
Normalizes a distinguished name such that unneeded whitespace is removed. |
private void |
parseUrl(String url)
Parses an LDAP URL into its constituent parts for use in making requests of the Info*Engine JNDI adapter. |
Group |
queryObjects(String url)
Queries the directory service for objects matching the criteria specified by an LDAP URL. |
int |
updateObjects(String url,
Group objects,
String modification)
Updates objects in the directory service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final String adapterClassName
private IeProcessor adapter
private Class adapterClass
private String attributes
private String dn
private String filter
private String principal
private String providerUrl
private String scope
private String secret
private static IeProcessor multithreadedAdapter
private static String sync
Constructor Detail |
public DirectoryService() throws IEException
IEException
- if the JNDI adapter can not be loaded
or initialized successfullyMethod Detail |
public Group queryObjects(String url) throws IEException
url
- The LDAP URL specifying the object(s) to be queried.
IEException
- if the query failspublic int createObjects(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 failspublic int updateObjects(String url, Group objects, 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 failspublic int deleteObject(String url) throws IEException
url
- The LDAP URL specifying the object to be deleted.
IEException
- if deletion failspublic static String normalizeDN(String dn)
dn
- The distinguished name to be normalized.
private void parseUrl(String url)
url
- The LDAP URL to be parsed.public static String decodeUrl(String encoded)
encoded
- URL-encoded string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |