aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-01 10:31:38 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-07-01 10:31:38 +0200
commit064b51093fc80d24af7a9c2e4b9cdeb0bcb67db4 (patch)
tree2965c57f88906458d10b77dea0c8071dbb47f547 /sonar-core/src
parent74261f4a178d2a9455d541e25da819f3939359c7 (diff)
downloadsonarqube-064b51093fc80d24af7a9c2e4b9cdeb0bcb67db4.tar.gz
sonarqube-064b51093fc80d24af7a9c2e4b9cdeb0bcb67db4.zip
SONAR-4099 Changed dashboard sharing permission name to lowerCamelCase (i.e. shareDashboard)
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/user/Permissions.java2
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql2
-rw-r--r--sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions-result.xml4
-rw-r--r--sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions.xml4
4 files changed, 6 insertions, 6 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/user/Permissions.java b/sonar-core/src/main/java/org/sonar/core/user/Permissions.java
index 636d0773e49..5df063e292c 100644
--- a/sonar-core/src/main/java/org/sonar/core/user/Permissions.java
+++ b/sonar-core/src/main/java/org/sonar/core/user/Permissions.java
@@ -30,7 +30,7 @@ public interface Permissions {
String SYSTEM_ADMIN = "admin";
String QUALITY_PROFILE_ADMIN = "profileadmin";
- String DASHBOARD_SHARING = "sharedashboard";
+ String DASHBOARD_SHARING = "shareDashboard";
String SCAN_EXECUTION = "scan";
String DRY_RUN_EXECUTION = "dryrun";
}
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
index 1aa4cda1fef..c0e5e0cb2a7 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
@@ -6,7 +6,7 @@ ALTER TABLE GROUPS ALTER COLUMN ID RESTART WITH 3;
INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (1, 1, null, 'admin');
INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (2, 1, null, 'profileadmin');
-INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (3, 1, null, 'sharedashboard');
+INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (3, 1, null, 'shareDashboard');
INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (4, null, null, 'scan');
INSERT INTO GROUP_ROLES(ID, GROUP_ID, RESOURCE_ID, ROLE) VALUES (5, null, null, 'dryrun');
ALTER TABLE GROUP_ROLES ALTER COLUMN ID RESTART WITH 6;
diff --git a/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions-result.xml b/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions-result.xml
index f1f5f50fc06..7ed962bf017 100644
--- a/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions-result.xml
+++ b/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions-result.xml
@@ -4,8 +4,8 @@
<groups id="101" name="sonar-users"/>
<group_roles id="1" group_id="100" role="admin"/>
- <group_roles id="3" group_id="100" role="sharedashboard"/>
- <group_roles id="4" group_id="101" role="sharedashboard"/>
+ <group_roles id="3" group_id="100" role="shareDashboard"/>
+ <group_roles id="4" group_id="101" role="shareDashboard"/>
<!-- Group 'anyone' has a NULL group_id -->
<group_roles id="5" group_id="[null]" role="scan"/>
<group_roles id="6" group_id="[null]" role="dryrun"/>
diff --git a/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions.xml b/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions.xml
index 832c7f087c5..a10dd70b113 100644
--- a/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions.xml
+++ b/sonar-core/src/test/resources/org/sonar/core/user/RoleDaoTest/groupPermissions.xml
@@ -5,8 +5,8 @@
<group_roles id="1" group_id="100" role="admin"/>
<group_roles id="2" group_id="100" role="profileadmin"/>
- <group_roles id="3" group_id="100" role="sharedashboard"/>
- <group_roles id="4" group_id="101" role="sharedashboard"/>
+ <group_roles id="3" group_id="100" role="shareDashboard"/>
+ <group_roles id="4" group_id="101" role="shareDashboard"/>
<!-- Group 'anyone' has a NULL group_id -->
<group_roles id="5" group_id="[null]" role="scan"/>
<group_roles id="6" group_id="[null]" role="dryrun"/>