public class RevisionApiRestClient extends RevisionApi.NotImplemented implements RevisionApi
RevisionApi.MergeListRequest, RevisionApi.NotImplemented| Constructor and Description |
|---|
RevisionApiRestClient(GerritRestClient gerritRestClient,
ChangeApiRestClient changeApiRestClient,
CommentsParser commentsParser,
FileInfoParser fileInfoParser,
DiffInfoParser diffInfoParser,
ReviewResultParser reviewResultParser,
String revision) |
| Modifier and Type | Method and Description |
|---|---|
ChangeApi |
cherryPick(CherryPickInput in) |
TreeMap<String,List<CommentInfo>> |
comments()
Support starting from Gerrit 2.7.
|
DraftApi |
createDraft(DraftInput in) |
void |
delete() |
DraftApi |
draft(String id) |
TreeMap<String,List<CommentInfo>> |
drafts() |
FileApi |
file(String path) |
Map<String,FileInfo> |
files() |
Map<String,FileInfo> |
files(int parentNum) |
protected String |
getRequestPath() |
BinaryResult |
patch()
Returns patch of revision.
|
void |
publish() |
ChangeApi |
rebase() |
ChangeApi |
rebase(RebaseInput in) |
ReviewResult |
review(ReviewInput reviewInput) |
String |
revision() |
void |
setReviewed(String path,
boolean reviewed) |
void |
submit() |
void |
submit(SubmitInput submitInput) |
SubmitType |
submitType() |
SubmitType |
testSubmitType(TestSubmitRuleInput in) |
actions, applyFix, canRebase, comment, commentsAsList, commit, description, description, draftsAsList, etag, files, getMergeList, mergeable, mergeableOtherBranches, patch, queryFiles, reviewed, reviewer, robotComment, robotComments, robotCommentsAsList, submitPreview, submitPreviewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactions, applyFix, canRebase, comment, commentsAsList, commit, description, description, draftsAsList, etag, files, getMergeList, mergeable, mergeableOtherBranches, patch, queryFiles, reviewed, reviewer, robotComment, robotComments, robotCommentsAsList, submitPreview, submitPreviewpublic RevisionApiRestClient(GerritRestClient gerritRestClient, ChangeApiRestClient changeApiRestClient, CommentsParser commentsParser, FileInfoParser fileInfoParser, DiffInfoParser diffInfoParser, ReviewResultParser reviewResultParser, String revision)
public String revision()
public void delete()
throws RestApiException
delete in interface RevisionApidelete in class RevisionApi.NotImplementedRestApiExceptionpublic ReviewResult review(ReviewInput reviewInput) throws RestApiException
review in interface RevisionApireview in class RevisionApi.NotImplementedRestApiExceptionpublic void submit()
throws RestApiException
submit in interface RevisionApisubmit in class RevisionApi.NotImplementedRestApiExceptionpublic void submit(SubmitInput submitInput) throws RestApiException
submit in interface RevisionApisubmit in class RevisionApi.NotImplementedRestApiExceptionpublic void publish()
throws RestApiException
publish in interface RevisionApipublish in class RevisionApi.NotImplementedRestApiExceptionpublic ChangeApi cherryPick(CherryPickInput in) throws RestApiException
cherryPick in interface RevisionApicherryPick in class RevisionApi.NotImplementedRestApiExceptionpublic ChangeApi rebase() throws RestApiException
rebase in interface RevisionApirebase in class RevisionApi.NotImplementedRestApiExceptionpublic ChangeApi rebase(RebaseInput in) throws RestApiException
rebase in interface RevisionApirebase in class RevisionApi.NotImplementedRestApiExceptionpublic void setReviewed(String path, boolean reviewed) throws RestApiException
setReviewed in interface RevisionApisetReviewed in class RevisionApi.NotImplementedRestApiExceptionpublic TreeMap<String,List<CommentInfo>> comments() throws RestApiException
comments in interface RevisionApicomments in class RevisionApi.NotImplementedRestApiExceptionpublic TreeMap<String,List<CommentInfo>> drafts() throws RestApiException
drafts in interface RevisionApidrafts in class RevisionApi.NotImplementedRestApiExceptionpublic DraftApi createDraft(DraftInput in) throws RestApiException
createDraft in interface RevisionApicreateDraft in class RevisionApi.NotImplementedRestApiExceptionpublic DraftApi draft(String id) throws RestApiException
draft in interface RevisionApidraft in class RevisionApi.NotImplementedRestApiExceptionpublic Map<String,FileInfo> files() throws RestApiException
files in interface RevisionApifiles in class RevisionApi.NotImplementedRestApiExceptionpublic Map<String,FileInfo> files(int parentNum) throws RestApiException
files in interface RevisionApifiles in class RevisionApi.NotImplementedRestApiExceptionpublic FileApi file(String path)
file in interface RevisionApifile in class RevisionApi.NotImplementedpublic BinaryResult patch() throws RestApiException
RevisionApipatch in interface RevisionApipatch in class RevisionApi.NotImplementedRestApiExceptionpublic SubmitType submitType() throws RestApiException
submitType in interface RevisionApisubmitType in class RevisionApi.NotImplementedRestApiExceptionpublic SubmitType testSubmitType(TestSubmitRuleInput in) throws RestApiException
testSubmitType in interface RevisionApitestSubmitType in class RevisionApi.NotImplementedRestApiExceptionprotected String getRequestPath()
Copyright © 2018. All rights reserved.