@ExperimentalApi
public interface DirectoryEntitySearchService
| Modifier and Type | Method and Description |
|---|---|
List<Group> |
searchGroups(EntityQuery<Group> groupsQuery,
List<com.atlassian.crowd.embedded.api.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<com.atlassian.crowd.embedded.api.Directory> directoriesRestriction)
Returns users matching
usersQuery. |
List<User> searchUsers(EntityQuery<User> usersQuery, List<com.atlassian.crowd.embedded.api.Directory> directoriesRestriction) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, IllegalAccessException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.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 directoriescom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionIllegalAccessExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionList<User> searchPotentialMembers(EntityQuery<User> usersQuery, long directoryId, String groupName) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.FeatureInaccessibleException
usersQuery - users querydirectoryId - directory id of the groupgroupName - group namecom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionList<Group> searchGroups(EntityQuery<Group> groupsQuery, List<com.atlassian.crowd.embedded.api.Directory> directoriesRestriction) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException, IllegalAccessException, com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.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 directoriescom.atlassian.crowd.exception.DirectoryNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionIllegalAccessExceptioncom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.FeatureInaccessibleExceptionCopyright © 2023 Atlassian. All rights reserved.