aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-06 09:51:32 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-06 09:51:32 +0100
commitf1cdfa9e12ebd0fb0d9001e75155b2614cd4a718 (patch)
treec07d3315ed0cf5d4f2dba8ad7dbf956bad8461b2
parent437e2de50e4dd4da214e9e019f74f40a7b839f4c (diff)
downloadsonarqube-f1cdfa9e12ebd0fb0d9001e75155b2614cd4a718.tar.gz
sonarqube-f1cdfa9e12ebd0fb0d9001e75155b2614cd4a718.zip
Update some comments
-rw-r--r--sonar-core/src/main/java/org/sonar/core/permission/PermissionDao.java3
-rw-r--r--sonar-core/src/main/java/org/sonar/core/permission/PermissionTemplateDao.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/permission/PermissionDao.java b/sonar-core/src/main/java/org/sonar/core/permission/PermissionDao.java
index 7bbcaf60ad8..17eb9cc346d 100644
--- a/sonar-core/src/main/java/org/sonar/core/permission/PermissionDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/permission/PermissionDao.java
@@ -62,8 +62,9 @@ public class PermissionDao implements ServerComponent {
}
/**
- * @return a non paginated list of groups.
+ * 'Anyone' group is not returned when it has not the asked permission.
* Membership parameter from query is not taking into account in order to deal more easily with the 'Anyone' group
+ * @return a non paginated list of groups.
*/
public List<GroupWithPermissionDto> selectGroups(WithPermissionQuery query, @Nullable Long componentId) {
SqlSession session = myBatis.openSession();
diff --git a/sonar-core/src/main/java/org/sonar/core/permission/PermissionTemplateDao.java b/sonar-core/src/main/java/org/sonar/core/permission/PermissionTemplateDao.java
index e8d11287bc4..dd5dd99d154 100644
--- a/sonar-core/src/main/java/org/sonar/core/permission/PermissionTemplateDao.java
+++ b/sonar-core/src/main/java/org/sonar/core/permission/PermissionTemplateDao.java
@@ -75,8 +75,9 @@ public class PermissionTemplateDao implements TaskComponent, ServerComponent {
}
/**
+ * 'Anyone' group is not returned when it has not the asked permission.
+ * Membership parameter from query is not taking into account in order to deal more easily with the 'Anyone' group.
* @return a non paginated list of groups.
- * Membership parameter from query is not taking into account in order to deal more easily with the 'Anyone' group
*/
public List<GroupWithPermissionDto> selectGroups(WithPermissionQuery query, Long templateId) {
SqlSession session = myBatis.openSession();