From 6bbc81b3eb838f9e721eea947513fc86a33fc05e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 16 Oct 2016 19:43:42 +0200 Subject: [PATCH] SONAR-8291 make organization parameters as internal --- .../server/permission/ws/PermissionsWsParametersBuilder.java | 3 ++- .../main/java/org/sonar/server/usergroups/ws/CreateAction.java | 3 ++- .../java/org/sonar/server/usergroups/ws/GroupWsSupport.java | 1 + .../main/java/org/sonar/server/usergroups/ws/SearchAction.java | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWsParametersBuilder.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWsParametersBuilder.java index f9032be648a..fcb0f6284d2 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWsParametersBuilder.java +++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWsParametersBuilder.java @@ -82,7 +82,8 @@ public class PermissionsWsParametersBuilder { action.createParam(PARAM_ORGANIZATION_KEY) .setDescription("Key of organization, used when group name is set") .setExampleValue("my-org") - .setSince("6.2"); + .setSince("6.2") + .setInternal(true); } public static void createGroupIdParameter(NewAction action) { diff --git a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/CreateAction.java b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/CreateAction.java index fa93dbb5787..490628d17f5 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/CreateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/CreateAction.java @@ -64,7 +64,8 @@ public class CreateAction implements UserGroupsWsAction { action.createParam(PARAM_ORGANIZATION_KEY) .setDescription("Key of organization. If unset then default organization is used.") .setExampleValue("my-org") - .setSince("6.2"); + .setSince("6.2") + .setInternal(true); action.createParam(PARAM_GROUP_NAME) .setDescription(String.format("Name for the new group. A group name cannot be larger than %d characters and must be unique. " + diff --git a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/GroupWsSupport.java b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/GroupWsSupport.java index d702b684ade..7ec61e13d82 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/GroupWsSupport.java +++ b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/GroupWsSupport.java @@ -181,6 +181,7 @@ public class GroupWsSupport { action.createParam(PARAM_ORGANIZATION_KEY) .setDescription("Key of organization") .setExampleValue("my-org") + .setInternal(true) .setSince("6.2"); action.createParam(PARAM_GROUP_NAME) .setDescription("Group name") diff --git a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/SearchAction.java b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/SearchAction.java index 947a4431c26..1bc40570c2f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/SearchAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/SearchAction.java @@ -75,7 +75,8 @@ public class SearchAction implements UserGroupsWsAction { action.createParam(PARAM_ORGANIZATION_KEY) .setDescription("Key of organization. If not set then groups are searched in default organization.") .setExampleValue("my-org") - .setSince("6.2"); + .setSince("6.2") + .setInternal(true); } @Override -- 2.39.5