@ExperimentalApi
public interface ReviewerSearchService
Modifier and Type | Method and Description |
---|---|
Page<ReviewerSearchResult.UserResult> |
getGroupMembersAllowedForReview(PermId<ReviewData> reviewId,
java.lang.String group,
PageRequest pageRequest)
Get paged list of group members which could be valid reviewers
|
Page<ReviewerSearchResult> |
searchReviewers(PermId<ReviewData> reviewId,
java.lang.String query,
PageRequest pageRequest,
boolean includeUsers,
boolean includeGroups)
Get paged list of users (which are allowed to review) and groups matching given query
|
Page<ReviewerSearchResult> searchReviewers(PermId<ReviewData> reviewId, java.lang.String query, PageRequest pageRequest, boolean includeUsers, boolean includeGroups)
reviewId
- review id determining allowed reviewersquery
- the query string to search groups containing the string in the name, and to search users containing the string in username, name and emailpageRequest
- the page request objectincludeUsers
- true if it should search users by username, displayname and emailincludeGroups
- true if it should search groups by nameNotPermittedException
- if the authenticated user has no permission to edit the reviewNotFoundException
- if the review doesn't existPage<ReviewerSearchResult.UserResult> getGroupMembersAllowedForReview(PermId<ReviewData> reviewId, java.lang.String group, PageRequest pageRequest)
reviewId
- review id determining allowed reviewersgroup
- group name whose members should be returned, if the group doesn't exists, empty results will be returnedpageRequest
- the page request objectNotPermittedException
- if the authenticated user has no permission to edit the reviewNotFoundException
- if the review doesn't exist