java.lang.Object | |
↳ | com.atlassian.jira.user.ApplicationUsers |
Contains utility methods for getting an ApplicationUser
from a directory User.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the
ApplicationUser in a null -safe manner. | |||||||||||
Performs
null -safe conversion of a collection of directory users
to corresponding ApplicationUser objects. | |||||||||||
Obtains an ApplicationUser for the given directory User.
| |||||||||||
Get the key from the given user in a null-safe manner
| |||||||||||
Gets the user key for the given directory User.
| |||||||||||
Does a null-safe conversion from an application user to a directory user.
| |||||||||||
Performs
null -safe conversion of a collection of application users
to corresponding directory User objects. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Gets the ApplicationUser
in a null
-safe manner. This is a convenient
shorthand for ComponentAccessor.getUserManager().getUserByKey(key))
.
Prefer getUserByKey(String)
when the UserManager
is
already available.
key | the user's key |
---|
null
if no user exists with that key.
Performs null
-safe conversion of a collection of directory users
to corresponding ApplicationUser
objects.
users | the users to transform (may be null and may contain null |
---|
IllegalStateException | if any of the users exists in the crowd
directory but has no mapping in the UserKeyService (see
comments for from(User) ).
|
---|
Obtains an ApplicationUser for the given directory User.
user | the directory User |
---|
null
if the incoming user is null
.IllegalStateException | if user is not null , but the
UserKeyService has no mapping for its username .
This should not occur during normal operation, as all users are assigned keys
during the upgrade to v6.0 or when the user is created.
|
---|
Get the key from the given user in a null-safe manner
user | the user (possibly null) |
---|
Gets the user key for the given directory User.
This is a null
-safe shorthand for
ApplicationUsers.from(user).getKey()
user | the directory User |
---|
User
, or
null
if the incoming user is null
or has no mapping
in the UserKeyService
Does a null-safe conversion from an application user to a directory user.
user | the ApplicationUser |
---|
Performs null
-safe conversion of a collection of application users
to corresponding directory User
objects.
applicationUsers | the users to transform (may be null and may contain null |
---|