|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.dataservices.model.domain.GroupSearch
public class GroupSearch
This class provides an interface for searching group objects from the data store
Constructor Summary | |
---|---|
GroupSearch()
Default constructor. |
Method Summary | |
---|---|
GroupEntity |
lookup(DistinguishedName dn)
Retrieves the group from the data store with the given distinguished name. |
GroupEntity |
lookup(DistinguishedName serviceDN,
java.lang.String groupID)
Retrieves the group from the data store based on the unique id of the group. |
GroupEntity |
lookup(DistinguishedName serviceDN,
java.lang.String attributeName,
java.lang.String groupID)
Retrieves the group from the data store based on the unique ID of the group. |
GroupEntity |
lookup(DistinguishedName serviceDN,
java.lang.String profileName,
java.lang.String attributeName,
java.lang.String groupID)
Retrieves the group from the data store based on the unique ID of the group. |
SearchResults |
searchByAccess(CompoundDN searchContext,
java.lang.String groupProfileName,
java.lang.String accessInfo,
java.lang.String accessType,
SearchParameters params)
Finds the groups in a specific organizational container (including organization) that are enabled for user request and matches the user's search criteria. |
SearchResults |
searchByFilter(CompoundDN searchContext,
java.lang.String filter,
SearchParameters params)
Searches for groups of all types that meet the criteria defined within the given filter. |
SearchResults |
searchByFilter(CompoundDN searchContext,
java.lang.String profileName,
java.lang.String filter,
SearchParameters params)
Searches for groups that meet the criteria defined within the given filter. |
SearchResults |
searchByGroupInfo(CompoundDN searchContext,
java.lang.String profileName,
java.util.Set<java.lang.String> searchAttributes,
java.lang.String groupInfo,
SearchParameters params)
Finds groups defined for a specific service and a specific group profile |
SearchResults |
searchByServiceAndGroupInfo(DistinguishedName serviceDN,
java.lang.String profileName,
java.util.Set<java.lang.String> searchAttributes,
java.lang.String groupInfo,
SearchParameters params)
Finds groups defined for a specific service and a specific group profile. |
GroupEntity |
searchByURI(OrganizationalContainerEntity searchContext,
java.lang.String uri)
Find the group for a specific URI. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupSearch()
Method Detail |
---|
public GroupEntity lookup(DistinguishedName dn) throws ObjectNotFoundException, ModelCommunicationException
dn
- distinguished name of the group.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ObjectNotFoundException
- Thrown if unable to locate the entity in the data store.
This might be because a distinguished name is not valid, or the
entity might have been removed by another client.public GroupEntity lookup(DistinguishedName serviceDN, java.lang.String groupID) throws ObjectNotFoundException, ModelCommunicationException
serviceDN
- DistinguishedName of the servicegroupID
- String of the group unique ID.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ObjectNotFoundException
- Thrown if unable to locate the entity in the data store.
This might be because a distinguished name is not valid, or the
entity might have been removed by another client.public GroupEntity lookup(DistinguishedName serviceDN, java.lang.String attributeName, java.lang.String groupID) throws ObjectNotFoundException, ModelCommunicationException
serviceDN
- The distinguished name of the servicegroupAttrName
- The name of the attribute that is used in the search.groupID
- The unique ID of the group.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ObjectNotFoundException
- Thrown if unable to locate the entity in the data store.
This might be because a distinguished name is not valid, or the
entity might have been removed by another client.public GroupEntity lookup(DistinguishedName serviceDN, java.lang.String profileName, java.lang.String attributeName, java.lang.String groupID) throws ObjectNotFoundException, ModelCommunicationException
serviceDN
- The distinguished name of the serviceprofileName
- Name of the ObjectProfile that defines the type of
group to search for. If null or empty string passed, groups of all types
will be returned.groupAttrName
- The name of the attribute that is used in the search.groupID
- The unique ID of the group.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ObjectNotFoundException
- Thrown if unable to locate the entity in the data store.
This might be because a distinguished name is not valid, or the
entity might have been removed by another client.public SearchResults searchByServiceAndGroupInfo(DistinguishedName serviceDN, java.lang.String profileName, java.util.Set<java.lang.String> searchAttributes, java.lang.String groupInfo, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
serviceDN
- The distinguished name of the serviceprofileName
- The name of the ObjectProfile that defines the type of
group to search for. If a null or empty string is passed, groups of all types
will be returned.searchAttributes
- A list of attribute to be search by group information. If searchAttributes
is empty or null, the group name attribute will be used. You need to pass in the
symantic attributes. The method resolves any mapped attribute.groupInfo
- The information about the group which will be used to perform a substring
matching for group name and description. If input string is null,
a wildcard search is used.params
- The search parameters 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 groups
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 entity in the data store.
This might be because a distinguished name is not valid, or the
entity might have been removed by another client.
java.lang.IllegalArgumentException
- Thrown when searchContext or profileName is null or empty.public SearchResults searchByGroupInfo(CompoundDN searchContext, java.lang.String profileName, java.util.Set<java.lang.String> searchAttributes, java.lang.String groupInfo, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
searchContext
- The CompoundDN that defines the base of the search.
At least one element and at most three are expected:
profileName
- The name of the ObjectProfile that defines the type of
group to search for. If a null or empty string is passed, groups of all types
will be returned.searchAttributes
- A list of attribute to be search by group information. If searchAttributes
is empty or null, the group name attribute will be used. You need to pass in the
symantic attributes. The method resolves any mapped attribute.groupInfo
- The information about the group which will be used to perform a substring
matching for group name and description. If input string is null,
a wildcard search is used.params
- The search parameters 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 groups
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 entity in the data store.
This may be due to an invalid profile name, distinguished
name, or the entity may have been removed by another
client.
java.lang.IllegalArgumentException
- Thrown when searchContext is null or empty.public SearchResults searchByAccess(CompoundDN searchContext, java.lang.String groupProfileName, java.lang.String accessInfo, java.lang.String accessType, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
searchContext
- The CompoundDN that defines the base of the search.
At least one element and at most three are expected:
groupProfileName
- The name of the ObjectProfile that defines the type of
group to search for. If a null or empty string is passed, groups of all types
will be returned.accessInfo
- The information about the access that will be used to perform a substring
matching for access name and access description. If input string is null,
a wildcard search for name and description is used.accessType
- Access type for the group. If input string is null,
a wildcard search for access type is used.params
- The search parameters 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 groups
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 entity in the data store.
This may be due to an invalid profile name, 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
- The CompoundDN that defines the base of the search.
At least one element and at most three are expected:
profileName
- Name of the ObjectProfile that defines the type of
group to search for. If null or empty string passed, groups of all types
will be returned.filter
- Filter that defines the criteria for returned
groups to meet. The filter must be in the
format defined by RFC2254.params
- The search parameters 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 groups
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 entity in the data store.
This may be due to an invalid profile name, distinguished
name, or the entity may have been removed by another
client.public SearchResults searchByFilter(CompoundDN searchContext, java.lang.String profileName, java.lang.String filter, SearchParameters params) throws ObjectNotFoundException, ModelCommunicationException
searchContext
- The CompoundDN that defines the base of the search.
At least one element and at most three are expected:
profileName
- Name of the ObjectProfile that defines the type of
group to search for. If null or empty string passed, groups of all types
will be returned.filter
- Filter that defines the criteria for returned
groups to meet. The filter must be in the
format defined by RFC2254.params
- The search parameters 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 groups
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 entity in the data store.
This may be due to an invalid profile name, distinguished
name, or the entity may have been removed by another
client.public GroupEntity 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 group.
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
group 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |