]> source.dussan.org Git - sonarqube.git/commit
SONAR-4465 Reworked the ResourcePermission implementation to rely on the permission...
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 10 Jul 2013 09:26:23 +0000 (11:26 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 10 Jul 2013 09:26:23 +0000 (11:26 +0200)
commit56251b15bc1b3d7f94537e89cdaf1d1128f68256
tree48e1e82e2d2bfdb37bc5e82c06a7984cdcfb03e0
parent993f49f30c5731197957300e69e9881c6ee1e970
SONAR-4465 Reworked the ResourcePermission implementation to rely on the permission templates to get the default permissions for a resource
16 files changed:
sonar-core/src/main/java/org/sonar/core/resource/DefaultResourcePermissions.java
sonar-core/src/main/java/org/sonar/core/user/PermissionDao.java
sonar-core/src/main/java/org/sonar/core/user/PermissionTemplateDto.java
sonar-core/src/main/java/org/sonar/core/user/PermissionTemplateMapper.java
sonar-core/src/main/resources/org/sonar/core/user/PermissionTemplateMapper.xml
sonar-core/src/test/java/org/sonar/core/resource/DefaultResourcePermissionsTest.java
sonar-core/src/test/java/org/sonar/core/user/PermissionDaoTest.java
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles-result.xml
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles.xml
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRolesProject-result.xml [new file with mode: 0644]
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRolesProject.xml [new file with mode: 0644]
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles_unknown_group-result.xml
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles_unknown_group.xml
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles_users-result.xml
sonar-core/src/test/resources/org/sonar/core/resource/DefaultResourcePermissionsTest/grantDefaultRoles_users.xml
sonar-core/src/test/resources/org/sonar/core/user/PermissionDaoTest/selectPermissionTemplate.xml