public class SystemRoleSearch
extends java.lang.Object
SystemRoleEntity| Constructor and Description |
|---|
SystemRoleSearch()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SystemRoleEntity |
lookup(DistinguishedName dn)
Retrieves the system role from the data store with the given
distinguished name.
|
SearchResults |
searchByCategory(CompoundDN searchContext,
int category,
SearchParameters params)
Retrieves all system roles within the given category.
|
SearchResults |
searchByCategory(OrganizationalContainerEntity searchContext,
int category,
SearchParameters params)
Retrieves all system roles within the given category.
|
SearchResults |
searchByFilter(CompoundDN searchContext,
java.lang.String filter,
SearchParameters params)
Searches for system roles that meet the criteria defined within the
given filter.
|
SearchResults |
searchByFilter(OrganizationalContainerEntity searchContext,
java.lang.String filter,
SearchParameters params)
Searches for system roles that meet the criteria defined within the
given filter.
|
SearchResults |
searchByName(CompoundDN searchContext,
java.lang.String name,
SearchParameters params)
Retrieves all system roles within the given name.
|
SystemRoleEntity |
searchByURI(OrganizationalContainerEntity searchContext,
java.lang.String uri)
Find the system role for a specific URI.
|
public SystemRoleEntity lookup(DistinguishedName dn) throws ModelCommunicationException, ObjectNotFoundException
dn - DistinguishedName to search with.ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - is 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(OrganizationalContainerEntity searchContext, java.lang.String filter, SearchParameters params) throws ModelCommunicationException, ObjectNotFoundException
searchContext - OrganizationalContainerEntity which is to be used
as the base context to search from.filter - Filter that defines the criteria for returned
system roles 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.
If the search scope is ONELEVEL_SCOPE, the search is
limited only to the system roles that belong to
the given parent (searchContext.last()). Otherwise, the
whole organizational logical subtree will be searched.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(CompoundDN searchContext, java.lang.String filter, SearchParameters params) throws ModelCommunicationException, ObjectNotFoundException
searchContext - CompoundDN that defines the base of the search.
At least one (1) element and at most three (3)
are expected:
filter - Filter that defines the criteria for returned
system roles 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.
If the search scope is ONELEVEL_SCOPE, the search is
limited only to the system roles that belong to
the given parent (searchContext.last()). Otherwise, the
selected container subtree will be searched.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 searchByCategory(OrganizationalContainerEntity searchContext, int category, SearchParameters params) throws ModelCommunicationException, ObjectNotFoundException
searchContext - OrganizationalContainerEntity which is to be used
as the base context to search from.category - Enumeration of the category to search for.params - SearchParameters that provide additional context for
how the search should be performed.
If the search scope is ONELEVEL_SCOPE, the search is
limited only to the system roles that belong to
the given parent (searchContext.last()). Otherwise, the
whole organizational logical subtree will be searched.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 searchByCategory(CompoundDN searchContext, int category, SearchParameters params) throws ModelCommunicationException, ObjectNotFoundException
searchContext - CompoundDN that defines the base of the search.
At least one (1) element and at most three (3)
are expected:
category - Enumeration of the category to search for.params - SearchParameters that provide additional context for
how the search should be performed.
If the search scope is ONELEVEL_SCOPE, the search is
limited only to the system roles that belong to
the given parent (searchContext.last()). Otherwise, the
whole organizational logical subtree will be searched.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 searchByName(CompoundDN searchContext, java.lang.String name, SearchParameters params) throws ModelCommunicationException, ObjectNotFoundException
searchContext - CompoundDN that defines the base of the search.
At least one (1) element and at most three (3)
are expected:
name - Name of the role to search for.params - SearchParameters that provide additional context for
how the search should be performed.
If the search scope is ONELEVEL_SCOPE, the search is
limited only to the system roles that belong to
the given parent (searchContext.last()). Otherwise, the
whole organizational logical subtree will be searched.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 SystemRoleEntity 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 policy.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
system role 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.