public class DirectoryEntitySearchServiceImpl extends Object implements DirectoryEntitySearchService
Constructor and Description |
---|
DirectoryEntitySearchServiceImpl(DirectoryManager directoryManager,
UserPermissionService userPermissionService,
SearchStrategyFactory searchStrategyFactory,
GroupAdministrationPermissionService groupAdministrationPermissionService) |
Modifier and Type | Method and Description |
---|---|
List<Group> |
searchGroups(EntityQuery<Group> query,
List<Directory> optionalDirectories)
Returns groups matching
groupsQuery . |
List<User> |
searchPotentialMembers(EntityQuery<User> query,
long directoryId,
String groupName)
Returns users that can be assigned as members of the specified group.
|
List<User> |
searchUsers(EntityQuery<User> query,
List<Directory> optionalDirectories)
Returns users matching
usersQuery . |
public DirectoryEntitySearchServiceImpl(DirectoryManager directoryManager, UserPermissionService userPermissionService, SearchStrategyFactory searchStrategyFactory, GroupAdministrationPermissionService groupAdministrationPermissionService)
public List<User> searchUsers(EntityQuery<User> query, List<Directory> optionalDirectories) throws DirectoryNotFoundException, OperationFailedException, FeatureInaccessibleException
DirectoryEntitySearchService
usersQuery
.
Requires a user context, and only allows searches in directories that the current user can administer.searchUsers
in interface DirectoryEntitySearchService
query
- users queryoptionalDirectories
- if not empty, search will be restricted to the specified directoriesDirectoryNotFoundException
OperationFailedException
FeatureInaccessibleException
public List<User> searchPotentialMembers(EntityQuery<User> query, long directoryId, String groupName) throws DirectoryNotFoundException, GroupNotFoundException, OperationFailedException, UserNotFoundException, FeatureInaccessibleException
DirectoryEntitySearchService
searchPotentialMembers
in interface DirectoryEntitySearchService
query
- users querydirectoryId
- directory id of the groupgroupName
- group nameDirectoryNotFoundException
GroupNotFoundException
OperationFailedException
UserNotFoundException
FeatureInaccessibleException
public List<Group> searchGroups(EntityQuery<Group> query, List<Directory> optionalDirectories) throws DirectoryNotFoundException, OperationFailedException, FeatureInaccessibleException
DirectoryEntitySearchService
groupsQuery
.
Requires a user context, and only allows searches in directories that the current user can administer.searchGroups
in interface DirectoryEntitySearchService
query
- groups queryoptionalDirectories
- if not empty, search will be restricted to the specified directoriesDirectoryNotFoundException
OperationFailedException
FeatureInaccessibleException
Copyright © 2019 Atlassian. All rights reserved.