|
||||||||||
| 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 | |
|---|---|
void |
clearLoggedInUser()
Clears any logged in user from authentication scope. |
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)
|
ApplicationUser |
getUser()
Returns the currently logged in User. |
protected UserManager |
getUserManager()
|
boolean |
isLoggedInUser()
Returns a boolean indicating whether there is a currently logged in user. |
void |
setLoggedInUser(ApplicationUser user)
This is used in places like Jelly where we need to switch the identity of a user during execution. |
void |
setLoggedInUser(com.atlassian.crowd.embedded.api.User user)
Deprecated. |
| 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 JiraAuthenticationContextprotected UserManager getUserManager()
public boolean isLoggedInUser()
JiraAuthenticationContext
isLoggedInUser in interface JiraAuthenticationContextpublic ApplicationUser getUser()
JiraAuthenticationContextcom.atlassian.crowd.embedded.api.User.
This method had previously been deprecated and has been reused to return an ApplicationUser instead. That
class has different semantics for Object.equals(Object) and therefore does not extend the User
class. This means that the 6.0 version is not binary or source compatible with earlier versions when this method
is used.
getUser in interface JiraAuthenticationContextApplicationUser, or nullpublic Locale getLocale()
JiraAuthenticationContext
getLocale in interface JiraAuthenticationContextpublic OutlookDate getOutlookDate()
JiraAuthenticationContext
getOutlookDate in interface JiraAuthenticationContextOutlookDatepublic String getText(String key)
getText in interface JiraAuthenticationContextkey - the text key
public I18nHelper getI18nHelper()
JiraAuthenticationContext
getI18nHelper in interface JiraAuthenticationContextI18nHelperpublic I18nHelper getI18nBean()
JiraAuthenticationContext
getI18nBean in interface JiraAuthenticationContextI18nHelper@Deprecated public void setLoggedInUser(com.atlassian.crowd.embedded.api.User user)
JiraAuthenticationContext
setLoggedInUser in interface JiraAuthenticationContextuser - the currently logged in userpublic void setLoggedInUser(ApplicationUser user)
JiraAuthenticationContext
setLoggedInUser in interface JiraAuthenticationContextuser - the currently logged in userpublic void clearLoggedInUser()
JiraAuthenticationContext
clearLoggedInUser in interface JiraAuthenticationContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||