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(@NotNull com.atlassian.user.User user,
@NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier) |
DefaultBambooUser(@NotNull com.atlassian.user.User user,
@NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier,
@Nullable AccessToken accessToken) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
@Nullable AccessToken |
getAccessToken()
If user has been authenticated by access token returns meta-data of token.
|
@NotNull org.acegisecurity.GrantedAuthority[] |
getAuthorities() |
String |
getEmail() |
String |
getFullName() |
@Nullable 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 @NotNull com.atlassian.user.User user, @NotNull @NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier)
public DefaultBambooUser(@NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull Supplier<org.acegisecurity.GrantedAuthority[]> authoritiesSupplier, @Nullable @Nullable AccessToken accessToken)
@Nullable public @Nullable 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 @NotNull 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 @Nullable AccessToken getAccessToken()
BambooUser
getAccessToken
in interface BambooUser
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.