Package com.google.gerrit.server.change
Class SuggestChangeReviewers
- java.lang.Object
-
- com.google.gerrit.server.change.SuggestReviewers
-
- com.google.gerrit.server.change.SuggestChangeReviewers
-
- All Implemented Interfaces:
RestReadView<ChangeResource>
,RestView<ChangeResource>
public class SuggestChangeReviewers extends SuggestReviewers implements RestReadView<ChangeResource>
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.change.SuggestReviewers
dbProvider, identifiedUserFactory, limit, maxSuggestedReviewers, query, reviewersUtil
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SuggestedReviewerInfo>
apply(ChangeResource rsrc)
Process the view operation by reading from the resource.-
Methods inherited from class com.google.gerrit.server.change.SuggestReviewers
getLimit, getMaxAllowed, getMaxAllowedWithoutConfirmation, getQuery, getSuggestAccounts, setLimit, setQuery
-
-
-
-
Method Detail
-
apply
public List<SuggestedReviewerInfo> apply(ChangeResource rsrc) throws AuthException, BadRequestException, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<ChangeResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this view.com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-