]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6485 WS permissions/search_project_permissions add qualifier in response
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 2 Oct 2015 08:23:36 +0000 (10:23 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 2 Oct 2015 08:29:36 +0000 (10:29 +0200)
server/sonar-server/src/main/java/org/sonar/server/permission/ws/SearchProjectPermissionsAction.java
server/sonar-server/src/main/resources/org/sonar/server/permission/ws/search_project_permissions-example.json

index 8bbec5caa6c5fd08afd224d045135170ad62ef34..bf72a44f0b5925a8a297388ab077c82dfac7321b 100644 (file)
@@ -111,6 +111,7 @@ public class SearchProjectPermissionsAction implements PermissionsWsAction {
         .clear()
         .setId(rootComponent.uuid())
         .setKey(rootComponent.key())
+        .setQualifier(rootComponent.qualifier())
         .setName(rootComponent.name());
       for (String permission : data.permissions(rootComponent.getId())) {
         rootComponentBuilder.addPermissions(
index 724353519c396436abf7574958b1c47e40e220d2..43480d67f96012ee05eb85433dd844317b1ecfcc 100644 (file)
@@ -9,6 +9,7 @@
       "id": "0bd7b1e7-91d6-439e-a607-4a3a9aad3c6a",
       "key": "net.java.openjdk:jdk7",
       "name": "JDK 7",
+      "qualifier": "TRK",
       "permissions": [
         {
           "key": "admin",
@@ -26,6 +27,7 @@
       "id": "ce4c03d6-430f-40a9-b777-ad877c00aa4d",
       "key": "clang",
       "name": "Clang",
+      "qualifier": "TRK",
       "permissions": [
         {
           "key": "issueadmin",
@@ -38,6 +40,7 @@
       "id": "4e607bf9-7ed0-484a-946d-d58ba7dab2fb",
       "key": "simon-brandhof",
       "name": "Simon Brandhof",
+      "qualifier": "DEV",
       "permissions": [
         {
           "key": "admin",
@@ -55,6 +58,7 @@
       "id": "752d8bfd-420c-4a83-a4e5-8ab19b13c8fc",
       "key": "Java",
       "name": "Java",
+      "qualifier": "VW",
       "permissions": [
         {
           "key": "admin",