]> source.dussan.org Git - sonarqube.git/commitdiff
Add missing UserGroupsService in WsClient
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 13 Jun 2017 11:52:14 +0000 (13:52 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 20 Jun 2017 11:10:53 +0000 (04:10 -0700)
sonar-ws/src/main/java/org/sonarqube/ws/client/DefaultWsClient.java
sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java
sonar-ws/src/main/java/org/sonarqube/ws/client/usergroup/AddUserWsRequest.java

index 6f80e6b66e5b6f0479f08859185b00c607d283ca..7633c5cf7fc31ca5f5cac2992e60166fb057bb14 100644 (file)
@@ -36,6 +36,7 @@ import org.sonarqube.ws.client.rule.RulesService;
 import org.sonarqube.ws.client.setting.SettingsService;
 import org.sonarqube.ws.client.system.SystemService;
 import org.sonarqube.ws.client.user.UsersService;
+import org.sonarqube.ws.client.usergroup.UserGroupsService;
 import org.sonarqube.ws.client.usertoken.UserTokensService;
 import org.sonarqube.ws.client.webhook.WebhooksService;
 
@@ -55,6 +56,7 @@ class DefaultWsClient implements WsClient {
   private final QualityProfilesService qualityProfilesService;
   private final IssuesService issuesService;
   private final UsersService usersService;
+  private final UserGroupsService userGroupsService;
   private final UserTokensService userTokensService;
   private final QualityGatesService qualityGatesService;
   private final MeasuresService measuresService;
@@ -77,6 +79,7 @@ class DefaultWsClient implements WsClient {
     this.qualityProfilesService = new QualityProfilesService(wsConnector);
     this.issuesService = new IssuesService(wsConnector);
     this.usersService = new UsersService(wsConnector);
+    this.userGroupsService = new UserGroupsService(wsConnector);
     this.userTokensService = new UserTokensService(wsConnector);
     this.qualityGatesService = new QualityGatesService(wsConnector);
     this.measuresService = new MeasuresService(wsConnector);
@@ -131,6 +134,11 @@ class DefaultWsClient implements WsClient {
     return usersService;
   }
 
+  @Override
+  public UserGroupsService userGroups() {
+    return userGroupsService;
+  }
+
   @Override
   public UserTokensService userTokens() {
     return userTokensService;
index 9220614689fbc6910555ea364a053a99a32057a0..93062a58e4a6bbad9483485dd4646cc2dd3b1fdc 100644 (file)
@@ -36,6 +36,7 @@ import org.sonarqube.ws.client.rule.RulesService;
 import org.sonarqube.ws.client.setting.SettingsService;
 import org.sonarqube.ws.client.system.SystemService;
 import org.sonarqube.ws.client.user.UsersService;
+import org.sonarqube.ws.client.usergroup.UserGroupsService;
 import org.sonarqube.ws.client.usertoken.UserTokensService;
 import org.sonarqube.ws.client.webhook.WebhooksService;
 
@@ -72,6 +73,8 @@ public interface WsClient {
 
   UsersService users();
 
+  UserGroupsService userGroups();
+
   UserTokensService userTokens();
 
   QualityGatesService qualityGates();
index 63cb948ef9b93a16d00a035f42f5e0a276002314..b48108ca3f13e1755171eddbe9f1aeb898b47fdf 100644 (file)
@@ -63,7 +63,7 @@ public class AddUserWsRequest {
   }
 
   public static class Builder {
-    private long id;
+    private Long id;
     private String name;
     private String login;
     private String organization;