Package org.sonar.api.security
Class ExternalGroupsProvider
- java.lang.Object
-
- org.sonar.api.security.ExternalGroupsProvider
-
public abstract class ExternalGroupsProvider extends java.lang.Object
Note that prefix "do" for names of methods is reserved for future enhancements, thus should not be used in subclasses.- Since:
- 2.14
- See Also:
SecurityRealm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalGroupsProvider.Context
-
Constructor Summary
Constructors Constructor Description ExternalGroupsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
doGetGroups(java.lang.String username)
Deprecated.replaced bydoGetGroups(org.sonar.api.security.ExternalGroupsProvider.Context)
since v.java.util.Collection<java.lang.String>
doGetGroups(ExternalGroupsProvider.Context context)
Override this method in order to load user group information.
-
-
-
Method Detail
-
doGetGroups
@Deprecated public java.util.Collection<java.lang.String> doGetGroups(java.lang.String username)
Deprecated.replaced bydoGetGroups(org.sonar.api.security.ExternalGroupsProvider.Context)
since v. 5.2- Returns:
- list of groups associated with specified user, or null if such user doesn't exist
- Throws:
java.lang.RuntimeException
- in case of unexpected error such as connection failure
-
doGetGroups
public java.util.Collection<java.lang.String> doGetGroups(ExternalGroupsProvider.Context context)
Override this method in order to load user group information.- Returns:
- list of groups associated with specified user, or null if such user doesn't exist
- Throws:
java.lang.RuntimeException
- in case of unexpected error such as connection failure- Since:
- 5.2
-
-