Package com.atlassian.bamboo.user
Interface BambooAuthenticationContext
-
- All Known Implementing Classes:
DefaultAuthenticationContext
public interface BambooAuthenticationContext
Provides an interface to access the current User.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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()
-
-
-
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
-
-