Package com.google.gerrit.server.change
Interface ReviewerSuggestion
-
public interface ReviewerSuggestion
Listener to provide reviewer suggestions.Invoked by Gerrit when a user clicks "Add Reviewer" on a change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<SuggestedReviewer>
suggestReviewers(Project.NameKey project, Change.Id changeId, String query, Set<Account.Id> candidates)
Suggest reviewers to add to a change.
-
-
-
Method Detail
-
suggestReviewers
Set<SuggestedReviewer> suggestReviewers(Project.NameKey project, Change.Id changeId, String query, Set<Account.Id> candidates)
Suggest reviewers to add to a change.- Parameters:
project
- The name key of the project the suggestion is for.changeId
- The changeId that the suggestion is for. Can benull
.query
- The query as typed by the user. Can benull
.candidates
- A set of candidates for the ranking. Can be empty.- Returns:
- Set of
SuggestedReviewer
s. TheAccount.Id
s listed here don't have to be included incandidates
.
-
-