public class DefaultBambooUser extends Object implements BambooUser
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ADMIN_GROUP
The name of the default admin group in Bamboo that's created on setup.
|
static String |
DEFAULT_USERS_GROUP |
BOTH_PREF, DEFAULT_NOTIFICATION_PREFERENCE, DEFAULT_TRANSPORT_PREFERENCE, EMAIL_PREF, IM_PREF, MULTIPART_EMAIL, NONE_PREF, TEXT_EMAIL
Constructor and Description |
---|
DefaultBambooUser(com.atlassian.user.User user)
Deprecated.
since 6.6.0. Use
DefaultBambooUser(User, GrantedAuthority[]) |
DefaultBambooUser(com.atlassian.user.User user,
Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier) |
DefaultBambooUser(com.atlassian.user.User user,
Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier,
AccessToken accessToken) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AccessToken |
getAccessToken()
If user has been authenticated by access token returns meta-data of token.
|
org.acegisecurity.GrantedAuthority[] |
getAuthorities() |
String |
getEmail() |
String |
getFullName() |
String |
getJabberAddress()
Returns the user's jabber address for IMs
|
String |
getName() |
String |
getNotificationPreference()
Returns the user's preferences for how they receive notifications
|
String |
getNotificationTransportPreference()
Returns the user's preference for the format of emails
|
String |
getPassword() |
com.atlassian.user.User |
getUser()
Returns the user, which contains the user's details
|
String |
getUsername() |
int |
hashCode() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
String |
toString() |
public static final String DEFAULT_USERS_GROUP
public static final String DEFAULT_ADMIN_GROUP
BambooPermissionManager.getAdminGroups()
.@Deprecated public DefaultBambooUser(com.atlassian.user.User user)
DefaultBambooUser(User, GrantedAuthority[])
public DefaultBambooUser(@NotNull com.atlassian.user.User user, @NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier)
public DefaultBambooUser(@NotNull com.atlassian.user.User user, @NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier, @Nullable AccessToken accessToken)
@Nullable public String getJabberAddress()
BambooUser
getJabberAddress
in interface BambooUser
public String getNotificationPreference()
BambooUser
getNotificationPreference
in interface BambooUser
public String getNotificationTransportPreference()
BambooUser
getNotificationTransportPreference
in interface BambooUser
public com.atlassian.user.User getUser()
BambooUser
getUser
in interface BambooUser
public String getName()
public String getFullName()
getFullName
in interface com.atlassian.user.User
public String getEmail()
getEmail
in interface com.atlassian.user.User
public int hashCode()
public boolean equals(Object o)
@NotNull public org.acegisecurity.GrantedAuthority[] getAuthorities()
getAuthorities
in interface org.acegisecurity.userdetails.UserDetails
public String getPassword()
getPassword
in interface org.acegisecurity.userdetails.UserDetails
public String getUsername()
getUsername
in interface org.acegisecurity.userdetails.UserDetails
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.acegisecurity.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.acegisecurity.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.acegisecurity.userdetails.UserDetails
public boolean isEnabled()
isEnabled
in interface com.atlassian.user.User
isEnabled
in interface org.acegisecurity.userdetails.UserDetails
@Nullable public AccessToken getAccessToken()
BambooUser
getAccessToken
in interface BambooUser
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.