public class ChangeApiRestClient extends ChangeApi.NotImplemented implements ChangeApi
ChangeApi.NotImplemented, ChangeApi.SuggestedReviewersRequest| Constructor and Description |
|---|
ChangeApiRestClient(GerritRestClient gerritRestClient,
ChangesRestClient changesRestClient,
ChangesParser changesParser,
CommentsParser commentsParser,
IncludedInInfoParser includedInInfoParser,
FileInfoParser fileInfoParser,
DiffInfoParser diffInfoParser,
AddReviewerResultParser addReviewerResultParser,
ReviewResultParser reviewResultParser,
SuggestedReviewerInfoParser suggestedReviewerInfoParser,
ReviewerInfoParser reviewerInfoParser,
EditInfoParser editInfoParser,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
abandon() |
void |
abandon(AbandonInput abandonInput) |
AddReviewerResult |
addReviewer(AddReviewerInput in) |
AddReviewerResult |
addReviewer(String in) |
ChangeInfo |
check() |
ChangeInfo |
check(FixInput in) |
Map<String,List<CommentInfo>> |
comments()
Get all published comments on a change.
|
RevisionApi |
current()
Look up the current revision for the change.
|
void |
delete()
Deletes a change.
|
ChangeInfo |
get()
get with ListChangesOption set to all except CHECK. |
ChangeInfo |
get(EnumSet<ListChangesOption> options) |
EditInfo |
getEdit()
Retrieve change edit when exists.
|
protected String |
getRequestPath() |
String |
id() |
IncludedInInfo |
includedIn() |
void |
index() |
ChangeInfo |
info()
get with ListChangesOption set to none. |
List<ReviewerInfo> |
listReviewers() |
void |
move(MoveInput moveInput) |
void |
move(String destinationBranch) |
void |
publish()
Publishes a draft change.
|
void |
restore() |
void |
restore(RestoreInput restoreInput) |
ChangeApi |
revert()
Create a new change that reverts this change.
|
ChangeApi |
revert(RevertInput revertInput)
Create a new change that reverts this change.
|
RevisionApi |
revision(int id)
Look up a revision of a change by number.
|
RevisionApi |
revision(String id)
Look up a revision of a change by commit SHA-1.
|
ChangeApi.SuggestedReviewersRequest |
suggestReviewers() |
ChangeApi.SuggestedReviewersRequest |
suggestReviewers(String query) |
String |
topic() |
void |
topic(String topic) |
createMergePatchSet, deleteAssignee, drafts, edit, getAssignee, getHashtags, getPastAssignees, ignore, ignored, markAsReviewed, message, messages, pureRevert, pureRevert, rebase, rebase, reviewer, robotComments, setAssignee, setHashtags, setMessage, setMessage, setPrivate, setReadyForReview, setWorkInProgress, submittedTogether, submittedTogether, submittedTogetherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMergePatchSet, deleteAssignee, drafts, edit, getAssignee, getHashtags, getPastAssignees, ignore, ignored, markAsReviewed, message, messages, pureRevert, pureRevert, rebase, rebase, reviewer, robotComments, setAssignee, setHashtags, setMessage, setMessage, setPrivate, setReadyForReview, setWorkInProgress, submittedTogether, submittedTogether, submittedTogetherpublic ChangeApiRestClient(GerritRestClient gerritRestClient, ChangesRestClient changesRestClient, ChangesParser changesParser, CommentsParser commentsParser, IncludedInInfoParser includedInInfoParser, FileInfoParser fileInfoParser, DiffInfoParser diffInfoParser, AddReviewerResultParser addReviewerResultParser, ReviewResultParser reviewResultParser, SuggestedReviewerInfoParser suggestedReviewerInfoParser, ReviewerInfoParser reviewerInfoParser, EditInfoParser editInfoParser, String id)
public String id()
id in interface ChangeApiid in class ChangeApi.NotImplementedpublic RevisionApi current() throws RestApiException
ChangeApiNote: This method eagerly reads the revision. Methods that mutate the
revision do not necessarily re-read the revision. Therefore, calling a getter method on an
instance after calling a mutation method on that same instance is not guaranteed to reflect the
mutation. It is not recommended to store references to RevisionApi instances.
current in interface ChangeApicurrent in class ChangeApi.NotImplementedRestApiException - if an error occurred.public RevisionApi revision(int id) throws RestApiException
ChangeApirevision in interface ChangeApirevision in class ChangeApi.NotImplementedRestApiExceptionChangeApi.current()public RevisionApi revision(String id) throws RestApiException
ChangeApirevision in interface ChangeApirevision in class ChangeApi.NotImplementedRestApiExceptionChangeApi.current()public void abandon()
throws RestApiException
abandon in interface ChangeApiabandon in class ChangeApi.NotImplementedRestApiExceptionpublic void abandon(AbandonInput abandonInput) throws RestApiException
abandon in interface ChangeApiabandon in class ChangeApi.NotImplementedRestApiExceptionpublic void restore()
throws RestApiException
restore in interface ChangeApirestore in class ChangeApi.NotImplementedRestApiExceptionpublic void restore(RestoreInput restoreInput) throws RestApiException
restore in interface ChangeApirestore in class ChangeApi.NotImplementedRestApiExceptionpublic void move(String destinationBranch) throws RestApiException
move in interface ChangeApimove in class ChangeApi.NotImplementedRestApiExceptionpublic void move(MoveInput moveInput) throws RestApiException
move in interface ChangeApimove in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeApi revert() throws RestApiException
ChangeApirevert in interface ChangeApirevert in class ChangeApi.NotImplementedRestApiExceptionChanges.id(int)public ChangeApi revert(RevertInput revertInput) throws RestApiException
ChangeApirevert in interface ChangeApirevert in class ChangeApi.NotImplementedRestApiExceptionChanges.id(int)public void publish()
throws RestApiException
ChangeApipublish in interface ChangeApipublish in class ChangeApi.NotImplementedRestApiExceptionpublic void delete()
throws RestApiException
ChangeApidelete in interface ChangeApidelete in class ChangeApi.NotImplementedRestApiExceptionpublic String topic() throws RestApiException
topic in interface ChangeApitopic in class ChangeApi.NotImplementedRestApiExceptionpublic void topic(String topic) throws RestApiException
topic in interface ChangeApitopic in class ChangeApi.NotImplementedRestApiExceptionpublic IncludedInInfo includedIn() throws RestApiException
includedIn in interface ChangeApiincludedIn in class ChangeApi.NotImplementedRestApiExceptionpublic List<ReviewerInfo> listReviewers() throws RestApiException
listReviewers in interface ChangeApilistReviewers in class ChangeApi.NotImplementedRestApiExceptionpublic AddReviewerResult addReviewer(AddReviewerInput in) throws RestApiException
addReviewer in interface ChangeApiaddReviewer in class ChangeApi.NotImplementedRestApiExceptionpublic AddReviewerResult addReviewer(String in) throws RestApiException
addReviewer in interface ChangeApiaddReviewer in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeApi.SuggestedReviewersRequest suggestReviewers() throws RestApiException
suggestReviewers in interface ChangeApisuggestReviewers in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeApi.SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException
suggestReviewers in interface ChangeApisuggestReviewers in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeInfo get(EnumSet<ListChangesOption> options) throws RestApiException
get in interface ChangeApiget in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeInfo get() throws RestApiException
ChangeApiget with ListChangesOption set to all except CHECK.get in interface ChangeApiget in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeInfo info() throws RestApiException
ChangeApiget with ListChangesOption set to none.info in interface ChangeApiinfo in class ChangeApi.NotImplementedRestApiExceptionpublic EditInfo getEdit() throws RestApiException
ChangeApigetEdit in interface ChangeApigetEdit in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeInfo check() throws RestApiException
check in interface ChangeApicheck in class ChangeApi.NotImplementedRestApiExceptionpublic ChangeInfo check(FixInput in) throws RestApiException
check in interface ChangeApicheck in class ChangeApi.NotImplementedRestApiExceptionpublic Map<String,List<CommentInfo>> comments() throws RestApiException
ChangeApicomments in interface ChangeApicomments in class ChangeApi.NotImplementedrevision field set to
indicate their patch set.RestApiExceptionpublic void index()
throws RestApiException
index in interface ChangeApiindex in class ChangeApi.NotImplementedRestApiExceptionprotected String getRequestPath()
Copyright © 2018. All rights reserved.