com.atlassian.bamboo.user
Interface BambooAuthenticationContext

All Known Implementing Classes:
DefaultAuthenticationContext

public interface BambooAuthenticationContext

Provides an interface to access the current User.


Method Summary
 I18nBean getI18NBean()
          Get i18n bean associated with the current user.
 java.util.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!)
 java.lang.String getUserName()
          Who's the current current user (in the current http session!)
 

Method Detail

getUser

@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
java.lang.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.

getLocale

java.util.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


Copyright © 2011 Atlassian. All Rights Reserved.