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 toapplyFix
method.Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit.boolean
comments()
commit
(boolean addLinks) void
description
(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) void
setReviewed
(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, wait
Methods inherited from interface com.google.gerrit.extensions.api.changes.RevisionApi
files, rebase, submit
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
review
- Specified by:
review
in interfaceRevisionApi
- Throws:
RestApiException
-
submit
- Specified by:
submit
in interfaceRevisionApi
- Throws:
RestApiException
-
cherryPick
- Specified by:
cherryPick
in interfaceRevisionApi
- Throws:
RestApiException
-
cherryPickAsInfo
- Specified by:
cherryPickAsInfo
in interfaceRevisionApi
- Throws:
RestApiException
-
rebase
- Specified by:
rebase
in interfaceRevisionApi
- Throws:
RestApiException
-
rebaseAsInfo
- Specified by:
rebaseAsInfo
in interfaceRevisionApi
- Throws:
RestApiException
-
canRebase
- Specified by:
canRebase
in interfaceRevisionApi
- Throws:
RestApiException
-
reviewer
- Specified by:
reviewer
in interfaceRevisionApi
- Throws:
RestApiException
-
setReviewed
- Specified by:
setReviewed
in interfaceRevisionApi
- Throws:
RestApiException
-
reviewed
- Specified by:
reviewed
in interfaceRevisionApi
- Throws:
RestApiException
-
mergeable
- Specified by:
mergeable
in interfaceRevisionApi
- Throws:
RestApiException
-
mergeableOtherBranches
- Specified by:
mergeableOtherBranches
in interfaceRevisionApi
- Throws:
RestApiException
-
files
- Specified by:
files
in interfaceRevisionApi
- Throws:
RestApiException
-
files
- Specified by:
files
in interfaceRevisionApi
- Throws:
RestApiException
-
queryFiles
- Specified by:
queryFiles
in interfaceRevisionApi
- Throws:
RestApiException
-
file
- Specified by:
file
in interfaceRevisionApi
-
commit
- Specified by:
commit
in interfaceRevisionApi
- Throws:
RestApiException
-
comments
- Specified by:
comments
in interfaceRevisionApi
- Throws:
RestApiException
-
robotComments
- Specified by:
robotComments
in interfaceRevisionApi
- Throws:
RestApiException
-
commentsAsList
- Specified by:
commentsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
draftsAsList
- Specified by:
draftsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
robotCommentsAsList
- Specified by:
robotCommentsAsList
in interfaceRevisionApi
- Throws:
RestApiException
-
portedComments
- Specified by:
portedComments
in interfaceRevisionApi
- Throws:
RestApiException
-
portedDrafts
- Specified by:
portedDrafts
in interfaceRevisionApi
- Throws:
RestApiException
-
applyFix
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
-
applyFix
Description copied from interface:RevisionApi
Applies fix similar toapplyFix
method. Instead of using a fix stored in the server, this applies the fix provided inApplyProvidedFixInput
- Specified by:
applyFix
in 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:
getFixPreview
in interfaceRevisionApi
- Throws:
RestApiException
-
getFixPreview
public Map<String,DiffInfo> getFixPreview(ApplyProvidedFixInput applyProvidedFixInput) throws RestApiException - Specified by:
getFixPreview
in interfaceRevisionApi
- Throws:
RestApiException
-
drafts
- Specified by:
drafts
in interfaceRevisionApi
- Throws:
RestApiException
-
createDraft
- Specified by:
createDraft
in interfaceRevisionApi
- Throws:
RestApiException
-
draft
- Specified by:
draft
in interfaceRevisionApi
- Throws:
RestApiException
-
comment
- Specified by:
comment
in interfaceRevisionApi
- Throws:
RestApiException
-
robotComment
- Specified by:
robotComment
in interfaceRevisionApi
- Throws:
RestApiException
-
patch
Description copied from interface:RevisionApi
Returns patch of revision.- Specified by:
patch
in interfaceRevisionApi
- Throws:
RestApiException
-
patch
- Specified by:
patch
in interfaceRevisionApi
- Throws:
RestApiException
-
actions
- Specified by:
actions
in interfaceRevisionApi
- Throws:
RestApiException
-
submitType
- Specified by:
submitType
in interfaceRevisionApi
- Throws:
RestApiException
-
testSubmitType
- Specified by:
testSubmitType
in interfaceRevisionApi
- Throws:
RestApiException
-
testSubmitRule
- Specified by:
testSubmitRule
in interfaceRevisionApi
- Throws:
RestApiException
-
getMergeList
- Specified by:
getMergeList
in interfaceRevisionApi
- Throws:
RestApiException
-
votes
Description copied from interface:RevisionApi
Returns votes on the revision.- Specified by:
votes
in interfaceRevisionApi
- Throws:
RestApiException
-
description
- Specified by:
description
in interfaceRevisionApi
- Throws:
RestApiException
-
description
- Specified by:
description
in interfaceRevisionApi
- Throws:
RestApiException
-
etag
- Specified by:
etag
in interfaceRevisionApi
- Throws:
RestApiException
-
getArchive
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
-