com.atlassian.jira.security
Class JiraAuthenticationContextImpl

java.lang.Object
  extended by com.atlassian.jira.security.JiraAuthenticationContextImpl
All Implemented Interfaces:
JiraAuthenticationContext

public class JiraAuthenticationContextImpl
extends Object
implements JiraAuthenticationContext


Constructor Summary
JiraAuthenticationContextImpl(com.atlassian.seraph.auth.AuthenticationContext authenticationContext, OutlookDateManager outlookDateManager)
           
 
Method Summary
static void clearRequestCache()
           
 I18nBean getI18nBean()
          Useful for I18n
 I18nBean getI18nBean(String additionalBundle)
          This method may be used to inject additional messagebundles into the I18nBean.
 Locale getLocale()
          Get the users locale.
 OutlookDate getOutlookDate()
          Method used to get a nice representation of a date using a user's locale.
static Map getRequestCache()
           
 String getText(String key)
           
 User getUser()
          Returns the currently logged in User.
 void setUser(User user)
          This comes to use in places like Jelly where we need to switch the identity of a user during execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraAuthenticationContextImpl

public JiraAuthenticationContextImpl(com.atlassian.seraph.auth.AuthenticationContext authenticationContext,
                                     OutlookDateManager outlookDateManager)
Method Detail

getUser

public User getUser()
Description copied from interface: JiraAuthenticationContext
Returns the currently logged in User.

Specified by:
getUser in interface JiraAuthenticationContext
Returns:
The logged in User, or null

getLocale

public Locale getLocale()
Description copied from interface: JiraAuthenticationContext
Get the users locale.

Specified by:
getLocale in interface JiraAuthenticationContext
Returns:
The user's locale, or the default system locale.

getOutlookDate

public OutlookDate getOutlookDate()
Description copied from interface: JiraAuthenticationContext
Method used to get a nice representation of a date using a user's locale.

Specified by:
getOutlookDate in interface JiraAuthenticationContext
Returns:
A OutlookDate

clearRequestCache

public static void clearRequestCache()

getRequestCache

public static Map getRequestCache()

getText

public String getText(String key)
Specified by:
getText in interface JiraAuthenticationContext

getI18nBean

public I18nBean getI18nBean()
Description copied from interface: JiraAuthenticationContext
Useful for I18n

Specified by:
getI18nBean in interface JiraAuthenticationContext
Returns:
An instance of I18nBean

getI18nBean

public I18nBean getI18nBean(String additionalBundle)
Description copied from interface: JiraAuthenticationContext
This method may be used to inject additional messagebundles into the I18nBean.

Specified by:
getI18nBean in interface JiraAuthenticationContext
Returns:
An instance of I18nBean with additional message bundles.

setUser

public void setUser(User user)
Description copied from interface: JiraAuthenticationContext
This comes to use in places like Jelly where we need to switch the identity of a user during execution.

Specified by:
setUser in interface JiraAuthenticationContext


Copyright © 2002-2007 Atlassian. All Rights Reserved.