public class SearchUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVER_NOT_AVAILABLE |
| Constructor and Description |
|---|
SearchUtils() |
| Modifier and Type | Method and Description |
|---|---|
AccountEntity |
lookupAccount(DistinguishedName dn,
javax.naming.ldap.LdapContext ctx)
Retrieves the account from the data store with the given
distinguished name and ldapcontext.
|
ServiceEntity |
lookupService(DistinguishedName dn,
javax.naming.ldap.LdapContext ctx)
Retrieves the service from the data store with the given
distinguished name and ldapcontext.
|
public static final java.lang.String SERVER_NOT_AVAILABLE
public AccountEntity lookupAccount(DistinguishedName dn, javax.naming.ldap.LdapContext ctx) throws ModelCommunicationException, ObjectNotFoundException
dn - DistinguishedName of the account.ctx - LdapContext connection to Ldap.ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.public ServiceEntity lookupService(DistinguishedName dn, javax.naming.ldap.LdapContext ctx) throws ObjectNotFoundException, ModelCommunicationException
dn - DistinguishedName of the service.ctx - LdapContext connection to Ldap.ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.