public class OrganizationSearch
extends java.lang.Object
OrganizationEntity| Constructor and Description |
|---|
OrganizationSearch()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OrganizationEntity |
lookup(DistinguishedName dn)
Retrieves the organization with the given distinguished name.
|
SearchResults |
searchByFilter(CompoundDN searchContext,
java.lang.String filter,
SearchParameters params)
Searches for organizations that meet the criteria defined within the
given filter.
|
SearchResults |
searchByFilter(DistinguishedName tenantDN,
java.lang.String filter,
SearchParameters params)
Searches for organizations that meet the criteria defined within the
given filter.
|
OrganizationEntity |
searchByURI(OrganizationalContainerEntity searchContext,
java.lang.String uri)
Find the organization for a specific URI.
|
public OrganizationEntity lookup(DistinguishedName dn) throws ObjectNotFoundException, ModelCommunicationException
dn - DistinguishedName to search with.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 SearchResults searchByFilter(CompoundDN searchContext, java.lang.String filter, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
searchContext - CompoundDN with only one DistinguishedName
identifying the tenant (system root) to use
as the base of the search.filter - Filter that defines the criteria for returned
organizations to meet. The filter must be in the
format defined by RFC2254.params - SearchParameters that provide additional context for
how the search should be performed. Since
organizations are only allowed at the top level of an
org chart, the scope parameter is not supported.ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
container specified in the searchContext. This may be due to
the container being removed by another client.public SearchResults searchByFilter(DistinguishedName tenantDN, java.lang.String filter, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
tenantDN - DistinguishedName of the system root (tenant) to base
the search from.filter - Filter that defines the criteria for returned
organizations to meet. The filter must be in the
format defined by RFC2254.params - SearchParameters that provide additional context for
how the search should be performed. Since
organizations are only allowed at the top level of an
org chart, the scope parameter is not supported.ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
container specified in the searchContext. This may be due to
the container being removed by another client.public OrganizationEntity searchByURI(OrganizationalContainerEntity searchContext, java.lang.String uri) throws ModelCommunicationException, URINotUniqueException, ObjectNotFoundException
searchContext - OrganizationalContainerEntity which is to be used
as the base context to search from.uri - URI of the organization.ModelCommunicationException - Thrown if unable to communicate
with the data store.URINotUniqueException - Thrown if more than one object is found
for the URI under the specified search context.ObjectNotFoundException - Thrown if unable to locate the
organization or the search context in the data store. This may be due to an invalid
distinguished name, or the entity may have been removed by
another client.