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.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()
void
abandon(AbandonInput in)
AddReviewerResult
addReviewer(AddReviewerInput in)
AddReviewerResult
addReviewer(String in)
ChangeInfo
check()
ChangeInfo
check(FixInput fix)
Map<String,List<CommentInfo>>
comments()
Get all published comments on a change.List<CommentInfo>
commentsAsList()
Get all published comments on a change as a list.ChangeInfo
createMergePatchSet(MergePatchSetInput in)
Create a merge patch set for the change.RevisionApi
current()
Look up the current revision 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.ChangeEditApi
edit()
Provides access to an API regarding the change edit of this change.ChangeInfo
get()
get
withListChangesOption
set to all except CHECK.ChangeInfo
get(EnumSet<ListChangesOption> options)
AccountInfo
getAssignee()
Get the assignee of a change.EditInfo
getEdit()
Retrieve change edit when exists.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()
ChangeInfo
info()
get
withListChangesOption
set to none.void
markAsReviewed(boolean reviewed)
Mark this change as reviewed/unreviewed.void
move(MoveInput in)
void
move(String destination)
void
publish()
Publishes a draft change.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()
Deprecated.void
rebase(RebaseInput in)
Rebase the current revision of a change.void
restore()
void
restore(RestoreInput in)
ChangeApi
revert()
Create a new change that reverts this change.ChangeApi
revert(RevertInput in)
Create a new change that reverts this change.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(int id)
Look up a revision of a change by number.RevisionApi
revision(String id)
Look up a revision of a change by commit SHA-1.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
setMessage(String message)
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
get, get, setPrivate, setReadyForReview, setWorkInProgress
-
-
-
-
Method Detail
-
current
public RevisionApi current() throws RestApiException
Description copied from interface:ChangeApi
Look up the current revision for the change.Note: This method eagerly reads the revision. Methods that mutate the revision do not necessarily re-read the revision. Therefore, calling a getter method on an instance after calling a mutation method on that same instance is not guaranteed to reflect the mutation. It is not recommended to store references to
RevisionApi
instances.- Specified by:
current
in interfaceChangeApi
- Returns:
- API for accessing the revision.
- Throws:
RestApiException
- if an error occurred.
-
revision
public RevisionApi revision(int id) throws RestApiException
Description copied from interface:ChangeApi
Look up a revision of a change by number.- Specified by:
revision
in interfaceChangeApi
- Throws:
RestApiException
- See Also:
ChangeApi.current()
-
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.- Specified by:
revision
in interfaceChangeApi
- Throws:
RestApiException
- See Also:
ChangeApi.current()
-
abandon
public void abandon() throws RestApiException
- Specified by:
abandon
in interfaceChangeApi
- Throws:
RestApiException
-
abandon
public void abandon(AbandonInput in) throws RestApiException
- Specified by:
abandon
in interfaceChangeApi
- Throws:
RestApiException
-
restore
public void restore() throws RestApiException
- Specified by:
restore
in interfaceChangeApi
- Throws:
RestApiException
-
restore
public void restore(RestoreInput in) throws RestApiException
- Specified by:
restore
in interfaceChangeApi
- Throws:
RestApiException
-
move
public void move(String destination) throws RestApiException
- Specified by:
move
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() 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)
-
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)
-
publish
public void publish() throws RestApiException
Description copied from interface:ChangeApi
Publishes a draft change.- Specified by:
publish
in interfaceChangeApi
- Throws:
RestApiException
-
rebase
@Deprecated public void rebase() throws RestApiException
Deprecated.Description copied from interface:ChangeApi
Rebase the current revision of a change using default options.- Specified by:
rebase
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 AddReviewerResult addReviewer(AddReviewerInput in) throws RestApiException
- Specified by:
addReviewer
in interfaceChangeApi
- Throws:
RestApiException
-
addReviewer
public AddReviewerResult addReviewer(String 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) throws RestApiException
- Specified by:
get
in interfaceChangeApi
- Throws:
RestApiException
-
get
public ChangeInfo get() throws RestApiException
Description copied from interface:ChangeApi
get
withListChangesOption
set to all except CHECK.- Specified by:
get
in interfaceChangeApi
- Throws:
RestApiException
-
info
public ChangeInfo info() throws RestApiException
Description copied from interface:ChangeApi
get
withListChangesOption
set to none.- Specified by:
info
in interfaceChangeApi
- Throws:
RestApiException
-
setMessage
public void setMessage(String message) throws RestApiException
Description copied from interface:ChangeApi
Create a new patch set with a new commit message.- Specified by:
setMessage
in interfaceChangeApi
- 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
-
getEdit
public EditInfo getEdit() throws RestApiException
Description copied from interface:ChangeApi
Retrieve change edit when exists.- Specified by:
getEdit
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
-
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
public Map<String,List<CommentInfo>> comments() throws RestApiException
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
public List<CommentInfo> commentsAsList() throws RestApiException
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
-
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
-
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
-
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
-
markAsReviewed
public void markAsReviewed(boolean reviewed) throws RestApiException
Description copied from interface:ChangeApi
Mark this change as reviewed/unreviewed.- Specified by:
markAsReviewed
in interfaceChangeApi
- Parameters:
reviewed
- flag to decide if this change should be marked as reviewed (true
) or unreviewed (false
)- 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
-
-