public class DefaultAuthenticationContext extends Object implements BambooAuthenticationContext
| Constructor and Description |
|---|
DefaultAuthenticationContext(BambooUserManager bambooUserManager,
I18nBeanFactory i18nBeanFactory)
Deprecated.
since 6.6 use autowiring instead.
|
DefaultAuthenticationContext(I18nBeanFactory i18nBeanFactory) |
| Modifier and Type | Method and Description |
|---|---|
I18nBean |
getI18NBean()
Get i18n bean associated with the current user.
|
Locale |
getLocale()
Get locale associated with the current user.
|
@Nullable com.atlassian.user.User |
getUser()
Who's the current current user (in the current http session!)
|
@Nullable String |
getUserName()
Who's the current current user (in the current http session!)
|
@Nullable String |
getUserNameFromSecurityContext() |
public DefaultAuthenticationContext(I18nBeanFactory i18nBeanFactory)
@Deprecated public DefaultAuthenticationContext(BambooUserManager bambooUserManager, I18nBeanFactory i18nBeanFactory)
@Nullable public @Nullable com.atlassian.user.User getUser()
BambooAuthenticationContextgetUser in interface BambooAuthenticationContext@Nullable public @Nullable String getUserName()
BambooAuthenticationContextgetUserName in interface BambooAuthenticationContext@Nullable public @Nullable String getUserNameFromSecurityContext()
getUserNameFromSecurityContext in interface BambooAuthenticationContextpublic Locale getLocale()
BambooAuthenticationContextgetLocale in interface BambooAuthenticationContextpublic I18nBean getI18NBean()
BambooAuthenticationContextgetI18NBean in interface BambooAuthenticationContextCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.