java.lang.Object | |
↳ | com.atlassian.jira.mock.security.MockSimpleAuthenticationContext |
Simple authentication context that can be used for testing.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clears any logged in user from authentication scope.
| |||||||||||
Useful for localisation of messages.
| |||||||||||
Useful for localisation of messages.
| |||||||||||
Get the users locale.
| |||||||||||
Returns the currently logged in User.
| |||||||||||
Method used to get a nice representation of a date using a user's locale.
| |||||||||||
Returns the currently logged in User.
| |||||||||||
Returns a boolean indicating whether there is a currently logged in user.
| |||||||||||
This is used in places like Jelly where we need to switch the identity of a user during execution.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||||||||||||||||
From interface
com.atlassian.jira.security.JiraAuthenticationContext
|
Clears any logged in user from authentication scope. After this call the anonymous user is considered to be about, ie no-one is about
Useful for localisation of messages.
I18nHelper
Useful for localisation of messages.
I18nHelper
Get the users locale.
Returns the currently logged in User.
Warning: previous incarnations of this method returned com.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 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.
ApplicationUser
, or null
Method used to get a nice representation of a date using a user's locale.
Returns the currently logged in User.
Warning: previous incarnations of this method returned com.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 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.
ApplicationUser
, or null
Returns a boolean indicating whether there is a currently logged in user.
This is used in places like Jelly where we need to switch the identity of a user during execution.
user | the currently logged in user |
---|