|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.wsclient.services.AbstractQuery<MODEL>
org.sonar.wsclient.services.UpdateQuery<Review>
org.sonar.wsclient.services.ReviewUpdateQuery
public final class ReviewUpdateQuery
| Field Summary |
|---|
| Fields inherited from class org.sonar.wsclient.services.AbstractQuery |
|---|
DEFAULT_TIMEOUT_MILLISECONDS |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.sonar.wsclient.services.AbstractQuery |
|---|
appendUrlParameter, appendUrlParameter, appendUrlParameter, encode, getLocale, getTimeoutMilliseconds, setLocale, setTimeoutMilliseconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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()
AbstractQueryIMPORTANT: In implementations of this method we must use helper methods to construct URL.
getUrl in class AbstractQuery<Review>AbstractQuery.encode(String),
AbstractQuery.appendUrlParameter(StringBuilder, String, Object),
AbstractQuery.appendUrlParameter(StringBuilder, String, Object[]),
AbstractQuery.appendUrlParameter(StringBuilder, String, Date, boolean)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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||