Package com.atlassian.bamboo.user
Class DefaultAuthenticationContext
java.lang.Object
com.atlassian.bamboo.user.DefaultAuthenticationContext
- All Implemented Interfaces:
BambooAuthenticationContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthenticationContext(BambooUserManager bambooUserManager, I18nBeanFactory i18nBeanFactory) Deprecated.since 6.6 use autowiring instead.DefaultAuthenticationContext(I18nBeanFactory i18nBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptionGet i18n bean associated with the current user.Get locale associated with the current user.@Nullable com.atlassian.user.UsergetUser()Who's the current user (in the current http session!)@Nullable StringWho's the current user (in the current http session!)@Nullable String
-
Constructor Details
-
DefaultAuthenticationContext
-
DefaultAuthenticationContext
@Deprecated public DefaultAuthenticationContext(BambooUserManager bambooUserManager, I18nBeanFactory i18nBeanFactory) Deprecated.since 6.6 use autowiring instead.
-
-
Method Details
-
getUser
@Nullable public @Nullable com.atlassian.user.User getUser()Description copied from interface:BambooAuthenticationContextWho's the current user (in the current http session!)- Specified by:
getUserin interfaceBambooAuthenticationContext- Returns:
- The user. Null if they are not logged in.
-
getUserName
Description copied from interface:BambooAuthenticationContextWho's the current user (in the current http session!)- Specified by:
getUserNamein interfaceBambooAuthenticationContext- Returns:
- the user name if the current user, null if no one.
-
getUserNameFromSecurityContext
- Specified by:
getUserNameFromSecurityContextin interfaceBambooAuthenticationContext- Returns:
- the username of the current user, or null
-
getLocale
Description copied from interface:BambooAuthenticationContextGet locale associated with the current user.- Specified by:
getLocalein interfaceBambooAuthenticationContext- Returns:
- locale of the user
-
getI18NBean
Description copied from interface:BambooAuthenticationContextGet i18n bean associated with the current user.- Specified by:
getI18NBeanin interfaceBambooAuthenticationContext- Returns:
- i18n associated with the user
-