aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-11-29 22:02:19 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-12 20:21:02 +0100
commitcf489b9db95939a21c84f3eb133b57ac52acfce7 (patch)
tree88f60b1a707b801cc95a8b1db62419163757389b /sonar-plugin-api
parent86cd2f36c84cdf32b64765583af59c4bd6569884 (diff)
downloadsonarqube-cf489b9db95939a21c84f3eb133b57ac52acfce7.tar.gz
sonarqube-cf489b9db95939a21c84f3eb133b57ac52acfce7.zip
SONARCLOUD-213 clarify "scan" in org vs project permissions
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java
index fb582ea5b7c..5a17fee9c9d 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java
@@ -51,10 +51,16 @@ public @interface UserRole {
*/
String SECURITYHOTSPOT_ADMIN = "securityhotspotadmin";
+ /**
+ * @since 7.5
+ */
+ String SCAN = "scan";
+
String[] value() default {};
/**
* Permissions which are implicitly available for any user, any group and to group "AnyOne" on public components.
+ * @since 7.5
*/
Set<String> PUBLIC_PERMISSIONS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(UserRole.USER, UserRole.CODEVIEWER)));