public class ReviewerAdder extends 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 |
Modifier and Type | Method and Description |
---|---|
ReviewerAdder.ReviewerAddition |
ccCurrentUser(CurrentUser user,
RevisionResource revision) |
static boolean |
isLegalReviewerGroup(AccountGroup.UUID groupUUID) |
static ReviewerAdder.InternalAddReviewerInput |
newAddReviewerInput(Account.Id reviewer,
ReviewerState state,
NotifyHandling notify) |
static ReviewerAdder.InternalAddReviewerInput |
newAddReviewerInput(String reviewer,
ReviewerState state,
NotifyHandling notify) |
static Optional<ReviewerAdder.InternalAddReviewerInput> |
newAddReviewerInputFromCommitIdentity(Change change,
Account.Id accountId,
NotifyHandling notify) |
ReviewerAdder.ReviewerAddition |
prepare(ChangeNotes notes,
CurrentUser user,
AddReviewerInput input,
boolean allowGroup)
Prepare application of a single
AddReviewerInput . |
ReviewerAdder.ReviewerAdditionList |
prepare(ChangeNotes notes,
CurrentUser user,
Iterable<? extends AddReviewerInput> inputs,
boolean allowGroup) |
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(String reviewer, ReviewerState state, NotifyHandling notify)
public static Optional<ReviewerAdder.InternalAddReviewerInput> newAddReviewerInputFromCommitIdentity(Change change, Account.Id accountId, NotifyHandling notify)
public ReviewerAdder.ReviewerAddition prepare(ChangeNotes notes, CurrentUser user, AddReviewerInput input, boolean allowGroup) throws 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 occurredIOException
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, Iterable<? extends AddReviewerInput> inputs, boolean allowGroup) throws IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException