@ExperimentalApi
public interface DirectoryEntitySearchService
Modifier and Type | Method and Description |
---|---|
List<Group> |
searchGroups(EntityQuery<Group> groupsQuery,
List<Directory> directoriesRestriction)
Returns groups matching
groupsQuery . |
List<User> |
searchPotentialMembers(EntityQuery<User> usersQuery,
long directoryId,
String groupName)
Returns users that can be assigned as members of the specified group.
|
List<User> |
searchUsers(EntityQuery<User> usersQuery,
List<Directory> directoriesRestriction)
Returns users matching
usersQuery . |
List<User> searchUsers(EntityQuery<User> usersQuery, List<Directory> directoriesRestriction) throws DirectoryNotFoundException, OperationFailedException, IllegalAccessException, UserNotFoundException, FeatureInaccessibleException
usersQuery
.
Requires a user context, and only allows searches in directories that the current user can administer.usersQuery
- users querydirectoriesRestriction
- if not empty, search will be restricted to the specified directoriesDirectoryNotFoundException
OperationFailedException
IllegalAccessException
UserNotFoundException
FeatureInaccessibleException
List<User> searchPotentialMembers(EntityQuery<User> usersQuery, long directoryId, String groupName) throws DirectoryNotFoundException, GroupNotFoundException, OperationFailedException, UserNotFoundException, FeatureInaccessibleException
usersQuery
- users querydirectoryId
- directory id of the groupgroupName
- group nameDirectoryNotFoundException
GroupNotFoundException
OperationFailedException
UserNotFoundException
FeatureInaccessibleException
List<Group> searchGroups(EntityQuery<Group> groupsQuery, List<Directory> directoriesRestriction) throws DirectoryNotFoundException, OperationFailedException, IllegalAccessException, UserNotFoundException, FeatureInaccessibleException
groupsQuery
.
Requires a user context, and only allows searches in directories that the current user can administer.groupsQuery
- groups querydirectoriesRestriction
- if not empty, search will be restricted to the specified directoriesDirectoryNotFoundException
OperationFailedException
IllegalAccessException
UserNotFoundException
FeatureInaccessibleException
Copyright © 2020 Atlassian. All rights reserved.