public class ReviewerAdder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReviewerAdder.FailureBehavior |
static class |
ReviewerAdder.InternalAddReviewerInput |
class |
ReviewerAdder.ReviewerAddition |
static class |
ReviewerAdder.ReviewerAdditionList |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_REVIEWERS |
static int |
DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK |
public static final int DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK
public static final int DEFAULT_MAX_REVIEWERS
public static ReviewerAdder.InternalAddReviewerInput newAddReviewerInput(Account.Id reviewer, ReviewerState state, NotifyHandling notify)
public static ReviewerAdder.InternalAddReviewerInput newAddReviewerInput(java.lang.String reviewer, ReviewerState state, NotifyHandling notify)
public static java.util.Optional<ReviewerAdder.InternalAddReviewerInput> newAddReviewerInputFromCommitIdentity(Change change, Account.Id accountId, NotifyHandling notify)
public ReviewerAdder.ReviewerAddition prepare(ChangeNotes notes, CurrentUser user, AddReviewerInput input, boolean allowGroup) throws java.io.IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
AddReviewerInput
.notes
- change notes.user
- user performing the reviewer addition.input
- input describing user or group to add as a reviewer.allowGroup
- whether to allowop
field is present, this
operation may be added to a BatchUpdate
. Otherwise, the error
field
contains information about an error that occurredjava.io.IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException
public ReviewerAdder.ReviewerAddition ccCurrentUser(CurrentUser user, RevisionResource revision)
public static boolean isLegalReviewerGroup(AccountGroup.UUID groupUUID)
public ReviewerAdder.ReviewerAdditionList prepare(ChangeNotes notes, CurrentUser user, java.lang.Iterable<? extends AddReviewerInput> inputs, boolean allowGroup) throws java.io.IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException