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.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 void
abandon(AbandonInput in)
ReviewerResult
addReviewer(ReviewerInput in)
AccountInfo
addToAttentionSet(AttentionSetInput input)
Adds a user to the attention set.AttentionSetApi
attention(String id)
Manage the attention set.ChangeInfo
check()
ChangeInfo
check(FixInput fix)
SubmitRequirementResultInfo
checkSubmitRequirement(SubmitRequirementInput input)
Returns the result of evaluating theSubmitRequirementInput
input on the change.Map<String,List<CommentInfo>>
comments()
Deprecated.List<CommentInfo>
commentsAsList()
Deprecated.ChangeApi.CommentsRequest
commentsRequest()
Get aChangeApi.CommentsRequest
entity that can be used to retrieve published comments.ChangeInfo
createMergePatchSet(MergePatchSetInput in)
Create a merge patch set for the change.void
delete()
Deletes a change.AccountInfo
deleteAssignee()
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.DraftsRequest
draftsRequest()
Get aChangeApi.DraftsRequest
entity that can be used to retrieve draft comments.ChangeEditApi
edit()
Provides access to an API regarding the change edit of this change.ChangeInfo
get(EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String,String> pluginOptions)
AccountInfo
getAssignee()
Get the assignee of a change.Set<String>
getHashtags()
Get hashtags on a change.List<AccountInfo>
getPastAssignees()
Get all past assignees.String
id()
void
ignore(boolean ignore)
Ignore or un-ignore this change.boolean
ignored()
Check if this change is ignored.IncludedInInfo
includedIn()
void
index()
ChangeMessageApi
message(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.ChangeInfoDifference
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.void
move(MoveInput in)
PureRevertInfo
pureRevert()
Check if this change is a pure revert of the change stored in revertOf.PureRevertInfo
pureRevert(String claimedOriginal)
Check if this change is a pure revert of claimedOriginal (SHA1 in 40 digit hex).void
rebase(RebaseInput in)
Rebase the current revision of a change.void
restore(RestoreInput in)
ChangeApi
revert(RevertInput in)
Create a new change that reverts this change.RevertSubmissionInfo
revertSubmission(RevertInput in)
ReviewerApi
reviewer(String id)
Look up the reviewer of the change.List<ReviewerInfo>
reviewers()
Retrieve reviewers (ReviewerState.REVIEWER
andReviewerState.CC
) on the change.RevisionApi
revision(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.AccountInfo
setAssignee(AssigneeInput input)
Set the assignee of a change.void
setHashtags(HashtagsInput input)
Set hashtags on a changevoid
setMessage(CommitMessageInput in)
Create a new patch set with a new commit message.void
setPrivate(boolean value, String message)
void
setReadyForReview(String message)
void
setWorkInProgress(String message)
List<ChangeInfo>
submittedTogether()
SubmittedTogetherInfo
submittedTogether(EnumSet<SubmittedTogetherOption> options)
SubmittedTogetherInfo
submittedTogether(EnumSet<ListChangesOption> a, EnumSet<SubmittedTogetherOption> b)
ChangeApi.SuggestedReviewersRequest
suggestReviewers()
ChangeApi.SuggestedReviewersRequest
suggestReviewers(String query)
String
topic()
void
topic(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:ChangeApi
Look up the reviewer of the change.- Specified by:
reviewer
in 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:ChangeApi
Look up a revision of a change by commit SHA-1 or other supported revision string.- Specified by:
revision
in interfaceChangeApi
- Throws:
RestApiException
- See Also:
ChangeApi.current()
-
abandon
public void abandon(AbandonInput in) throws RestApiException
- Specified by:
abandon
in interfaceChangeApi
- Throws:
RestApiException
-
restore
public void restore(RestoreInput in) throws RestApiException
- Specified by:
restore
in interfaceChangeApi
- Throws:
RestApiException
-
move
public void move(MoveInput in) throws RestApiException
- Specified by:
move
in interfaceChangeApi
- Throws:
RestApiException
-
setPrivate
public void setPrivate(boolean value, String message) throws RestApiException
- Specified by:
setPrivate
in interfaceChangeApi
- Throws:
RestApiException
-
setWorkInProgress
public void setWorkInProgress(String message) throws RestApiException
- Specified by:
setWorkInProgress
in interfaceChangeApi
- Throws:
RestApiException
-
setReadyForReview
public void setReadyForReview(String message) throws RestApiException
- Specified by:
setReadyForReview
in interfaceChangeApi
- Throws:
RestApiException
-
revert
public ChangeApi revert(RevertInput in) throws RestApiException
Description copied from interface:ChangeApi
Create a new change that reverts this change.- Specified by:
revert
in interfaceChangeApi
- Throws:
RestApiException
- See Also:
Changes.id(int)
-
revertSubmission
public RevertSubmissionInfo revertSubmission(RevertInput in) throws RestApiException
- Specified by:
revertSubmission
in interfaceChangeApi
- Throws:
RestApiException
-
rebase
public void rebase(RebaseInput in) throws RestApiException
Description copied from interface:ChangeApi
Rebase the current revision of a change.- Specified by:
rebase
in interfaceChangeApi
- Throws:
RestApiException
-
delete
public void delete() throws RestApiException
Description copied from interface:ChangeApi
Deletes a change.- Specified by:
delete
in interfaceChangeApi
- Throws:
RestApiException
-
topic
public String topic() throws RestApiException
- Specified by:
topic
in interfaceChangeApi
- Throws:
RestApiException
-
topic
public void topic(String topic) throws RestApiException
- Specified by:
topic
in interfaceChangeApi
- Throws:
RestApiException
-
includedIn
public IncludedInInfo includedIn() throws RestApiException
- Specified by:
includedIn
in interfaceChangeApi
- Throws:
RestApiException
-
addReviewer
public ReviewerResult addReviewer(ReviewerInput in) throws RestApiException
- Specified by:
addReviewer
in interfaceChangeApi
- Throws:
RestApiException
-
suggestReviewers
public ChangeApi.SuggestedReviewersRequest suggestReviewers() throws RestApiException
- Specified by:
suggestReviewers
in interfaceChangeApi
- Throws:
RestApiException
-
suggestReviewers
public ChangeApi.SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException
- Specified by:
suggestReviewers
in interfaceChangeApi
- Throws:
RestApiException
-
reviewers
public List<ReviewerInfo> reviewers() throws RestApiException
Description copied from interface:ChangeApi
Retrieve reviewers (ReviewerState.REVIEWER
andReviewerState.CC
) on the change.- Specified by:
reviewers
in interfaceChangeApi
- Throws:
RestApiException
-
get
public ChangeInfo get(EnumSet<ListChangesOption> options, com.google.common.collect.ImmutableListMultimap<String,String> pluginOptions) throws RestApiException
- Specified by:
get
in 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:ChangeApi
Gets the diff between a change's metadata with the two given refs.- Specified by:
metaDiff
in interfaceChangeApi
- Parameters:
oldMetaRevId
- the SHA-1 of the 'before' metadata diffed againstnewMetaRevId
newMetaRevId
- the SHA-1 of the 'after' metadata diffed againstoldMetaRevId
- Throws:
RestApiException
-
setMessage
public void setMessage(CommitMessageInput in) throws RestApiException
Description copied from interface:ChangeApi
Create a new patch set with a new commit message.- Specified by:
setMessage
in interfaceChangeApi
- Throws:
RestApiException
-
edit
public ChangeEditApi edit() throws RestApiException
Description copied from interface:ChangeApi
Provides access to an API regarding the change edit of this change.- Specified by:
edit
in interfaceChangeApi
- Returns:
- a
ChangeEditApi
for 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:ChangeApi
Set hashtags on a change- Specified by:
setHashtags
in interfaceChangeApi
- Throws:
RestApiException
-
getHashtags
public Set<String> getHashtags() throws RestApiException
Description copied from interface:ChangeApi
Get hashtags on a change.- Specified by:
getHashtags
in interfaceChangeApi
- Returns:
- hashtags
- Throws:
RestApiException
-
attention
public AttentionSetApi attention(String id) throws RestApiException
Description copied from interface:ChangeApi
Manage the attention set.- Specified by:
attention
in interfaceChangeApi
- Parameters:
id
- The account identifier.- Throws:
RestApiException
-
addToAttentionSet
public AccountInfo addToAttentionSet(AttentionSetInput input) throws RestApiException
Description copied from interface:ChangeApi
Adds a user to the attention set.- Specified by:
addToAttentionSet
in interfaceChangeApi
- Throws:
RestApiException
-
setAssignee
public AccountInfo setAssignee(AssigneeInput input) throws RestApiException
Description copied from interface:ChangeApi
Set the assignee of a change.- Specified by:
setAssignee
in interfaceChangeApi
- Throws:
RestApiException
-
getAssignee
public AccountInfo getAssignee() throws RestApiException
Description copied from interface:ChangeApi
Get the assignee of a change.- Specified by:
getAssignee
in interfaceChangeApi
- Throws:
RestApiException
-
getPastAssignees
public List<AccountInfo> getPastAssignees() throws RestApiException
Description copied from interface:ChangeApi
Get all past assignees.- Specified by:
getPastAssignees
in interfaceChangeApi
- Throws:
RestApiException
-
deleteAssignee
public AccountInfo deleteAssignee() throws RestApiException
Description copied from interface:ChangeApi
Delete the assignee of a change.- Specified by:
deleteAssignee
in 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:ChangeApi
Get all published comments on a change.- Specified by:
comments
in interfaceChangeApi
- Returns:
- comments in a map keyed by path; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
commentsAsList
@Deprecated public List<CommentInfo> commentsAsList() throws RestApiException
Deprecated.Description copied from interface:ChangeApi
Get all published comments on a change as a list.- Specified by:
commentsAsList
in interfaceChangeApi
- Returns:
- comments as a list; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
commentsRequest
public ChangeApi.CommentsRequest commentsRequest() throws RestApiException
Description copied from interface:ChangeApi
Get aChangeApi.CommentsRequest
entity that can be used to retrieve published comments.- Specified by:
commentsRequest
in interfaceChangeApi
- Returns:
- A
ChangeApi.CommentsRequest
entity 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:ChangeApi
Get all robot comments on a change.- Specified by:
robotComments
in interfaceChangeApi
- Returns:
- robot comments in a map keyed by path; robot comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
drafts
public Map<String,List<CommentInfo>> drafts() throws RestApiException
Description copied from interface:ChangeApi
Get all draft comments for the current user on a change.- Specified by:
drafts
in interfaceChangeApi
- Returns:
- drafts in a map keyed by path; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
draftsAsList
public List<CommentInfo> draftsAsList() throws RestApiException
Description copied from interface:ChangeApi
Get all draft comments for the current user on a change as a list.- Specified by:
draftsAsList
in interfaceChangeApi
- Returns:
- drafts as a list; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
draftsRequest
public ChangeApi.DraftsRequest draftsRequest() throws RestApiException
Description copied from interface:ChangeApi
Get aChangeApi.DraftsRequest
entity that can be used to retrieve draft comments.- Specified by:
draftsRequest
in interfaceChangeApi
- Returns:
- A
ChangeApi.DraftsRequest
entity 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:
check
in interfaceChangeApi
- Throws:
RestApiException
-
check
public ChangeInfo check(FixInput fix) throws RestApiException
- Specified by:
check
in interfaceChangeApi
- Throws:
RestApiException
-
checkSubmitRequirement
public SubmitRequirementResultInfo checkSubmitRequirement(SubmitRequirementInput input) throws RestApiException
Description copied from interface:ChangeApi
Returns the result of evaluating theSubmitRequirementInput
input on the change.- Specified by:
checkSubmitRequirement
in interfaceChangeApi
- Throws:
RestApiException
-
index
public void index() throws RestApiException
- Specified by:
index
in interfaceChangeApi
- Throws:
RestApiException
-
submittedTogether
public List<ChangeInfo> submittedTogether() throws RestApiException
- Specified by:
submittedTogether
in interfaceChangeApi
- Throws:
RestApiException
-
submittedTogether
public SubmittedTogetherInfo submittedTogether(EnumSet<SubmittedTogetherOption> options) throws RestApiException
- Specified by:
submittedTogether
in interfaceChangeApi
- Throws:
RestApiException
-
submittedTogether
public SubmittedTogetherInfo submittedTogether(EnumSet<ListChangesOption> a, EnumSet<SubmittedTogetherOption> b) throws RestApiException
- Specified by:
submittedTogether
in interfaceChangeApi
- Throws:
RestApiException
-
createMergePatchSet
public ChangeInfo createMergePatchSet(MergePatchSetInput in) throws RestApiException
Description copied from interface:ChangeApi
Create a merge patch set for the change.- Specified by:
createMergePatchSet
in interfaceChangeApi
- Throws:
RestApiException
-
ignore
public void ignore(boolean ignore) throws RestApiException
Description copied from interface:ChangeApi
Ignore or un-ignore this change.- Specified by:
ignore
in interfaceChangeApi
- Parameters:
ignore
- ignore the change if true- Throws:
RestApiException
-
ignored
public boolean ignored() throws RestApiException
Description copied from interface:ChangeApi
Check if this change is ignored.- Specified by:
ignored
in interfaceChangeApi
- Returns:
- true if the change is ignored
- Throws:
RestApiException
-
pureRevert
public PureRevertInfo pureRevert() throws RestApiException
Description copied from interface:ChangeApi
Check if this change is a pure revert of the change stored in revertOf.- Specified by:
pureRevert
in interfaceChangeApi
- Throws:
RestApiException
-
pureRevert
public PureRevertInfo pureRevert(String claimedOriginal) throws RestApiException
Description copied from interface:ChangeApi
Check if this change is a pure revert of claimedOriginal (SHA1 in 40 digit hex).- Specified by:
pureRevert
in interfaceChangeApi
- Throws:
RestApiException
-
messages
public List<ChangeMessageInfo> messages() throws RestApiException
Description copied from interface:ChangeApi
Get all messages of a change with detailed account info.- Specified by:
messages
in 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:ChangeApi
Look up a change message of a change by its id.- Specified by:
message
in interfaceChangeApi
- Parameters:
id
- the id of the change message. In NoteDb, this id is theObjectId
of a commit on the change meta branch.- Returns:
- API for accessing a change message.
- Throws:
RestApiException
- if the id is invalid.
-
-