aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-10-04 11:10:31 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-10-12 12:24:29 +0200
commit377b2087815b3b6da05d9f4a7718b9fae7abd71e (patch)
tree398070ac9186a5a68fe3ce3d0cf38cc1aaf746f5 /sonar-db
parentf8ea3a5f8861213fde5b431ef2c25e18ac19f144 (diff)
downloadsonarqube-377b2087815b3b6da05d9f4a7718b9fae7abd71e.tar.gz
sonarqube-377b2087815b3b6da05d9f4a7718b9fae7abd71e.zip
SONAR-8155 add UserSession#isRoot and checkIsRoot
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/user/UserDto.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/user/UserDto.java b/sonar-db/src/main/java/org/sonar/db/user/UserDto.java
index df3d9e02726..385968943fd 100644
--- a/sonar-db/src/main/java/org/sonar/db/user/UserDto.java
+++ b/sonar-db/src/main/java/org/sonar/db/user/UserDto.java
@@ -207,13 +207,14 @@ public class UserDto {
}
/**
- * Setters is not accessible as dedicated requests must be used to update the root flag of a user:
+ * Setters is not accessible as MyBatis doesn't need setter to set the field and dedicated SQL requests must be used
+ * to update the root flag of a user:
* <ul>
* <li>a user can not be created root</li>
* <li>the generic update method of a user can not change its root flag</li>
* </ul>
*/
- private void setRoot(boolean root) {
+ protected void setRoot(boolean root) {
this.root = root;
}