Class SuggestChangeReviewers
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.SuggestReviewers
-
- com.google.gerrit.server.restapi.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.restapi.change.SuggestReviewers
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.restapi.change.SuggestReviewers
configListener, getLimit, getMaxAllowed, getMaxAllowedWithoutConfirmation, getQuery, getSuggestAccounts, setLimit, setQuery
-
-
-
-
Method Detail
-
apply
public List<SuggestedReviewerInfo> apply(ChangeResource rsrc) throws AuthException, BadRequestException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
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.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-