Class RevisionApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.changes.RevisionApi.NotImplemented
-
- All Implemented Interfaces:
RevisionApi
- Enclosing interface:
- RevisionApi
public static class RevisionApi.NotImplemented extends Object implements RevisionApi
A default implementation which allows source compatibility when adding new methods to the interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.changes.RevisionApi
RevisionApi.MergeListRequest, RevisionApi.NotImplemented
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.extensions.api.changes.RevisionApi
files, rebase, submit
-
-
-
-
Method Detail
-
review
public ReviewResult review(ReviewInput in) throws RestApiException
- Specified by:
review
in interfaceRevisionApi
- Throws:
RestApiException
-
submit
public ChangeInfo submit(SubmitInput in) throws RestApiException
- Specified by:
submit
in interfaceRevisionApi
- Throws:
RestApiException
-
cherryPick
public ChangeApi cherryPick(CherryPickInput in) throws RestApiException
- Specified by:
cherryPick
in interfaceRevisionApi
- Throws:
RestApiException
-
cherryPickAsInfo
public ChangeInfo cherryPickAsInfo(CherryPickInput in) throws RestApiException
- Specified by:
cherryPickAsInfo
in interfaceRevisionApi
- Throws:
RestApiException
-
rebase
public ChangeApi rebase(RebaseInput in) throws RestApiException
- Specified by:
rebase
in interfaceRevisionApi
- Throws:
RestApiException
-
rebaseAsInfo
public ChangeInfo rebaseAsInfo(RebaseInput in) throws RestApiException
- Specified by:
rebaseAsInfo
in interfaceRevisionApi
- Throws:
RestApiException
-
canRebase
public boolean canRebase() throws RestApiException
- Specified by:
canRebase
in interfaceRevisionApi
- Throws:
RestApiException
-
reviewer
public RevisionReviewerApi reviewer(String id) throws RestApiException
- Specified by:
reviewer
in interfaceRevisionApi
- Throws:
RestApiException
-
setReviewed
public void setReviewed(String path, boolean reviewed) throws RestApiException
- Specified by:
setReviewed
in interfaceRevisionApi
- Throws:
RestApiException
-
reviewed
public Set<String> reviewed() throws RestApiException
- Specified by:
reviewed
in interfaceRevisionApi
- Throws:
RestApiException
-
mergeable
public MergeableInfo mergeable() throws RestApiException
- Specified by:
mergeable
in interfaceRevisionApi
- Throws:
RestApiException
-
mergeableOtherBranches
public MergeableInfo mergeableOtherBranches() throws RestApiException
- Specified by:
mergeableOtherBranches
in interfaceRevisionApi
- Throws:
RestApiException
-
files
public Map<String,FileInfo> files(String base) throws RestApiException
- Specified by:
files
in interfaceRevisionApi
- Throws:
RestApiException
-
files
public Map<String,FileInfo> files(int parentNum) throws RestApiException
- Specified by:
files
in interfaceRevisionApi
- Throws:
RestApiException
-
queryFiles
public List<String> queryFiles(String query) throws RestApiException
- Specified by:
queryFiles
in interfaceRevisionApi
- Throws:
RestApiException
-
file
public FileApi file(String path)
- Specified by:
file
in interfaceRevisionApi
-
commit
public CommitInfo commit(boolean addLinks) throws RestApiException
- Specified by:
commit
in interfaceRevisionApi
- Throws:
RestApiException
-
comments
public Map<String,List<CommentInfo>> comments() throws RestApiException
- Specified by:
comments
in interfaceRevisionApi
- Throws:
RestApiException
-
robotComments
public Map<String,List<RobotCommentInfo>> robotComments() throws RestApiException
- Specified by:
robotComments
in interfaceRevisionApi
- Throws:
RestApiException
-
commentsAsList
public List<CommentInfo> commentsAsList() throws RestApiException
- Specified by:
commentsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
draftsAsList
public List<CommentInfo> draftsAsList() throws RestApiException
- Specified by:
draftsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
robotCommentsAsList
public List<RobotCommentInfo> robotCommentsAsList() throws RestApiException
- Specified by:
robotCommentsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
portedComments
public Map<String,List<CommentInfo>> portedComments() throws RestApiException
- Specified by:
portedComments
in interfaceRevisionApi
- Throws:
RestApiException
-
portedDrafts
public Map<String,List<CommentInfo>> portedDrafts() throws RestApiException
- Specified by:
portedDrafts
in interfaceRevisionApi
- Throws:
RestApiException
-
applyFix
public EditInfo applyFix(String fixId) throws RestApiException
Description copied from interface:RevisionApi
Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit. If no change edit exists before this call, the fix must refer to the current patch set. If a change edit exists, the fix must refer to the patch set on which the change edit is based.- Specified by:
applyFix
in interfaceRevisionApi
- Parameters:
fixId
- the ID of the fix which should be applied- Throws:
RestApiException
- if the fix couldn't be applied
-
getFixPreview
public Map<String,DiffInfo> getFixPreview(String fixId) throws RestApiException
- Specified by:
getFixPreview
in interfaceRevisionApi
- Throws:
RestApiException
-
drafts
public Map<String,List<CommentInfo>> drafts() throws RestApiException
- Specified by:
drafts
in interfaceRevisionApi
- Throws:
RestApiException
-
createDraft
public DraftApi createDraft(DraftInput in) throws RestApiException
- Specified by:
createDraft
in interfaceRevisionApi
- Throws:
RestApiException
-
draft
public DraftApi draft(String id) throws RestApiException
- Specified by:
draft
in interfaceRevisionApi
- Throws:
RestApiException
-
comment
public CommentApi comment(String id) throws RestApiException
- Specified by:
comment
in interfaceRevisionApi
- Throws:
RestApiException
-
robotComment
public RobotCommentApi robotComment(String id) throws RestApiException
- Specified by:
robotComment
in interfaceRevisionApi
- Throws:
RestApiException
-
patch
public BinaryResult patch() throws RestApiException
Description copied from interface:RevisionApi
Returns patch of revision.- Specified by:
patch
in interfaceRevisionApi
- Throws:
RestApiException
-
patch
public BinaryResult patch(String path) throws RestApiException
- Specified by:
patch
in interfaceRevisionApi
- Throws:
RestApiException
-
actions
public Map<String,ActionInfo> actions() throws RestApiException
- Specified by:
actions
in interfaceRevisionApi
- Throws:
RestApiException
-
submitType
public SubmitType submitType() throws RestApiException
- Specified by:
submitType
in interfaceRevisionApi
- Throws:
RestApiException
-
testSubmitType
public SubmitType testSubmitType(TestSubmitRuleInput in) throws RestApiException
- Specified by:
testSubmitType
in interfaceRevisionApi
- Throws:
RestApiException
-
testSubmitRule
public TestSubmitRuleInfo testSubmitRule(TestSubmitRuleInput in) throws RestApiException
- Specified by:
testSubmitRule
in interfaceRevisionApi
- Throws:
RestApiException
-
getMergeList
public RevisionApi.MergeListRequest getMergeList() throws RestApiException
- Specified by:
getMergeList
in interfaceRevisionApi
- Throws:
RestApiException
-
related
public RelatedChangesInfo related() throws RestApiException
- Specified by:
related
in interfaceRevisionApi
- Throws:
RestApiException
-
votes
public com.google.common.collect.ListMultimap<String,ApprovalInfo> votes() throws RestApiException
Description copied from interface:RevisionApi
Returns votes on the revision.- Specified by:
votes
in interfaceRevisionApi
- Throws:
RestApiException
-
description
public void description(String description) throws RestApiException
- Specified by:
description
in interfaceRevisionApi
- Throws:
RestApiException
-
description
public String description() throws RestApiException
- Specified by:
description
in interfaceRevisionApi
- Throws:
RestApiException
-
etag
public String etag() throws RestApiException
- Specified by:
etag
in interfaceRevisionApi
- Throws:
RestApiException
-
getArchive
public BinaryResult getArchive(ArchiveFormat format) throws RestApiException
Description copied from interface:RevisionApi
Retrieves the revision as an archive.- Specified by:
getArchive
in interfaceRevisionApi
- Parameters:
format
- the format of the archive- Returns:
- the archive as
BinaryResult
- Throws:
RestApiException
-
-