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
Modifier and TypeMethodDescriptionGet i18n bean associated with the current user.Get locale associated with the current user.@Nullable com.atlassian.user.User
getUser()
Who's the current user (in the current http session!)@Nullable String
Who's the current user (in the current http session!)@Nullable String
-
Method Details
-
getUser
@Nullable @Nullable com.atlassian.user.User getUser()Who's the current user (in the current http session!)- Returns:
- The user. Null if they are not logged in.
-
getUserName
Who's the current user (in the current http session!)- Returns:
- the user name if the current user, null if no one.
-
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
-