|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.security.JiraAuthenticationContextImpl
public class JiraAuthenticationContextImpl
Constructor Summary | |
---|---|
JiraAuthenticationContextImpl(com.atlassian.seraph.auth.AuthenticationContext authenticationContext,
I18nHelper.BeanFactory i18n)
|
Method Summary | |
---|---|
static void |
clearRequestCache()
|
I18nHelper |
getI18nBean()
Useful for localisation of messages. |
I18nHelper |
getI18nHelper()
Useful for localisation of messages. |
Locale |
getLocale()
Get the users locale. |
com.atlassian.crowd.embedded.api.User |
getLoggedInUser()
Returns the currently logged in User. |
OutlookDate |
getOutlookDate()
Method used to get a nice representation of a date using a user's locale. |
static Map<String,Object> |
getRequestCache()
|
String |
getText(String key)
|
com.atlassian.crowd.embedded.api.User |
getUser()
Returns the currently logged in User. |
void |
setLoggedInUser(com.atlassian.crowd.embedded.api.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 |
---|
public JiraAuthenticationContextImpl(com.atlassian.seraph.auth.AuthenticationContext authenticationContext, I18nHelper.BeanFactory i18n)
Method Detail |
---|
public static void clearRequestCache()
public static Map<String,Object> getRequestCache()
public com.atlassian.crowd.embedded.api.User getLoggedInUser()
JiraAuthenticationContext
getLoggedInUser
in interface JiraAuthenticationContext
public com.atlassian.crowd.embedded.api.User getUser()
JiraAuthenticationContext
getUser
in interface JiraAuthenticationContext
public Locale getLocale()
JiraAuthenticationContext
getLocale
in interface JiraAuthenticationContext
public OutlookDate getOutlookDate()
JiraAuthenticationContext
getOutlookDate
in interface JiraAuthenticationContext
OutlookDate
public String getText(String key)
getText
in interface JiraAuthenticationContext
key
- the text key
public I18nHelper getI18nHelper()
JiraAuthenticationContext
getI18nHelper
in interface JiraAuthenticationContext
I18nHelper
public I18nHelper getI18nBean()
JiraAuthenticationContext
getI18nBean
in interface JiraAuthenticationContext
I18nHelper
public void setLoggedInUser(com.atlassian.crowd.embedded.api.User user)
JiraAuthenticationContext
setLoggedInUser
in interface JiraAuthenticationContext
user
- the currently logged in user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |