java.lang.Object | |
↳ | com.atlassian.jira.user.MockApplicationUser |
A convenient mock for ApplicationUser
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | FAKE_USER_DIRECTORY_ID |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SEQUENCE |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.entity.WithId
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Uses the
lowercase form of
the supplied username as the key. | |||||||||||
Uses the
lowercase form of
the supplied username as the key. | |||||||||||
Uses the given key as-is.
| |||||||||||
Uses the given key as-is.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the display name of the user.
| |||||||||||
Returns the key which distinguishes the ApplicationUser as unique.
| |||||||||||
Synonym for
getUsername() and implementation of getName() . | |||||||||||
A
MockUser is always active by default. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.entity.WithId
| |||||||||||
From interface
com.atlassian.jira.entity.WithKey
| |||||||||||
From interface
com.atlassian.jira.user.ApplicationUser
| |||||||||||
From interface
java.security.Principal
|
Uses the lowercase
form of
the supplied username
as the key.
username | as for MockUser(String)
|
---|
Uses the lowercase
form of
the supplied username
as the key.
username | as for MockUser(String, String, String) |
---|---|
displayName | as for MockUser(String, String, String) |
as for MockUser(String, String, String)
|
Uses the given key as-is.
userKey | desired user's Key, the value to be returned for getKey() |
---|---|
username | as for MockUser(String)
|
Uses the given key as-is.
userKey | desired user's Key, the value to be returned for getKey() |
---|---|
username | as for MockUser(String, String, String) |
displayName | as for MockUser(String, String, String) |
as for MockUser(String, String, String)
|
Returns the display name of the user. This is sometimes referred to as "full name".
Returns the key which distinguishes the ApplicationUser as unique. The same key is
shared by all User
s with the same username (ignoring case) across all user
directories.
Synonym for getUsername()
and implementation of getName()
.
null
.A MockUser
is always active by default.