public final class ReviewUpdateQuery extends UpdateQuery<Review>
DEFAULT_TIMEOUT_MILLISECONDS
Modifier and Type | Method and Description |
---|---|
static ReviewUpdateQuery |
addComment(long id,
String comment)
Creates query to add comment to review.
|
String |
getAssignee() |
String |
getBody()
Property
comment transmitted through request body as content may exceed URL size allowed by the server. |
String |
getComment() |
Class<Review> |
getModelClass() |
String |
getResolution() |
long |
getReviewId() |
String |
getUrl()
Must start with a slash, for example: /api/metrics
|
static ReviewUpdateQuery |
reassign(long id,
String assignee)
Creates query to reassign review.
|
static ReviewUpdateQuery |
reopen(long id)
Creates query to reopen review.
|
static ReviewUpdateQuery |
resolve(long id,
String resolution)
Creates query to resolve review.
|
ReviewUpdateQuery |
setAssignee(String userLogin) |
ReviewUpdateQuery |
setComment(String comment) |
ReviewUpdateQuery |
setResolution(String resolution) |
appendUrlParameter, appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds
public static ReviewUpdateQuery addComment(long id, String comment)
public static ReviewUpdateQuery reassign(long id, String assignee)
public static ReviewUpdateQuery resolve(long id, String resolution)
setComment(String)
.
Otherwise comment is optional.resolution
- can be "FIXED" or "FALSE-POSITIVE"public static ReviewUpdateQuery reopen(long id)
setComment(String)
.
Otherwise comment is optional.public long getReviewId()
public ReviewUpdateQuery setComment(String comment)
public String getComment()
public String getAssignee()
public ReviewUpdateQuery setAssignee(String userLogin)
public String getResolution()
public ReviewUpdateQuery setResolution(String resolution)
resolution
- can be "FIXED" or "FALSE-POSITIVE"public String getUrl()
AbstractQuery
IMPORTANT: In implementations of this method we must use helper methods to construct URL.
public String getBody()
comment
transmitted through request body as content may exceed URL size allowed by the server.getBody
in class AbstractQuery<Review>
public Class<Review> getModelClass()
getModelClass
in class UpdateQuery<Review>
Copyright © 2009-2012 SonarSource. All Rights Reserved.