Class AddReviewerResult
- java.lang.Object
-
- com.google.gerrit.extensions.api.changes.AddReviewerResult
-
public class AddReviewerResult extends Object
Result object representing the outcome of a request to add a reviewer.
-
-
Field Summary
Fields Modifier and Type Field Description List<AccountInfo>
ccs
List of accounts CCed on the change.Boolean
confirm
Non-null and true if the reviewer cannot be added without explicit confirmation.String
error
If non-null, a string describing why the reviewer could not be added.String
input
The identifier of an account or group that was to be added as a reviewer.List<ReviewerInfo>
reviewers
List of individual reviewers added to the change.
-
Constructor Summary
Constructors Constructor Description AddReviewerResult(String input)
Constructs a partially initialized result for the given reviewer.AddReviewerResult(String reviewer, boolean confirm)
Constructs a needs-confirmation result for the given account.AddReviewerResult(String reviewer, String error)
Constructs an error result for the given account.
-
-
-
Field Detail
-
input
public String input
The identifier of an account or group that was to be added as a reviewer.
-
error
public String error
If non-null, a string describing why the reviewer could not be added.
-
confirm
public Boolean confirm
Non-null and true if the reviewer cannot be added without explicit confirmation. This may be the case for groups of a certain size.
-
reviewers
public List<ReviewerInfo> reviewers
List of individual reviewers added to the change. The size of this list may be greater than one (e.g. when a group is added). Null if no reviewers were added.
-
ccs
public List<AccountInfo> ccs
List of accounts CCed on the change. The size of this list may be greater than one (e.g. when a group is CCed). Null if no accounts were CCed or if reviewers is non-null.
-
-
Constructor Detail
-
AddReviewerResult
public AddReviewerResult(String input)
Constructs a partially initialized result for the given reviewer.- Parameters:
input
- String identifier of an account or group, from user request
-
AddReviewerResult
public AddReviewerResult(String reviewer, String error)
Constructs an error result for the given account.- Parameters:
reviewer
- String identifier of an account or grouperror
- Error message
-
AddReviewerResult
public AddReviewerResult(String reviewer, boolean confirm)
Constructs a needs-confirmation result for the given account.- Parameters:
confirm
- Whether confirmation is needed.
-
-