Class ChangeApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.changes.ChangeApi.NotImplemented
-
-
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 Constructor Description NotImplemented()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidabandon(AbandonInput in)ReviewerResultaddReviewer(ReviewerInput in)AccountInfoaddToAttentionSet(AttentionSetInput input)Adds a user to the attention set.AttentionSetApiattention(String id)Manage the attention set.ChangeInfocheck()ChangeInfocheck(FixInput fix)SubmitRequirementResultInfocheckSubmitRequirement(SubmitRequirementInput input)Returns the result of evaluating theSubmitRequirementInputinput on the change.ChangeApi.CheckSubmitRequirementRequestcheckSubmitRequirementRequest()Map<String,List<CommentInfo>>comments()Deprecated.List<CommentInfo>commentsAsList()Deprecated.ChangeApi.CommentsRequestcommentsRequest()Get aChangeApi.CommentsRequestentity that can be used to retrieve published comments.ChangeInfocreateMergePatchSet(MergePatchSetInput in)Create a merge patch set for the change.voiddelete()Deletes a change.AccountInfodeleteAssignee()Delete the assignee of a change.Map<String,List<CommentInfo>>drafts()Get all draft comments for the current user on a change.List<CommentInfo>draftsAsList()Get all draft comments for the current user on a change as a list.ChangeApi.DraftsRequestdraftsRequest()Get aChangeApi.DraftsRequestentity that can be used to retrieve draft comments.ChangeEditApiedit()Provides access to an API regarding the change edit of this change.ChangeInfoget(EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String,String> pluginOptions)AccountInfogetAssignee()Get the assignee of a change.Set<String>getHashtags()Get hashtags on a change.List<AccountInfo>getPastAssignees()Get all past assignees.Stringid()IncludedInInfoincludedIn()voidindex()ChangeMessageApimessage(String id)Look up a change message of a change by its id.List<ChangeMessageInfo>messages()Get all messages of a change with detailed account info.ChangeInfoDifferencemetaDiff(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.voidmove(MoveInput in)PureRevertInfopureRevert()Check if this change is a pure revert of the change stored in revertOf.PureRevertInfopureRevert(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.voidrestore(RestoreInput in)ChangeApirevert(RevertInput in)Create a new change that reverts this change.RevertSubmissionInforevertSubmission(RevertInput in)ReviewerApireviewer(String id)Look up the reviewer of the change.List<ReviewerInfo>reviewers()Retrieve reviewers (ReviewerState.REVIEWERandReviewerState.CC) on the change.RevisionApirevision(String id)Look up a revision of a change by commit SHA-1 or other supported revision string.Map<String,List<RobotCommentInfo>>robotComments()Get all robot comments on a change.AccountInfosetAssignee(AssigneeInput input)Set the assignee of a change.voidsetHashtags(HashtagsInput input)Set hashtags on a changevoidsetMessage(CommitMessageInput in)Create a new patch set with a new commit message.voidsetPrivate(boolean value, String message)voidsetReadyForReview(String message)voidsetWorkInProgress(String message)List<ChangeInfo>submittedTogether()SubmittedTogetherInfosubmittedTogether(EnumSet<SubmittedTogetherOption> options)SubmittedTogetherInfosubmittedTogether(EnumSet<ListChangesOption> a, EnumSet<SubmittedTogetherOption> b)ChangeApi.SuggestedReviewersRequestsuggestReviewers()ChangeApi.SuggestedReviewersRequestsuggestReviewers(String query)Stringtopic()voidtopic(String topic)-
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.ChangeApi
abandon, addReviewer, current, get, get, get, get, get, info, metaDiff, metaDiff, metaDiff, move, rebase, restore, revert, revertSubmission, revision, setMessage, setPrivate, setReadyForReview, setWorkInProgress, suggestCcs
-
-
-
-
Method Detail
-
reviewer
public ReviewerApi reviewer(String id) throws RestApiException
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
public RevisionApi revision(String id) throws RestApiException
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:
ChangeApi.current()
-
abandon
public void abandon(AbandonInput in) throws RestApiException
- Specified by:
abandonin interfaceChangeApi- Throws:
RestApiException
-
restore
public void restore(RestoreInput in) throws RestApiException
- Specified by:
restorein interfaceChangeApi- Throws:
RestApiException
-
move
public void move(MoveInput in) throws RestApiException
- Specified by:
movein interfaceChangeApi- Throws:
RestApiException
-
setPrivate
public void setPrivate(boolean value, String message) throws RestApiException- Specified by:
setPrivatein interfaceChangeApi- Throws:
RestApiException
-
setWorkInProgress
public void setWorkInProgress(String message) throws RestApiException
- Specified by:
setWorkInProgressin interfaceChangeApi- Throws:
RestApiException
-
setReadyForReview
public void setReadyForReview(String message) throws RestApiException
- Specified by:
setReadyForReviewin interfaceChangeApi- Throws:
RestApiException
-
revert
public ChangeApi revert(RevertInput in) throws RestApiException
Description copied from interface:ChangeApiCreate a new change that reverts this change.- Specified by:
revertin interfaceChangeApi- Throws:
RestApiException- See Also:
Changes.id(int)
-
revertSubmission
public RevertSubmissionInfo revertSubmission(RevertInput in) throws RestApiException
- Specified by:
revertSubmissionin interfaceChangeApi- Throws:
RestApiException
-
rebase
public void rebase(RebaseInput in) throws RestApiException
Description copied from interface:ChangeApiRebase the current revision of a change.- Specified by:
rebasein interfaceChangeApi- Throws:
RestApiException
-
delete
public void delete() throws RestApiExceptionDescription copied from interface:ChangeApiDeletes a change.- Specified by:
deletein interfaceChangeApi- Throws:
RestApiException
-
topic
public String topic() throws RestApiException
- Specified by:
topicin interfaceChangeApi- Throws:
RestApiException
-
topic
public void topic(String topic) throws RestApiException
- Specified by:
topicin interfaceChangeApi- Throws:
RestApiException
-
includedIn
public IncludedInInfo includedIn() throws RestApiException
- Specified by:
includedInin interfaceChangeApi- Throws:
RestApiException
-
addReviewer
public ReviewerResult addReviewer(ReviewerInput in) throws RestApiException
- Specified by:
addReviewerin interfaceChangeApi- Throws:
RestApiException
-
suggestReviewers
public ChangeApi.SuggestedReviewersRequest suggestReviewers() throws RestApiException
- Specified by:
suggestReviewersin interfaceChangeApi- Throws:
RestApiException
-
suggestReviewers
public ChangeApi.SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException
- Specified by:
suggestReviewersin interfaceChangeApi- Throws:
RestApiException
-
reviewers
public List<ReviewerInfo> reviewers() throws RestApiException
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 RestApiException
Description 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
public void setMessage(CommitMessageInput in) throws RestApiException
Description copied from interface:ChangeApiCreate a new patch set with a new commit message.- Specified by:
setMessagein interfaceChangeApi- Throws:
RestApiException
-
edit
public ChangeEditApi edit() throws RestApiException
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
public void setHashtags(HashtagsInput input) throws RestApiException
Description copied from interface:ChangeApiSet hashtags on a change- Specified by:
setHashtagsin interfaceChangeApi- Throws:
RestApiException
-
getHashtags
public Set<String> getHashtags() throws RestApiException
Description copied from interface:ChangeApiGet hashtags on a change.- Specified by:
getHashtagsin interfaceChangeApi- Returns:
- hashtags
- Throws:
RestApiException
-
attention
public AttentionSetApi attention(String id) throws RestApiException
Description copied from interface:ChangeApiManage the attention set.- Specified by:
attentionin interfaceChangeApi- Parameters:
id- The account identifier.- Throws:
RestApiException
-
addToAttentionSet
public AccountInfo addToAttentionSet(AttentionSetInput input) throws RestApiException
Description copied from interface:ChangeApiAdds a user to the attention set.- Specified by:
addToAttentionSetin interfaceChangeApi- Throws:
RestApiException
-
setAssignee
public AccountInfo setAssignee(AssigneeInput input) throws RestApiException
Description copied from interface:ChangeApiSet the assignee of a change.- Specified by:
setAssigneein interfaceChangeApi- Throws:
RestApiException
-
getAssignee
public AccountInfo getAssignee() throws RestApiException
Description copied from interface:ChangeApiGet the assignee of a change.- Specified by:
getAssigneein interfaceChangeApi- Throws:
RestApiException
-
getPastAssignees
public List<AccountInfo> getPastAssignees() throws RestApiException
Description copied from interface:ChangeApiGet all past assignees.- Specified by:
getPastAssigneesin interfaceChangeApi- Throws:
RestApiException
-
deleteAssignee
public AccountInfo deleteAssignee() throws RestApiException
Description copied from interface:ChangeApiDelete the assignee of a change.- Specified by:
deleteAssigneein interfaceChangeApi- Returns:
- the assignee that was deleted, or null if there was no assignee.
- Throws:
RestApiException
-
comments
@Deprecated public Map<String,List<CommentInfo>> comments() throws RestApiException
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 public List<CommentInfo> commentsAsList() throws RestApiException
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
public ChangeApi.CommentsRequest commentsRequest() throws RestApiException
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
public Map<String,List<RobotCommentInfo>> robotComments() throws RestApiException
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
public Map<String,List<CommentInfo>> drafts() throws RestApiException
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
public List<CommentInfo> draftsAsList() throws RestApiException
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
public ChangeApi.DraftsRequest draftsRequest() throws RestApiException
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
public ChangeInfo check() throws RestApiException
- Specified by:
checkin interfaceChangeApi- Throws:
RestApiException
-
check
public ChangeInfo check(FixInput fix) throws RestApiException
- 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
public void index() throws RestApiException- Specified by:
indexin interfaceChangeApi- Throws:
RestApiException
-
submittedTogether
public List<ChangeInfo> submittedTogether() throws RestApiException
- 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
public ChangeInfo createMergePatchSet(MergePatchSetInput in) throws RestApiException
Description copied from interface:ChangeApiCreate a merge patch set for the change.- Specified by:
createMergePatchSetin interfaceChangeApi- Throws:
RestApiException
-
pureRevert
public PureRevertInfo pureRevert() throws RestApiException
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
public PureRevertInfo pureRevert(String claimedOriginal) throws RestApiException
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
public List<ChangeMessageInfo> messages() throws RestApiException
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
public ChangeMessageApi message(String id) throws RestApiException
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.
-
-