Class RevisionApi.NotImplemented
java.lang.Object
com.google.gerrit.extensions.api.changes.RevisionApi.NotImplemented
- All Implemented Interfaces:
RevisionApi
- Enclosing interface:
- 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 -
Method Summary
Modifier and TypeMethodDescriptionactions()applyFix(ApplyProvidedFixInput applyProvidedFixInput) Applies fix similar toapplyFixmethod.Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit.booleancomments()commit(boolean addLinks) voiddescription(String description) drafts()etag()files(int parentNum) getArchive(ArchiveFormat format) Retrieves the revision as an archive.getFixPreview(ApplyProvidedFixInput applyProvidedFixInput) getFixPreview(String fixId) patch()Returns patch of revision.queryFiles(String query) rebase(RebaseInput in) related()related(EnumSet<GetRelatedOption> options) review(ReviewInput in) reviewed()robotComment(String id) voidsetReviewed(String path, boolean reviewed) submit(SubmitInput in) com.google.common.collect.ListMultimap<String,ApprovalInfo> votes()Returns votes on the revision.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.extensions.api.changes.RevisionApi
files, rebase, submit
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
review
- Specified by:
reviewin interfaceRevisionApi- Throws:
RestApiException
-
submit
- Specified by:
submitin interfaceRevisionApi- Throws:
RestApiException
-
cherryPick
- Specified by:
cherryPickin interfaceRevisionApi- Throws:
RestApiException
-
cherryPickAsInfo
- Specified by:
cherryPickAsInfoin interfaceRevisionApi- Throws:
RestApiException
-
rebase
- Specified by:
rebasein interfaceRevisionApi- Throws:
RestApiException
-
rebaseAsInfo
- Specified by:
rebaseAsInfoin interfaceRevisionApi- Throws:
RestApiException
-
canRebase
- Specified by:
canRebasein interfaceRevisionApi- Throws:
RestApiException
-
reviewer
- Specified by:
reviewerin interfaceRevisionApi- Throws:
RestApiException
-
setReviewed
- Specified by:
setReviewedin interfaceRevisionApi- Throws:
RestApiException
-
reviewed
- Specified by:
reviewedin interfaceRevisionApi- Throws:
RestApiException
-
mergeable
- Specified by:
mergeablein interfaceRevisionApi- Throws:
RestApiException
-
mergeableOtherBranches
- Specified by:
mergeableOtherBranchesin interfaceRevisionApi- Throws:
RestApiException
-
files
- Specified by:
filesin interfaceRevisionApi- Throws:
RestApiException
-
files
- Specified by:
filesin interfaceRevisionApi- Throws:
RestApiException
-
queryFiles
- Specified by:
queryFilesin interfaceRevisionApi- Throws:
RestApiException
-
file
- Specified by:
filein interfaceRevisionApi
-
commit
- Specified by:
commitin interfaceRevisionApi- Throws:
RestApiException
-
comments
- Specified by:
commentsin interfaceRevisionApi- Throws:
RestApiException
-
robotComments
- Specified by:
robotCommentsin interfaceRevisionApi- Throws:
RestApiException
-
commentsAsList
- Specified by:
commentsAsListin interfaceRevisionApi- Throws:
RestApiException
-
draftsAsList
- Specified by:
draftsAsListin interfaceRevisionApi- Throws:
RestApiException
-
robotCommentsAsList
- Specified by:
robotCommentsAsListin interfaceRevisionApi- Throws:
RestApiException
-
portedComments
- Specified by:
portedCommentsin interfaceRevisionApi- Throws:
RestApiException
-
portedDrafts
- Specified by:
portedDraftsin interfaceRevisionApi- Throws:
RestApiException
-
applyFix
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
-
applyFix
Description copied from interface:RevisionApiApplies fix similar toapplyFixmethod. Instead of using a fix stored in the server, this applies the fix provided inApplyProvidedFixInput- Specified by:
applyFixin interfaceRevisionApi- Parameters:
applyProvidedFixInput- The fix(es) to apply to a new change edit.- Throws:
RestApiException- if the fix couldn't be applied.
-
getFixPreview
- Specified by:
getFixPreviewin interfaceRevisionApi- Throws:
RestApiException
-
getFixPreview
public Map<String,DiffInfo> getFixPreview(ApplyProvidedFixInput applyProvidedFixInput) throws RestApiException - Specified by:
getFixPreviewin interfaceRevisionApi- Throws:
RestApiException
-
drafts
- Specified by:
draftsin interfaceRevisionApi- Throws:
RestApiException
-
createDraft
- Specified by:
createDraftin interfaceRevisionApi- Throws:
RestApiException
-
draft
- Specified by:
draftin interfaceRevisionApi- Throws:
RestApiException
-
comment
- Specified by:
commentin interfaceRevisionApi- Throws:
RestApiException
-
robotComment
- Specified by:
robotCommentin interfaceRevisionApi- Throws:
RestApiException
-
patch
Description copied from interface:RevisionApiReturns patch of revision.- Specified by:
patchin interfaceRevisionApi- Throws:
RestApiException
-
patch
- Specified by:
patchin interfaceRevisionApi- Throws:
RestApiException
-
actions
- Specified by:
actionsin interfaceRevisionApi- Throws:
RestApiException
-
submitType
- Specified by:
submitTypein interfaceRevisionApi- Throws:
RestApiException
-
testSubmitType
- Specified by:
testSubmitTypein interfaceRevisionApi- Throws:
RestApiException
-
testSubmitRule
- Specified by:
testSubmitRulein interfaceRevisionApi- Throws:
RestApiException
-
getMergeList
- Specified by:
getMergeListin interfaceRevisionApi- Throws:
RestApiException
-
votes
Description copied from interface:RevisionApiReturns votes on the revision.- Specified by:
votesin interfaceRevisionApi- Throws:
RestApiException
-
description
- Specified by:
descriptionin interfaceRevisionApi- Throws:
RestApiException
-
description
- Specified by:
descriptionin interfaceRevisionApi- Throws:
RestApiException
-
etag
- Specified by:
etagin interfaceRevisionApi- Throws:
RestApiException
-
getArchive
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
-