aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-16 23:03:59 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-10-16 23:16:37 +0200
commit7305fac4717a1427d70a1bea221e1d231e5c4162 (patch)
tree8fb82209e643571a7cb93e60f890a17d81f5dd00 /sonar-ws/src
parent6189f1973d24799939b1d689a3242820e2494da6 (diff)
downloadsonarqube-7305fac4717a1427d70a1bea221e1d231e5c4162.tar.gz
sonarqube-7305fac4717a1427d70a1bea221e1d231e5c4162.zip
SONAR-8270 organization in WS api/permissions/add_project_creator_to_template
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/permission/AddProjectCreatorToTemplateWsRequest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/AddProjectCreatorToTemplateWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/AddProjectCreatorToTemplateWsRequest.java
index cbec95d29b0..cd8c2747e95 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/AddProjectCreatorToTemplateWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/permission/AddProjectCreatorToTemplateWsRequest.java
@@ -26,11 +26,13 @@ import static java.util.Objects.requireNonNull;
public class AddProjectCreatorToTemplateWsRequest {
private final String templateId;
+ private final String organization;
private final String templateName;
private final String permission;
public AddProjectCreatorToTemplateWsRequest(Builder builder) {
this.templateId = builder.templateId;
+ this.organization = builder.organization;
this.templateName = builder.templateName;
this.permission = requireNonNull(builder.permission);
}
@@ -41,6 +43,11 @@ public class AddProjectCreatorToTemplateWsRequest {
}
@CheckForNull
+ public String getOrganization() {
+ return organization;
+ }
+
+ @CheckForNull
public String getTemplateName() {
return templateName;
}
@@ -55,6 +62,7 @@ public class AddProjectCreatorToTemplateWsRequest {
public static class Builder {
private String templateId;
+ private String organization;
private String templateName;
private String permission;
@@ -67,6 +75,11 @@ public class AddProjectCreatorToTemplateWsRequest {
return this;
}
+ public Builder setOrganization(String s) {
+ this.organization = s;
+ return this;
+ }
+
public Builder setTemplateName(String templateName) {
this.templateName = templateName;
return this;