public enum NoDirectorySearchStrategy extends Enum<NoDirectorySearchStrategy> implements UserSearchStrategy, GroupSearchStrategy, MembershipSearchStrategy
MembershipSearchStrategy
for an application with no active directories associated.Enum Constant and Description |
---|
INSTANCE |
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> |
searchGroups(EntityQuery<T> query)
Returns a
List<Group> or List<String> groupnames matching the search criteria defined in the query. |
<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> |
searchUsers(EntityQuery<T> query)
Returns a
List<User> or List<String> matching the search criteria defined in the query. |
static NoDirectorySearchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoDirectorySearchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoDirectorySearchStrategy INSTANCE
public static NoDirectorySearchStrategy[] values()
for (NoDirectorySearchStrategy c : NoDirectorySearchStrategy.values()) System.out.println(c);
public static NoDirectorySearchStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T> List<T> searchUsers(EntityQuery<T> query)
UserSearchStrategy
List<User>
or List<String>
matching the search criteria defined in the query.
The users will be returned in a stable order including across pagination boundaries (excluding modification).
searchUsers
in interface UserSearchStrategy
query
- the search query.List<User>
user objects or List<String>
usernames, depending on the query.public <T> List<T> searchGroups(EntityQuery<T> query)
GroupSearchStrategy
List<Group>
or List<String>
groupnames matching the search criteria defined in the query.
The groups will be returned in a stable order including across pagination boundaries (excluding modification).
searchGroups
in interface GroupSearchStrategy
query
- the search query.List<Group>
group objects or List<String>
groupnames, depending on the query.public <T> List<T> searchDirectGroupRelationships(MembershipQuery<T> query)
MembershipSearchStrategy
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.
searchDirectGroupRelationships
in interface MembershipSearchStrategy
query
- membership query.User
entities,
Group
entities,
String
usernames or String
group names matching the query criteria.public <T> List<T> searchNestedGroupRelationships(MembershipQuery<T> query)
MembershipSearchStrategy
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.
searchNestedGroupRelationships
in interface MembershipSearchStrategy
query
- membership query.User
entities,
Group
entities,
String
usernames or String
group names matching the query criteria.public <T> com.google.common.collect.ListMultimap<String,T> searchDirectGroupRelationshipsGroupedByName(MembershipQuery<T> query)
MembershipSearchStrategy
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.
searchDirectGroupRelationshipsGroupedByName
in interface MembershipSearchStrategy
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 © 2021 Atlassian. All rights reserved.