Enum Class NoDirectorySearchStrategy
- All Implemented Interfaces:
GroupSearchStrategy
,MembershipSearchStrategy
,UserSearchStrategy
,Serializable
,Comparable<NoDirectorySearchStrategy>
,Constable
MembershipSearchStrategy
for an application with no active directories associated.- Since:
- 2.9
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription<T> PagedSearcher<T>
createPagedGroupSearcher
(EntityQuery<T> query) <T> PagedSearcher<T>
createPagedUserSearcher
(EntityQuery<T> query) <T> List<T>
Searches for direct group relationships in any of the application's active assigned directories.<T> com.google.common.collect.ListMultimap<String,
T> Searches for direct group relationships in any of the application's active assigned directories.<T> List<T>
searchGroups
(EntityQuery<T> query) Returns aList<Group>
orList<String>
groupnames matching the search criteria defined in the query.<T> List<T>
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 aList<User>
orList<String>
matching the search criteria defined in the query.static NoDirectorySearchStrategy
Returns the enum constant of this class with the specified name.static NoDirectorySearchStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
searchUsers
Description copied from interface:UserSearchStrategy
Returns aList<User>
orList<String>
matching the search criteria defined in the query.The users will be returned in a stable order including across pagination boundaries (excluding modification).
- Specified by:
searchUsers
in interfaceUserSearchStrategy
- Parameters:
query
- the search query.- Returns:
List<User>
user objects orList<String>
usernames, depending on the query.
-
searchGroups
Description copied from interface:GroupSearchStrategy
Returns aList<Group>
orList<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).
- Specified by:
searchGroups
in interfaceGroupSearchStrategy
- Parameters:
query
- the search query.- Returns:
List<Group>
group objects orList<String>
groupnames, depending on the query.
-
searchDirectGroupRelationships
Description copied from interface:MembershipSearchStrategy
Searches for direct group relationships in any of the application's active assigned directories.When searching for the groups an entity is a member of, the
membership aggregation semantic
will determine whether only the owning directory (whenfalse
) or all directories (whentrue
) will be searched.- Specified by:
searchDirectGroupRelationships
in interfaceMembershipSearchStrategy
- Parameters:
query
- membership query.- Returns:
- List of
User
entities,Group
entities,String
usernames orString
group names matching the query criteria.
-
searchNestedGroupRelationships
Description copied from interface:MembershipSearchStrategy
Searches for direct and indirect (nested) group relationships in any of the application's active assigned directories.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.
- Specified by:
searchNestedGroupRelationships
in interfaceMembershipSearchStrategy
- Parameters:
query
- membership query.- Returns:
- List of
User
entities,Group
entities,String
usernames orString
group names matching the query criteria.
-
searchDirectGroupRelationshipsGroupedByName
public <T> com.google.common.collect.ListMultimap<String,T> searchDirectGroupRelationshipsGroupedByName(MembershipQuery<T> query) Description copied from interface:MembershipSearchStrategy
Searches for direct group relationships in any of the application's active assigned directories.When searching for the groups an entity is a member of, the
membership aggregation semantic
will determine whether only the owning directory (whenfalse
) or all directories (whentrue
) will be searched.- Specified by:
searchDirectGroupRelationshipsGroupedByName
in interfaceMembershipSearchStrategy
- Parameters:
query
- membership query.- Returns:
ListMultimap
where keys are elements ofMembershipQuery.getEntityNamesToMatch()
and values are List ofUser
entities,Group
entities,String
usernames orString
group names matching the query criteria for the given key.
-
createPagedUserSearcher
- Specified by:
createPagedUserSearcher
in interfaceUserSearchStrategy
- See Also:
-
createPagedGroupSearcher
- Specified by:
createPagedGroupSearcher
in interfaceGroupSearchStrategy
- See Also:
-