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, submitPreview
-
-
-
-
Method Detail
-
review
public ReviewResult review(ReviewInput in) throws RestApiException
- Specified by:
reviewin interfaceRevisionApi- Throws:
RestApiException
-
submit
public void submit(SubmitInput in) throws RestApiException
- Specified by:
submitin interfaceRevisionApi- Throws:
RestApiException
-
cherryPick
public ChangeApi cherryPick(CherryPickInput in) throws RestApiException
- Specified by:
cherryPickin interfaceRevisionApi- Throws:
RestApiException
-
cherryPickAsInfo
public ChangeInfo cherryPickAsInfo(CherryPickInput in) throws RestApiException
- Specified by:
cherryPickAsInfoin interfaceRevisionApi- Throws:
RestApiException
-
rebase
public ChangeApi rebase(RebaseInput in) throws RestApiException
- Specified by:
rebasein interfaceRevisionApi- Throws:
RestApiException
-
rebaseAsInfo
public ChangeInfo rebaseAsInfo(RebaseInput in) throws RestApiException
- Specified by:
rebaseAsInfoin interfaceRevisionApi- Throws:
RestApiException
-
canRebase
public boolean canRebase() throws RestApiException- Specified by:
canRebasein interfaceRevisionApi- Throws:
RestApiException
-
reviewer
public RevisionReviewerApi reviewer(String id) throws RestApiException
- Specified by:
reviewerin interfaceRevisionApi- Throws:
RestApiException
-
setReviewed
public void setReviewed(String path, boolean reviewed) throws RestApiException
- Specified by:
setReviewedin interfaceRevisionApi- Throws:
RestApiException
-
reviewed
public Set<String> reviewed() throws RestApiException
- Specified by:
reviewedin interfaceRevisionApi- Throws:
RestApiException
-
mergeable
public MergeableInfo mergeable() throws RestApiException
- Specified by:
mergeablein interfaceRevisionApi- Throws:
RestApiException
-
mergeableOtherBranches
public MergeableInfo mergeableOtherBranches() throws RestApiException
- Specified by:
mergeableOtherBranchesin interfaceRevisionApi- Throws:
RestApiException
-
files
public Map<String,FileInfo> files(String base) throws RestApiException
- Specified by:
filesin interfaceRevisionApi- Throws:
RestApiException
-
files
public Map<String,FileInfo> files(int parentNum) throws RestApiException
- Specified by:
filesin interfaceRevisionApi- Throws:
RestApiException
-
queryFiles
public List<String> queryFiles(String query) throws RestApiException
- Specified by:
queryFilesin interfaceRevisionApi- Throws:
RestApiException
-
file
public FileApi file(String path)
- Specified by:
filein interfaceRevisionApi
-
commit
public CommitInfo commit(boolean addLinks) throws RestApiException
- Specified by:
commitin interfaceRevisionApi- Throws:
RestApiException
-
comments
public Map<String,List<CommentInfo>> comments() throws RestApiException
- Specified by:
commentsin interfaceRevisionApi- Throws:
RestApiException
-
robotComments
public Map<String,List<RobotCommentInfo>> robotComments() throws RestApiException
- Specified by:
robotCommentsin interfaceRevisionApi- Throws:
RestApiException
-
commentsAsList
public List<CommentInfo> commentsAsList() throws RestApiException
- Specified by:
commentsAsListin interfaceRevisionApi- Throws:
RestApiException
-
draftsAsList
public List<CommentInfo> draftsAsList() throws RestApiException
- Specified by:
draftsAsListin interfaceRevisionApi- Throws:
RestApiException
-
robotCommentsAsList
public List<RobotCommentInfo> robotCommentsAsList() throws RestApiException
- Specified by:
robotCommentsAsListin interfaceRevisionApi- Throws:
RestApiException
-
portedComments
public Map<String,List<CommentInfo>> portedComments() throws RestApiException
- Specified by:
portedCommentsin interfaceRevisionApi- Throws:
RestApiException
-
portedDrafts
public Map<String,List<CommentInfo>> portedDrafts() throws RestApiException
- Specified by:
portedDraftsin interfaceRevisionApi- Throws:
RestApiException
-
applyFix
public EditInfo applyFix(String fixId) throws RestApiException
Description copied from interface:RevisionApiApplies 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:
applyFixin 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:
getFixPreviewin interfaceRevisionApi- Throws:
RestApiException
-
drafts
public Map<String,List<CommentInfo>> drafts() throws RestApiException
- Specified by:
draftsin interfaceRevisionApi- Throws:
RestApiException
-
createDraft
public DraftApi createDraft(DraftInput in) throws RestApiException
- Specified by:
createDraftin interfaceRevisionApi- Throws:
RestApiException
-
draft
public DraftApi draft(String id) throws RestApiException
- Specified by:
draftin interfaceRevisionApi- Throws:
RestApiException
-
comment
public CommentApi comment(String id) throws RestApiException
- Specified by:
commentin interfaceRevisionApi- Throws:
RestApiException
-
robotComment
public RobotCommentApi robotComment(String id) throws RestApiException
- Specified by:
robotCommentin interfaceRevisionApi- Throws:
RestApiException
-
patch
public BinaryResult patch() throws RestApiException
Description copied from interface:RevisionApiReturns patch of revision.- Specified by:
patchin interfaceRevisionApi- Throws:
RestApiException
-
patch
public BinaryResult patch(String path) throws RestApiException
- Specified by:
patchin interfaceRevisionApi- Throws:
RestApiException
-
actions
public Map<String,ActionInfo> actions() throws RestApiException
- Specified by:
actionsin interfaceRevisionApi- Throws:
RestApiException
-
submitType
public SubmitType submitType() throws RestApiException
- Specified by:
submitTypein interfaceRevisionApi- Throws:
RestApiException
-
submitPreview
public BinaryResult submitPreview(String format) throws RestApiException
- Specified by:
submitPreviewin interfaceRevisionApi- Throws:
RestApiException
-
testSubmitType
public SubmitType testSubmitType(TestSubmitRuleInput in) throws RestApiException
- Specified by:
testSubmitTypein interfaceRevisionApi- Throws:
RestApiException
-
testSubmitRule
public TestSubmitRuleInfo testSubmitRule(TestSubmitRuleInput in) throws RestApiException
- Specified by:
testSubmitRulein interfaceRevisionApi- Throws:
RestApiException
-
getMergeList
public RevisionApi.MergeListRequest getMergeList() throws RestApiException
- Specified by:
getMergeListin interfaceRevisionApi- Throws:
RestApiException
-
related
public RelatedChangesInfo related() throws RestApiException
- Specified by:
relatedin interfaceRevisionApi- Throws:
RestApiException
-
votes
public com.google.common.collect.ListMultimap<String,ApprovalInfo> votes() throws RestApiException
Description copied from interface:RevisionApiReturns votes on the revision.- Specified by:
votesin interfaceRevisionApi- Throws:
RestApiException
-
description
public void description(String description) throws RestApiException
- Specified by:
descriptionin interfaceRevisionApi- Throws:
RestApiException
-
description
public String description() throws RestApiException
- Specified by:
descriptionin interfaceRevisionApi- Throws:
RestApiException
-
etag
public String etag() throws RestApiException
- Specified by:
etagin interfaceRevisionApi- Throws:
RestApiException
-
getArchive
public BinaryResult getArchive(ArchiveFormat format) throws RestApiException
Description copied from interface:RevisionApiRetrieves the revision as an archive.- Specified by:
getArchivein interfaceRevisionApi- Parameters:
format- the format of the archive- Returns:
- the archive as
BinaryResult - Throws:
RestApiException
-
-