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.
|
com.atlassian.user.User |
getUser()
Who's the current current user (in the current http session!)
|
String |
getUserName()
Who's the current current user (in the current http session!)
|
String |
getUserNameFromSecurityContext() |
public DefaultAuthenticationContext(I18nBeanFactory i18nBeanFactory)
@Deprecated public DefaultAuthenticationContext(BambooUserManager bambooUserManager, I18nBeanFactory i18nBeanFactory)
@Nullable public com.atlassian.user.User getUser()
BambooAuthenticationContext
getUser
in interface BambooAuthenticationContext
@Nullable public String getUserName()
BambooAuthenticationContext
getUserName
in interface BambooAuthenticationContext
@Nullable public String getUserNameFromSecurityContext()
getUserNameFromSecurityContext
in interface BambooAuthenticationContext
public Locale getLocale()
BambooAuthenticationContext
getLocale
in interface BambooAuthenticationContext
public I18nBean getI18NBean()
BambooAuthenticationContext
getI18NBean
in interface BambooAuthenticationContext
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.