diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-11-29 21:43:29 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-12-12 20:21:01 +0100 |
commit | 86cd2f36c84cdf32b64765583af59c4bd6569884 (patch) | |
tree | 37647b92cc9f0f5a539ee4f5a13221903f3f089f /sonar-plugin-api/src/main/java/org/sonar/api | |
parent | 2c418ad1b5533d40152261548f43f708fa1b0df7 (diff) | |
download | sonarqube-86cd2f36c84cdf32b64765583af59c4bd6569884.tar.gz sonarqube-86cd2f36c84cdf32b64765583af59c4bd6569884.zip |
SONARCLOUD-213 remove useless method in PermissionService
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java | 9 |
1 files changed, 9 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 196218cdc51..fb582ea5b7c 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 @@ -23,6 +23,10 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; /** * @since 1.11 @@ -49,4 +53,9 @@ public @interface UserRole { String[] value() default {}; + /** + * Permissions which are implicitly available for any user, any group and to group "AnyOne" on public components. + */ + Set<String> PUBLIC_PERMISSIONS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(UserRole.USER, UserRole.CODEVIEWER))); + } |