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 TypeMethodDescriptionvoid
abandon
(AbandonInput in) Adds a user to the attention set.Manage the attention set.check()
Returns the result of evaluating theSubmitRequirementInput
input on the change.comments()
Deprecated.Deprecated.Get aChangeApi.CommentsRequest
entity that can be used to retrieve published comments.Create a merge patch set for the change.void
delete()
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.DraftsRequest
entity 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()
void
index()
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.void
Check 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).void
rebase
(RebaseInput in) Rebase the current revision of a change.Rebase the current revisions of a change's chain.void
restore
(RestoreInput in) revert
(RevertInput in) Create a new change that reverts this change.Look up the reviewer of the change.Retrieve reviewers (ReviewerState.REVIEWER
andReviewerState.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.void
Set custom keyed values on a changevoid
setHashtags
(HashtagsInput input) Set hashtags on a changevoid
Create a new patch set with a new commit message.void
setPrivate
(boolean value, String message) void
setReadyForReview
(String message) void
setWorkInProgress
(String message) submittedTogether
(EnumSet<SubmittedTogetherOption> options) suggestReviewers
(String query) topic()
void
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, rebaseChain, restore, revert, revertSubmission, revision, setMessage, setPrivate, setReadyForReview, setWorkInProgress, suggestCcs
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
id
-
reviewer
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
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:
-
abandon
- Specified by:
abandon
in interfaceChangeApi
- Throws:
RestApiException
-
restore
- Specified by:
restore
in interfaceChangeApi
- Throws:
RestApiException
-
move
- Specified by:
move
in interfaceChangeApi
- Throws:
RestApiException
-
setPrivate
- Specified by:
setPrivate
in interfaceChangeApi
- Throws:
RestApiException
-
setWorkInProgress
- Specified by:
setWorkInProgress
in interfaceChangeApi
- Throws:
RestApiException
-
setReadyForReview
- Specified by:
setReadyForReview
in interfaceChangeApi
- Throws:
RestApiException
-
revert
Description copied from interface:ChangeApi
Create a new change that reverts this change.- Specified by:
revert
in interfaceChangeApi
- Throws:
RestApiException
- See Also:
-
revertSubmission
- Specified by:
revertSubmission
in interfaceChangeApi
- Throws:
RestApiException
-
rebase
Description copied from interface:ChangeApi
Rebase the current revision of a change.- Specified by:
rebase
in interfaceChangeApi
- Throws:
RestApiException
-
rebaseChain
Description copied from interface:ChangeApi
Rebase the current revisions of a change's chain.- Specified by:
rebaseChain
in interfaceChangeApi
- Returns:
- a
RebaseChainInfo
contains theChangeInfo
data for the rebased the chain - Throws:
RestApiException
-
delete
Description copied from interface:ChangeApi
Deletes a change.- Specified by:
delete
in interfaceChangeApi
- Throws:
RestApiException
-
topic
- Specified by:
topic
in interfaceChangeApi
- Throws:
RestApiException
-
topic
- Specified by:
topic
in interfaceChangeApi
- Throws:
RestApiException
-
includedIn
- Specified by:
includedIn
in interfaceChangeApi
- Throws:
RestApiException
-
addReviewer
- Specified by:
addReviewer
in interfaceChangeApi
- Throws:
RestApiException
-
suggestReviewers
- Specified by:
suggestReviewers
in interfaceChangeApi
- Throws:
RestApiException
-
suggestReviewers
- Specified by:
suggestReviewers
in interfaceChangeApi
- Throws:
RestApiException
-
reviewers
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 RestApiExceptionDescription 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
Description copied from interface:ChangeApi
Create a new patch set with a new commit message.- Specified by:
setMessage
in interfaceChangeApi
- Throws:
RestApiException
-
edit
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
Description copied from interface:ChangeApi
Set hashtags on a change- Specified by:
setHashtags
in interfaceChangeApi
- Throws:
RestApiException
-
getHashtags
Description copied from interface:ChangeApi
Get hashtags on a change.- Specified by:
getHashtags
in interfaceChangeApi
- Returns:
- hashtags
- Throws:
RestApiException
-
setCustomKeyedValues
Description copied from interface:ChangeApi
Set custom keyed values on a change- Specified by:
setCustomKeyedValues
in interfaceChangeApi
- Throws:
RestApiException
-
getCustomKeyedValues
public com.google.common.collect.ImmutableMap<String,String> getCustomKeyedValues() throws RestApiExceptionDescription copied from interface:ChangeApi
Gets the custom keyed values on a change.- Specified by:
getCustomKeyedValues
in interfaceChangeApi
- Returns:
- customKeyedValues
- Throws:
RestApiException
-
attention
Description copied from interface:ChangeApi
Manage the attention set.- Specified by:
attention
in interfaceChangeApi
- Parameters:
id
- The account identifier.- Throws:
RestApiException
-
addToAttentionSet
Description copied from interface:ChangeApi
Adds a user to the attention set.- Specified by:
addToAttentionSet
in interfaceChangeApi
- Throws:
RestApiException
-
comments
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.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
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
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
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
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
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
- Specified by:
check
in interfaceChangeApi
- Throws:
RestApiException
-
check
- Specified by:
check
in interfaceChangeApi
- Throws:
RestApiException
-
checkSubmitRequirementRequest
public ChangeApi.CheckSubmitRequirementRequest checkSubmitRequirementRequest() throws RestApiException- Specified by:
checkSubmitRequirementRequest
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
- Specified by:
index
in interfaceChangeApi
- Throws:
RestApiException
-
submittedTogether
- 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
Description copied from interface:ChangeApi
Create a merge patch set for the change.- Specified by:
createMergePatchSet
in interfaceChangeApi
- Throws:
RestApiException
-
applyPatch
- Specified by:
applyPatch
in interfaceChangeApi
- Throws:
RestApiException
-
pureRevert
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
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
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
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.
-