Package com.google.gerrit.server.change
Class PostReviewers
- java.lang.Object
-
- com.google.gerrit.server.update.RetryingRestModifyView<ChangeResource,AddReviewerInput,AddReviewerResult>
-
- com.google.gerrit.server.change.PostReviewers
-
- All Implemented Interfaces:
RestModifyView<ChangeResource,AddReviewerInput>
,RestView<ChangeResource>
public class PostReviewers extends RetryingRestModifyView<ChangeResource,AddReviewerInput,AddReviewerResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PostReviewers.Addition
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_REVIEWERS
static int
DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AddReviewerResult
applyImpl(BatchUpdate.Factory updateFactory, ChangeResource rsrc, AddReviewerInput input)
static boolean
isLegalReviewerGroup(AccountGroup.UUID groupUUID)
PostReviewers.Addition
prepareApplication(ChangeResource rsrc, AddReviewerInput input, boolean allowGroup)
-
Methods inherited from class com.google.gerrit.server.update.RetryingRestModifyView
apply
-
-
-
-
Field Detail
-
DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK
public static final int DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK
- See Also:
- Constant Field Values
-
DEFAULT_MAX_REVIEWERS
public static final int DEFAULT_MAX_REVIEWERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
applyImpl
protected AddReviewerResult applyImpl(BatchUpdate.Factory updateFactory, ChangeResource rsrc, AddReviewerInput input) throws IOException, com.google.gwtorm.server.OrmException, RestApiException, UpdateException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
- Specified by:
applyImpl
in classRetryingRestModifyView<ChangeResource,AddReviewerInput,AddReviewerResult>
- Throws:
IOException
com.google.gwtorm.server.OrmException
RestApiException
UpdateException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException
-
prepareApplication
public PostReviewers.Addition prepareApplication(ChangeResource rsrc, AddReviewerInput input, boolean allowGroup) throws com.google.gwtorm.server.OrmException, IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException
-
isLegalReviewerGroup
public static boolean isLegalReviewerGroup(AccountGroup.UUID groupUUID)
-
-