aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-08-04 16:06:11 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 10:55:10 +0200
commit3a3a8bc2c2b14d02484512273e85d017da60a0c4 (patch)
tree5e9be966b7be4387d53eaed5efeace49a73e0704 /sonar-ws
parente96cf158611da3195ced90f4058c2fbfb7c577e1 (diff)
downloadsonarqube-3a3a8bc2c2b14d02484512273e85d017da60a0c4.tar.gz
sonarqube-3a3a8bc2c2b14d02484512273e85d017da60a0c4.zip
SONAR-9616 Support branch in api/components/tree
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/component/TreeWsRequest.java34
1 files changed, 22 insertions, 12 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/TreeWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/TreeWsRequest.java
index 2a7faa736b2..7b03a70262e 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/TreeWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/TreeWsRequest.java
@@ -24,25 +24,18 @@ import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
public class TreeWsRequest {
- @CheckForNull
private String baseComponentId;
- @CheckForNull
private String baseComponentKey;
- @CheckForNull
+ private String branch;
private String strategy;
- @CheckForNull
private List<String> qualifiers;
- @CheckForNull
private String query;
- @CheckForNull
private List<String> sort;
- @CheckForNull
private Boolean asc;
- @CheckForNull
private Integer page;
- @CheckForNull
private Integer pageSize;
+ @CheckForNull
public String getBaseComponentId() {
return baseComponentId;
}
@@ -52,6 +45,7 @@ public class TreeWsRequest {
return this;
}
+ @CheckForNull
public String getBaseComponentKey() {
return baseComponentKey;
}
@@ -61,6 +55,17 @@ public class TreeWsRequest {
return this;
}
+ @CheckForNull
+ public String getBranch() {
+ return branch;
+ }
+
+ public TreeWsRequest setBranch(@Nullable String branch) {
+ this.branch = branch;
+ return this;
+ }
+
+ @CheckForNull
public String getStrategy() {
return strategy;
}
@@ -70,6 +75,7 @@ public class TreeWsRequest {
return this;
}
+ @CheckForNull
public List<String> getQualifiers() {
return qualifiers;
}
@@ -79,6 +85,7 @@ public class TreeWsRequest {
return this;
}
+ @CheckForNull
public String getQuery() {
return query;
}
@@ -88,6 +95,7 @@ public class TreeWsRequest {
return this;
}
+ @CheckForNull
public List<String> getSort() {
return sort;
}
@@ -101,25 +109,27 @@ public class TreeWsRequest {
return asc;
}
- public TreeWsRequest setAsc(boolean asc) {
+ public TreeWsRequest setAsc(@Nullable Boolean asc) {
this.asc = asc;
return this;
}
+ @CheckForNull
public Integer getPage() {
return page;
}
- public TreeWsRequest setPage(int page) {
+ public TreeWsRequest setPage(@Nullable Integer page) {
this.page = page;
return this;
}
+ @CheckForNull
public Integer getPageSize() {
return pageSize;
}
- public TreeWsRequest setPageSize(int pageSize) {
+ public TreeWsRequest setPageSize(@Nullable Integer pageSize) {
this.pageSize = pageSize;
return this;
}