@Immutable public final class UserIdentity extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UserIdentity.Builder |
Modifier and Type | Method and Description |
---|---|
static UserIdentity.Builder |
builder() |
String |
getEmail()
Optional non-blank email.
|
Set<String> |
getGroups()
List of group membership of the user.
|
String |
getLogin()
Non-blank user login, unique for the SonarQube platform.
|
String |
getName()
Non-blank display name.
|
String |
getProviderLogin()
Non-blank user login for the related
IdentityProvider . |
boolean |
shouldSyncGroups()
Return true if groups should be synchronized for this user.
|
public String getProviderLogin()
IdentityProvider
.public String getLogin()
IdentityProvider
define two users with the same login, then users are considered as identical.public String getName()
@CheckForNull public String getEmail()
IdentityProvider
. If not unique, then authentication will fail.public boolean shouldSyncGroups()
public Set<String> getGroups()
public static UserIdentity.Builder builder()
Copyright © 2009–2016 SonarSource. All rights reserved.