com.atlassian.bamboo.user
Class DefaultAuthenticationContext

java.lang.Object
  extended by com.atlassian.bamboo.user.DefaultAuthenticationContext
All Implemented Interfaces:
BambooAuthenticationContext

public class DefaultAuthenticationContext
extends java.lang.Object
implements BambooAuthenticationContext


Constructor Summary
DefaultAuthenticationContext(BambooUserManager bambooUserManager, I18nBeanFactory i18nBeanFactory)
           
 
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!)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthenticationContext

public DefaultAuthenticationContext(BambooUserManager bambooUserManager,
                                    I18nBeanFactory i18nBeanFactory)
Method Detail

getUser

@Nullable
public com.atlassian.user.User getUser()
Description copied from interface: BambooAuthenticationContext
Who's the current current user (in the current http session!)

Specified by:
getUser in interface BambooAuthenticationContext
Returns:
The user. Null if they are not logged in.

getUserName

@Nullable
public java.lang.String getUserName()
Description copied from interface: BambooAuthenticationContext
Who's the current current user (in the current http session!)

Specified by:
getUserName in interface BambooAuthenticationContext
Returns:
the user name if the current user, null if no one.

getLocale

public java.util.Locale getLocale()
Description copied from interface: BambooAuthenticationContext
Get locale associated with the current user.

Specified by:
getLocale in interface BambooAuthenticationContext
Returns:
locale of the user

getI18NBean

public I18nBean getI18NBean()
Description copied from interface: BambooAuthenticationContext
Get i18n bean associated with the current user.

Specified by:
getI18NBean in interface BambooAuthenticationContext
Returns:
i18n associated with the user


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.