Package com.atlassian.bamboo.user
Interface BambooAuthenticationContext
-
- All Known Implementing Classes:
DefaultAuthenticationContext
public interface BambooAuthenticationContextProvides an interface to access the current User.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description I18nBeangetI18NBean()Get i18n bean associated with the current user.LocalegetLocale()Get locale associated with the current user.@Nullable com.atlassian.user.UsergetUser()Who's the current current user (in the current http session!)@Nullable StringgetUserName()Who's the current current user (in the current http session!)@Nullable StringgetUserNameFromSecurityContext()
-
-
-
Method Detail
-
getUser
@Nullable @Nullable com.atlassian.user.User getUser()
Who's the current current user (in the current http session!)- Returns:
- The user. Null if they are not logged in.
-
getUserName
@Nullable @Nullable String getUserName()
Who's the current current user (in the current http session!)- Returns:
- the user name if the current user, null if no one.
-
getUserNameFromSecurityContext
@Nullable @Nullable String getUserNameFromSecurityContext()
- Returns:
- the username of the current user, or null
-
getLocale
Locale getLocale()
Get locale associated with the current user.- Returns:
- locale of the user
-
getI18NBean
I18nBean getI18NBean()
Get i18n bean associated with the current user.- Returns:
- i18n associated with the user
-
-