aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-16 23:02:45 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-16 23:16:37 +0200
commit6189f1973d24799939b1d689a3242820e2494da6 (patch)
tree6dd48509b947b07a9788d9ac30fe8be85768bbea /sonar-ws/src
parent25a69084fff50608f9996efd3ffc1245df219a84 (diff)
downloadsonarqube-6189f1973d24799939b1d689a3242820e2494da6.tar.gz
sonarqube-6189f1973d24799939b1d689a3242820e2494da6.zip
SONAR-8272 SONAR-8273 organization in WS to apply permission templates
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/permission/ApplyTemplateWsRequest.java10
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/permission/BulkApplyTemplateWsRequest.java11
2 files changed, 21 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/ApplyTemplateWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/ApplyTemplateWsRequest.java
index be8f363b56a..1c08ecba04c 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/ApplyTemplateWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/ApplyTemplateWsRequest.java
@@ -26,6 +26,7 @@ public class ApplyTemplateWsRequest {
private String projectId;
private String projectKey;
private String templateId;
+ private String organization;
private String templateName;
@CheckForNull
@@ -59,6 +60,15 @@ public class ApplyTemplateWsRequest {
}
@CheckForNull
+ public String getOrganization() {
+ return organization;
+ }
+
+ public ApplyTemplateWsRequest setOrganization(@Nullable String s) {
+ this.organization = s;
+ return this;
+ }
+ @CheckForNull
public String getTemplateName() {
return templateName;
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/BulkApplyTemplateWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/BulkApplyTemplateWsRequest.java
index f5271f85787..d8d7934b767 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/BulkApplyTemplateWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/BulkApplyTemplateWsRequest.java
@@ -25,6 +25,7 @@ import javax.annotation.Nullable;
public class BulkApplyTemplateWsRequest {
private String templateId;
+ private String organization;
private String templateName;
private String query;
private String qualifier;
@@ -40,6 +41,16 @@ public class BulkApplyTemplateWsRequest {
}
@CheckForNull
+ public String getOrganization() {
+ return organization;
+ }
+
+ public BulkApplyTemplateWsRequest setOrganization(@Nullable String s) {
+ this.organization = s;
+ return this;
+ }
+
+ @CheckForNull
public String getTemplateName() {
return templateName;
}