Class ChangeApi.NotImplemented
java.lang.Object
com.google.gerrit.extensions.api.changes.ChangeApi.NotImplemented
- All Implemented Interfaces:
ChangeApi
- Enclosing interface:
- ChangeApi
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.ChangeApi
ChangeApi.CheckSubmitRequirementRequest, ChangeApi.CommentsRequest, ChangeApi.DraftsRequest, ChangeApi.NotImplemented, ChangeApi.SuggestedReviewersRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabandon(AbandonInput in) Adds a user to the attention set.Manage the attention set.check()Returns the result of evaluating theSubmitRequirementInputinput on the change.comments()Deprecated.Deprecated.Get aChangeApi.CommentsRequestentity that can be used to retrieve published comments.Create a merge patch set for the change.voiddelete()Deletes a change.drafts()Get all draft comments for the current user on a change.Get all draft comments for the current user on a change as a list.Get aChangeApi.DraftsRequestentity that can be used to retrieve draft comments.edit()Provides access to an API regarding the change edit of this change.get(EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String, String> pluginOptions) Gets the custom keyed values on a change.Get hashtags on a change.id()voidindex()Look up a change message of a change by its id.messages()Get all messages of a change with detailed account info.metaDiff(String oldMetaRevId, String newMetaRevId, EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String, String> pluginOptions) Gets the diff between a change's metadata with the two given refs.voidCheck if this change is a pure revert of the change stored in revertOf.pureRevert(String claimedOriginal) Check if this change is a pure revert of claimedOriginal (SHA1 in 40 digit hex).voidrebase(RebaseInput in) Rebase the current revision of a change.Rebase the current revisions of a change's chain.voidrestore(RestoreInput in) revert(RevertInput in) Create a new change that reverts this change.Look up the reviewer of the change.Retrieve reviewers (ReviewerState.REVIEWERandReviewerState.CC) on the change.Look up a revision of a change by commit SHA-1 or other supported revision string.Get all robot comments on a change.voidSet custom keyed values on a changevoidsetHashtags(HashtagsInput input) Set hashtags on a changevoidCreate a new patch set with a new commit message.voidsetPrivate(boolean value, String message) voidsetReadyForReview(String message) voidsetWorkInProgress(String message) submittedTogether(EnumSet<SubmittedTogetherOption> options) suggestReviewers(String query) topic()voidMethods 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.ChangeApi
abandon, addReviewer, current, get, get, get, get, get, info, metaDiff, metaDiff, metaDiff, move, rebase, rebaseChain, restore, revert, revertSubmission, revision, setMessage, setPrivate, setReadyForReview, setWorkInProgress, suggestCcs
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
id
-
reviewer
Description copied from interface:ChangeApiLook up the reviewer of the change.- Specified by:
reviewerin interfaceChangeApi- Parameters:
id- ID of the account, can be a string of the format "Full Name <[email protected]>", just the email address, a full name if it is unique, an account ID, a user name or 'self' for the calling user.- Returns:
- API for accessing the reviewer.
- Throws:
RestApiException- if id is not account ID or is a user that isn't known to be a reviewer for this change.
-
revision
Description copied from interface:ChangeApiLook up a revision of a change by commit SHA-1 or other supported revision string.- Specified by:
revisionin interfaceChangeApi- Throws:
RestApiException- See Also:
-
abandon
- Specified by:
abandonin interfaceChangeApi- Throws:
RestApiException
-
restore
- Specified by:
restorein interfaceChangeApi- Throws:
RestApiException
-
move
- Specified by:
movein interfaceChangeApi- Throws:
RestApiException
-
setPrivate
- Specified by:
setPrivatein interfaceChangeApi- Throws:
RestApiException
-
setWorkInProgress
- Specified by:
setWorkInProgressin interfaceChangeApi- Throws:
RestApiException
-
setReadyForReview
- Specified by:
setReadyForReviewin interfaceChangeApi- Throws:
RestApiException
-
revert
Description copied from interface:ChangeApiCreate a new change that reverts this change.- Specified by:
revertin interfaceChangeApi- Throws:
RestApiException- See Also:
-
revertSubmission
- Specified by:
revertSubmissionin interfaceChangeApi- Throws:
RestApiException
-
rebase
Description copied from interface:ChangeApiRebase the current revision of a change.- Specified by:
rebasein interfaceChangeApi- Throws:
RestApiException
-
rebaseChain
Description copied from interface:ChangeApiRebase the current revisions of a change's chain.- Specified by:
rebaseChainin interfaceChangeApi- Returns:
- a
RebaseChainInfocontains theChangeInfodata for the rebased the chain - Throws:
RestApiException
-
delete
Description copied from interface:ChangeApiDeletes a change.- Specified by:
deletein interfaceChangeApi- Throws:
RestApiException
-
topic
- Specified by:
topicin interfaceChangeApi- Throws:
RestApiException
-
topic
- Specified by:
topicin interfaceChangeApi- Throws:
RestApiException
-
includedIn
- Specified by:
includedInin interfaceChangeApi- Throws:
RestApiException
-
addReviewer
- Specified by:
addReviewerin interfaceChangeApi- Throws:
RestApiException
-
suggestReviewers
- Specified by:
suggestReviewersin interfaceChangeApi- Throws:
RestApiException
-
suggestReviewers
- Specified by:
suggestReviewersin interfaceChangeApi- Throws:
RestApiException
-
reviewers
Description copied from interface:ChangeApiRetrieve reviewers (ReviewerState.REVIEWERandReviewerState.CC) on the change.- Specified by:
reviewersin interfaceChangeApi- Throws:
RestApiException
-
get
public ChangeInfo get(EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String, String> pluginOptions) throws RestApiException- Specified by:
getin interfaceChangeApi- Throws:
RestApiException
-
metaDiff
public ChangeInfoDifference metaDiff(String oldMetaRevId, String newMetaRevId, EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String, String> pluginOptions) throws RestApiExceptionDescription copied from interface:ChangeApiGets the diff between a change's metadata with the two given refs.- Specified by:
metaDiffin interfaceChangeApi- Parameters:
oldMetaRevId- the SHA-1 of the 'before' metadata diffed againstnewMetaRevIdnewMetaRevId- the SHA-1 of the 'after' metadata diffed againstoldMetaRevId- Throws:
RestApiException
-
setMessage
Description copied from interface:ChangeApiCreate a new patch set with a new commit message.- Specified by:
setMessagein interfaceChangeApi- Throws:
RestApiException
-
edit
Description copied from interface:ChangeApiProvides access to an API regarding the change edit of this change.- Specified by:
editin interfaceChangeApi- Returns:
- a
ChangeEditApifor the change edit of this change - Throws:
RestApiException- if the API isn't accessible
-
setHashtags
Description copied from interface:ChangeApiSet hashtags on a change- Specified by:
setHashtagsin interfaceChangeApi- Throws:
RestApiException
-
getHashtags
Description copied from interface:ChangeApiGet hashtags on a change.- Specified by:
getHashtagsin interfaceChangeApi- Returns:
- hashtags
- Throws:
RestApiException
-
setCustomKeyedValues
Description copied from interface:ChangeApiSet custom keyed values on a change- Specified by:
setCustomKeyedValuesin interfaceChangeApi- Throws:
RestApiException
-
getCustomKeyedValues
public com.google.common.collect.ImmutableMap<String,String> getCustomKeyedValues() throws RestApiExceptionDescription copied from interface:ChangeApiGets the custom keyed values on a change.- Specified by:
getCustomKeyedValuesin interfaceChangeApi- Returns:
- customKeyedValues
- Throws:
RestApiException
-
attention
Description copied from interface:ChangeApiManage the attention set.- Specified by:
attentionin interfaceChangeApi- Parameters:
id- The account identifier.- Throws:
RestApiException
-
addToAttentionSet
Description copied from interface:ChangeApiAdds a user to the attention set.- Specified by:
addToAttentionSetin interfaceChangeApi- Throws:
RestApiException
-
comments
Deprecated.Description copied from interface:ChangeApiGet all published comments on a change.- Specified by:
commentsin interfaceChangeApi- Returns:
- comments in a map keyed by path; comments have the
revisionfield set to indicate their patch set. - Throws:
RestApiException
-
commentsAsList
Deprecated.Description copied from interface:ChangeApiGet all published comments on a change as a list.- Specified by:
commentsAsListin interfaceChangeApi- Returns:
- comments as a list; comments have the
revisionfield set to indicate their patch set. - Throws:
RestApiException
-
commentsRequest
Description copied from interface:ChangeApiGet aChangeApi.CommentsRequestentity that can be used to retrieve published comments.- Specified by:
commentsRequestin interfaceChangeApi- Returns:
- A
ChangeApi.CommentsRequestentity that can be used to retrieve the comments using theChangeApi.CommentsRequest.get()orChangeApi.CommentsRequest.getAsList(). - Throws:
RestApiException
-
robotComments
Description copied from interface:ChangeApiGet all robot comments on a change.- Specified by:
robotCommentsin interfaceChangeApi- Returns:
- robot comments in a map keyed by path; robot comments have the
revisionfield set to indicate their patch set. - Throws:
RestApiException
-
drafts
Description copied from interface:ChangeApiGet all draft comments for the current user on a change.- Specified by:
draftsin interfaceChangeApi- Returns:
- drafts in a map keyed by path; comments have the
revisionfield set to indicate their patch set. - Throws:
RestApiException
-
draftsAsList
Description copied from interface:ChangeApiGet all draft comments for the current user on a change as a list.- Specified by:
draftsAsListin interfaceChangeApi- Returns:
- drafts as a list; comments have the
revisionfield set to indicate their patch set. - Throws:
RestApiException
-
draftsRequest
Description copied from interface:ChangeApiGet aChangeApi.DraftsRequestentity that can be used to retrieve draft comments.- Specified by:
draftsRequestin interfaceChangeApi- Returns:
- A
ChangeApi.DraftsRequestentity that can be used to retrieve the draft comments usingChangeApi.CommentsRequest.get()orChangeApi.CommentsRequest.getAsList(). - Throws:
RestApiException
-
check
- Specified by:
checkin interfaceChangeApi- Throws:
RestApiException
-
check
- Specified by:
checkin interfaceChangeApi- Throws:
RestApiException
-
checkSubmitRequirementRequest
public ChangeApi.CheckSubmitRequirementRequest checkSubmitRequirementRequest() throws RestApiException- Specified by:
checkSubmitRequirementRequestin interfaceChangeApi- Throws:
RestApiException
-
checkSubmitRequirement
public SubmitRequirementResultInfo checkSubmitRequirement(SubmitRequirementInput input) throws RestApiException Description copied from interface:ChangeApiReturns the result of evaluating theSubmitRequirementInputinput on the change.- Specified by:
checkSubmitRequirementin interfaceChangeApi- Throws:
RestApiException
-
index
- Specified by:
indexin interfaceChangeApi- Throws:
RestApiException
-
submittedTogether
- Specified by:
submittedTogetherin interfaceChangeApi- Throws:
RestApiException
-
submittedTogether
public SubmittedTogetherInfo submittedTogether(EnumSet<SubmittedTogetherOption> options) throws RestApiException - Specified by:
submittedTogetherin interfaceChangeApi- Throws:
RestApiException
-
submittedTogether
public SubmittedTogetherInfo submittedTogether(EnumSet<ListChangesOption> a, EnumSet<SubmittedTogetherOption> b) throws RestApiException - Specified by:
submittedTogetherin interfaceChangeApi- Throws:
RestApiException
-
createMergePatchSet
Description copied from interface:ChangeApiCreate a merge patch set for the change.- Specified by:
createMergePatchSetin interfaceChangeApi- Throws:
RestApiException
-
applyPatch
- Specified by:
applyPatchin interfaceChangeApi- Throws:
RestApiException
-
pureRevert
Description copied from interface:ChangeApiCheck if this change is a pure revert of the change stored in revertOf.- Specified by:
pureRevertin interfaceChangeApi- Throws:
RestApiException
-
pureRevert
Description copied from interface:ChangeApiCheck if this change is a pure revert of claimedOriginal (SHA1 in 40 digit hex).- Specified by:
pureRevertin interfaceChangeApi- Throws:
RestApiException
-
messages
Description copied from interface:ChangeApiGet all messages of a change with detailed account info.- Specified by:
messagesin interfaceChangeApi- Returns:
- a list of messages sorted by their creation time.
- Throws:
RestApiException
-
message
Description copied from interface:ChangeApiLook up a change message of a change by its id.- Specified by:
messagein interfaceChangeApi- Parameters:
id- the id of the change message. In NoteDb, this id is theObjectIdof a commit on the change meta branch.- Returns:
- API for accessing a change message.
- Throws:
RestApiException- if the id is invalid.
-