java.lang.Object | |
↳ | com.atlassian.jira.user.UserKeyServiceImpl |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This convenience method is equivalent to
getKeyForUsername(user.getName()) , except that
it is null -safe. | |||||||||||
Returns the key that is associated with the given username.
| |||||||||||
Returns the (lower-cased) username that is associated with the given key.
|
[Expand]
Inherited Methods | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||
From interface
com.atlassian.jira.user.UserKeyService
|
This convenience method is equivalent to getKeyForUsername(user.getName())
, except that
it is null
-safe.
user | the user to resolve to a key (may be null ) |
---|
getKeyForUsername(String)
Returns the key that is associated with the given username. Normally this mapping is retained even for deleted users.
username | the username to resolve to a key (may be null ) |
---|
null
if username
is null
or unmapped. Note that a non-null
result does not guarantee that
the user still exists.
Returns the (lower-cased) username that is associated with the given key. Normally this mapping is retained even for deleted users.
Note that this returns the lower-case of the username (because username must act case-insensitive in our key->username map).
key | the key to resolve to a username (may be null ) |
---|
null
if key
is null
or unmapped. Note that a non-null
result does not guarantee that
the user still exists.