diff options
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 | 17 | ||||
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java | 17 |
2 files changed, 34 insertions, 0 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 21dc8d0d0d5..38c3780ce2d 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 @@ -35,6 +35,7 @@ public class ReviewQuery extends Query<Review> { private String[] resourceKeysOrIds; private String[] authorLoginsOrIds; private String[] assigneeLoginsOrIds; + private String output; public ReviewQuery() { } @@ -187,6 +188,21 @@ public class ReviewQuery extends Query<Review> { return this; } + /** + * @return the output + */ + public String getOutput() { + return output; + } + + /** + * @param output the output to set + */ + public ReviewQuery setOutput(String output) { + this.output = output; + return this; + } + @Override public String getUrl() { StringBuilder url = new StringBuilder(BASE_URL); @@ -203,6 +219,7 @@ public class ReviewQuery extends Query<Review> { appendUrlParameter(url, "resources", resourceKeysOrIds); appendUrlParameter(url, "authors", authorLoginsOrIds); appendUrlParameter(url, "assignees", assigneeLoginsOrIds); + appendUrlParameter(url, "output", output); return url.toString(); } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java index e3eb5dd60de..42408d98c03 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/ViolationQuery.java @@ -32,6 +32,7 @@ public class ViolationQuery extends Query<Violation> { private String[] severities; private Integer limit; private Boolean includeReview; + private String output; public ViolationQuery(String resourceKeyOrId) { this.resourceKeyOrId = resourceKeyOrId; @@ -144,6 +145,21 @@ public class ViolationQuery extends Query<Violation> { return this; } + /** + * @since 2.8 + */ + public String getOutput() { + return output; + } + + /** + * @since 2.8 + */ + public ViolationQuery setOutput(String output) { + this.output = output; + return this; + } + @Override public String getUrl() { StringBuilder url = new StringBuilder(BASE_URL); @@ -159,6 +175,7 @@ public class ViolationQuery extends Query<Violation> { appendUrlParameter(url, "categories", categories); appendUrlParameter(url, "priorities", severities); appendUrlParameter(url, "include_review", includeReview); + appendUrlParameter(url, "output", output); return url.toString(); } |