aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-06-09 16:26:56 -0500
committersonartech <sonartech@sonarsource.com>2021-06-17 20:03:08 +0000
commit2754feca4e5fa8fdd804c827783250f48676296c (patch)
tree1ed9522bbc9eff9444fae6bf0a951d976da2b859 /sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java
parent97f2c01fdd4ae863134d4aa1bf32b7dcd512b10c (diff)
downloadsonarqube-2754feca4e5fa8fdd804c827783250f48676296c.tar.gz
sonarqube-2754feca4e5fa8fdd804c827783250f48676296c.zip
SONAR-14925 Remove code deprecated before 7.0 in the Plugin API
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java b/sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java
index e101296cec3..eb83eba50bd 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/security/ExternalGroupsProvider.java
@@ -20,6 +20,7 @@
package org.sonar.api.security;
import java.util.Collection;
+import javax.annotation.CheckForNull;
import javax.servlet.http.HttpServletRequest;
/**
@@ -31,24 +32,15 @@ import javax.servlet.http.HttpServletRequest;
public abstract class ExternalGroupsProvider {
/**
- * @return list of groups associated with specified user, or null if such user doesn't exist
- * @throws RuntimeException in case of unexpected error such as connection failure
- * @deprecated replaced by {@link #doGetGroups(org.sonar.api.security.ExternalGroupsProvider.Context)} since v. 5.2
- */
- @Deprecated
- public Collection<String> doGetGroups(String username) {
- return null;
- }
-
- /**
* Override this method in order to load user group information.
*
* @return list of groups associated with specified user, or null if such user doesn't exist
* @throws RuntimeException in case of unexpected error such as connection failure
* @since 5.2
*/
+ @CheckForNull
public Collection<String> doGetGroups(Context context) {
- return doGetGroups(context.getUsername());
+ return null;
}
public static final class Context {