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 |
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(ReviewDb db, ChangeNotes notes, CurrentUser user, AddReviewerInput input, boolean allowGroup) throws com.google.gwtorm.server.OrmException, IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
AddReviewerInput
.db
- database.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 occurredcom.google.gwtorm.server.OrmException
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(ReviewDb db, ChangeNotes notes, CurrentUser user, Iterable<? extends AddReviewerInput> inputs, boolean allowGroup) throws com.google.gwtorm.server.OrmException, IOException, PermissionBackendException, org.eclipse.jgit.errors.ConfigInvalidException
com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
org.eclipse.jgit.errors.ConfigInvalidException