public interface MembershipSearchStrategy
A strategy is resolved using a SearchStrategyFactory
and can be optimised for specific configurations of
directory.
SearchStrategyFactory
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
searchDirectGroupRelationships(MembershipQuery<T> query)
Searches for direct group relationships in any of the application's active assigned directories.
|
<T> com.google.common.collect.ListMultimap<String,T> |
searchDirectGroupRelationshipsGroupedByName(MembershipQuery<T> query)
Searches for direct group relationships in any of the application's active assigned directories.
|
<T> List<T> |
searchNestedGroupRelationships(MembershipQuery<T> query)
Searches for direct and indirect (nested) group relationships in any of the application's active assigned directories.
|
<T> List<T> searchDirectGroupRelationships(MembershipQuery<T> query)
When searching for the groups an entity is a member of,
the membership aggregation semantic
will determine whether only the owning directory (when false
) or all directories (when true
) will be searched.
<T> List<T> searchNestedGroupRelationships(MembershipQuery<T> query)
If the directory does not support nested groups, this call will be equivalent to DirectoryManager.searchDirectGroupRelationships(long, com.atlassian.crowd.search.query.membership.MembershipQuery)
.
WARNING: this method could be very slow if the underlying RemoteDirectory does not employ caching.
When searching for the groups a user is a member of only the directory of the user (as determined by findUserByName) is searched. When searching for memberships of a group or groups a group is a member of all directories are searched and the results amalgamated.
<T> com.google.common.collect.ListMultimap<String,T> searchDirectGroupRelationshipsGroupedByName(MembershipQuery<T> query)
When searching for the groups an entity is a member of,
the membership aggregation semantic
will determine whether only the owning directory (when false
) or all directories (when true
) will be searched.
query
- membership query.ListMultimap
where keys are elements of MembershipQuery.getEntityNamesToMatch()
and values are List of User
entities,
Group
entities,
String
usernames or String
group names matching the query criteria for the given key.Copyright © 2020 Atlassian. All rights reserved.