public class RevisionApiRestClient extends RevisionApi.NotImplemented implements RevisionApi
RevisionApi.NotImplemented
Constructor and Description |
---|
RevisionApiRestClient(com.urswolfer.gerrit.client.rest.http.GerritRestClient gerritRestClient,
com.urswolfer.gerrit.client.rest.http.changes.ChangeApiRestClient changeApiRestClient,
com.urswolfer.gerrit.client.rest.http.changes.CommentsParser commentsParser,
com.urswolfer.gerrit.client.rest.http.changes.FileInfoParser fileInfoParser,
com.urswolfer.gerrit.client.rest.http.changes.DiffInfoParser diffInfoParser,
String revision) |
Modifier and Type | Method and Description |
---|---|
TreeMap<String,List<com.google.gerrit.extensions.common.CommentInfo>> |
comments()
Support starting from Gerrit 2.7.
|
com.google.gerrit.extensions.api.changes.DraftApi |
createDraft(com.google.gerrit.extensions.api.changes.DraftInput in) |
void |
delete() |
com.google.gerrit.extensions.api.changes.DraftApi |
draft(String id) |
TreeMap<String,List<com.google.gerrit.extensions.common.CommentInfo>> |
drafts() |
com.google.gerrit.extensions.api.changes.FileApi |
file(String path) |
Map<String,com.google.gerrit.extensions.common.FileInfo> |
files() |
protected String |
getRequestPath() |
com.google.gerrit.extensions.restapi.BinaryResult |
patch()
Returns patch of revision.
|
void |
publish() |
com.google.gerrit.extensions.api.changes.ChangeApi |
rebase() |
com.google.gerrit.extensions.api.changes.ChangeApi |
rebase(com.google.gerrit.extensions.api.changes.RebaseInput in) |
void |
review(com.google.gerrit.extensions.api.changes.ReviewInput reviewInput) |
String |
revision() |
void |
setReviewed(String path,
boolean reviewed) |
void |
submit() |
void |
submit(com.google.gerrit.extensions.api.changes.SubmitInput submitInput) |
VerifyStatusApi |
verifyStatus() |
actions, canRebase, cherryPick, comment, commentsAsList, draftsAsList, files, mergeable, mergeableOtherBranches, reviewed, submitType, testSubmitType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actions, canRebase, cherryPick, comment, commentsAsList, draftsAsList, files, mergeable, mergeableOtherBranches, reviewed, submitType, testSubmitType
public RevisionApiRestClient(com.urswolfer.gerrit.client.rest.http.GerritRestClient gerritRestClient, com.urswolfer.gerrit.client.rest.http.changes.ChangeApiRestClient changeApiRestClient, com.urswolfer.gerrit.client.rest.http.changes.CommentsParser commentsParser, com.urswolfer.gerrit.client.rest.http.changes.FileInfoParser fileInfoParser, com.urswolfer.gerrit.client.rest.http.changes.DiffInfoParser diffInfoParser, String revision)
public String revision()
public void delete() throws com.google.gerrit.extensions.restapi.RestApiException
delete
in interface RevisionApi
delete
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public void review(com.google.gerrit.extensions.api.changes.ReviewInput reviewInput) throws com.google.gerrit.extensions.restapi.RestApiException
review
in interface RevisionApi
review
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public VerifyStatusApi verifyStatus() throws com.google.gerrit.extensions.restapi.RestApiException
verifyStatus
in interface RevisionApi
verifyStatus
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public void submit() throws com.google.gerrit.extensions.restapi.RestApiException
submit
in interface RevisionApi
submit
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public void submit(com.google.gerrit.extensions.api.changes.SubmitInput submitInput) throws com.google.gerrit.extensions.restapi.RestApiException
submit
in interface RevisionApi
submit
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public void publish() throws com.google.gerrit.extensions.restapi.RestApiException
publish
in interface RevisionApi
publish
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public com.google.gerrit.extensions.api.changes.ChangeApi rebase() throws com.google.gerrit.extensions.restapi.RestApiException
rebase
in interface RevisionApi
rebase
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public com.google.gerrit.extensions.api.changes.ChangeApi rebase(com.google.gerrit.extensions.api.changes.RebaseInput in) throws com.google.gerrit.extensions.restapi.RestApiException
rebase
in interface RevisionApi
rebase
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public void setReviewed(String path, boolean reviewed) throws com.google.gerrit.extensions.restapi.RestApiException
setReviewed
in interface RevisionApi
setReviewed
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public TreeMap<String,List<com.google.gerrit.extensions.common.CommentInfo>> comments() throws com.google.gerrit.extensions.restapi.RestApiException
comments
in interface RevisionApi
comments
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public TreeMap<String,List<com.google.gerrit.extensions.common.CommentInfo>> drafts() throws com.google.gerrit.extensions.restapi.RestApiException
drafts
in interface RevisionApi
drafts
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public com.google.gerrit.extensions.api.changes.DraftApi createDraft(com.google.gerrit.extensions.api.changes.DraftInput in) throws com.google.gerrit.extensions.restapi.RestApiException
createDraft
in interface RevisionApi
createDraft
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public com.google.gerrit.extensions.api.changes.DraftApi draft(String id) throws com.google.gerrit.extensions.restapi.RestApiException
draft
in interface RevisionApi
draft
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public Map<String,com.google.gerrit.extensions.common.FileInfo> files() throws com.google.gerrit.extensions.restapi.RestApiException
files
in interface RevisionApi
files
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
public com.google.gerrit.extensions.api.changes.FileApi file(String path)
file
in interface RevisionApi
file
in class RevisionApi.NotImplemented
public com.google.gerrit.extensions.restapi.BinaryResult patch() throws com.google.gerrit.extensions.restapi.RestApiException
RevisionApi
patch
in interface RevisionApi
patch
in class RevisionApi.NotImplemented
com.google.gerrit.extensions.restapi.RestApiException
protected String getRequestPath()
Copyright © 2016. All rights reserved.