diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-06-28 14:07:42 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-06-28 19:22:48 +0400 |
commit | 6eabbf7ffb16a904cd288590dd9b13ba37d660c0 (patch) | |
tree | 71bb45306114b11f7f4c9be0100dc871d7ca1288 /sonar-ws-client/src/main/java/org | |
parent | 4e1655566e26035164f644b0a933e7c0e7891436 (diff) | |
download | sonarqube-6eabbf7ffb16a904cd288590dd9b13ba37d660c0.tar.gz sonarqube-6eabbf7ffb16a904cd288590dd9b13ba37d660c0.zip |
SONAR-2453,SONAR-2404 Allow search for reviews by resolutions
Diffstat (limited to 'sonar-ws-client/src/main/java/org')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java index 07cc0da834e..0892ed83e82 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ReviewQuery.java @@ -43,7 +43,7 @@ public class ReviewQuery extends Query<Review> { private String[] authorLoginsOrIds; private String[] assigneeLoginsOrIds; private String output; - private String falsePositives; + private String[] resolutions; public ReviewQuery() { } @@ -215,28 +215,16 @@ public class ReviewQuery extends Query<Review> { /** * @since 2.9 - * @return the false_positives */ - public String getFalsePositives() { - return falsePositives; + public String[] getResolutions() { + return resolutions; } /** - * Sets the 'false_positives' parameter that can be: - * <ul> - * <li>only</li> - * <li>with</li> - * <li>without</li> - * </ul> - * , 'with' being the default one on the server side. <br> - * <br> - * * @since 2.9 - * @param falsePositives - * the false_positives */ - public ReviewQuery setFalsePositives(String falsePositives) { - this.falsePositives = falsePositives; + public ReviewQuery setResolutions(String... resolutions) { + this.resolutions = resolutions; return this; } @@ -256,8 +244,8 @@ public class ReviewQuery extends Query<Review> { appendUrlParameter(url, "authors", authorLoginsOrIds); appendUrlParameter(url, "assignees", assigneeLoginsOrIds); appendUrlParameter(url, "output", output); - appendUrlParameter(url, "false_positives", falsePositives); - if (falsePositives == null && reviewType != null) { + appendUrlParameter(url, "resolutions", resolutions); + if (resolutions == null && reviewType != null) { // Use of the 2.8 deprecated API: handle backward compatibility appendUrlParameter(url, "review_type", reviewType); } |