| java.lang.Object | |
| ↳ | com.atlassian.jira.user.util.DefaultUserManager |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Checks if the given directory is able to update user passwords.
| |||||||||||
Test if this user's group membership can be updated, i.e.
| |||||||||||
Test if this user can be updated, i.e.
| |||||||||||
Test if this user's password can be updated, i.e.
| |||||||||||
Returns a
User based on user name and directoryId | |||||||||||
Returns all groups defined in JIRA.
| |||||||||||
Returns all users defined in JIRA, regardless of whether they are active or not.
| |||||||||||
Returns a
Group based on user name. | |||||||||||
Returns a
Group based on user name. | |||||||||||
Returns all groups defined in JIRA.
| |||||||||||
Returns the total number of users defined in JIRA, regardless of whether they are active or not.
| |||||||||||
Returns a
User based on user name. | |||||||||||
Returns an
ApplicationUser based on user key. | |||||||||||
Returns an
ApplicationUser based on user name. | |||||||||||
Returns a
User based on user name. | |||||||||||
Returns a
User based on user name. | |||||||||||
Returns all users defined in JIRA, regardless of whether they are active or not.
| |||||||||||
Returns an ordered list of directories that have "read-write" permission.
| |||||||||||
Returns true if any of the directories have permission to update groups.
| |||||||||||
Returns true if any of the directories have permission to update user passwords, false if otherwise.
| |||||||||||
Returns true if at least one User Directory has "read-write" permission.
| |||||||||||
Updates the
User. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.user.util.UserManager
| |||||||||||
Checks if the given directory is able to update user passwords.
| directory | the Directory |
|---|
Test if this user's group membership can be updated, i.e. is in a writable directory or a directory with Local Group support. This relies upon the local directory configuration and does not guarantee that the actual remote directory, e.g. the remote LDAP directory, will actually allow the user membership to be updated.
| user | The user to update. |
|---|
Test if this user can be updated, i.e. is in a writable directory. This relies upon the local directory configuration and does not guarantee that the actual remote directory, e.g. the remote LDAP directory, will actually allow the user to be updated.
If the "External user management" setting is on, then you cannot update the user.
| user | The user to update. |
|---|
Test if this user's password can be updated, i.e. is in a writable directory which is not a Delegated LDAP directory. This relies upon the local directory configuration and does not guarantee that the actual remote directory, e.g. the remote LDAP directory, will actually allow the user to be updated.
If the "External user management", or "External password management" setting is on, then you cannot update the password.
| user | The user to update. |
|---|
Returns a User based on user name and directoryId
| userName | the user name of the user |
|---|---|
| directoryId | the Directory to look in |
Returns all groups defined in JIRA.
Warning: previous incarnations of this method returnedcom.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.Returns all users defined in JIRA, regardless of whether they are active or not.
Warning: previous incarnations of this method returnedcom.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.Returns a Group based on user name.
com.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.| groupName | the user name of the group |
|---|
Returns a Group based on user name.
getGroup(String).| groupName | the user name of the group |
|---|
Returns all groups defined in JIRA.
Legacy synonym forgetAllGroups().Returns the total number of users defined in JIRA, regardless of whether they are active or not.
Returns a User based on user name.
com.opensymphony.user.User. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.| userName | the user name of the user |
|---|
Returns an ApplicationUser based on user key.
If a null key is passed, then null is returned, but it is guaranteed to return a non-null ApplicationUser in all other cases.
If the key is not null, but the user is not found then a proxy unknown immutable ApplicationUser object is returned.
| userKey | the key of the user |
|---|
Returns an ApplicationUser based on user name.
If a null username is passed, then null is returned, but it is guaranteed to return a non-null ApplicationUser in all other cases.
If the username is not null, but the user is not found then a proxy unknown immutable ApplicationUser object is returned.
| userName | the user name of the user |
|---|
Returns a User based on user name.
If a null username is passed, then a null User object is returned, but it is guaranteed to return a non-null User in all other cases.
If the username is not null, but the User is not found then a proxy unknown immutable User object is returned.
| userName | the user name of the user |
|---|
Returns a User based on user name.
Legacy synonym for getUser(String).
| userName | the user name of the user |
|---|
Returns all users defined in JIRA, regardless of whether they are active or not.
Legacy synonym forgetAllUsers().Returns an ordered list of directories that have "read-write" permission. ie those directories that we can add a user to.
Returns true if any of the directories have permission to update groups.
Note that this will not always return the same results as hasWritableDirectory() because you can set "Read-Only with Local Groups" to LDAP directories.
These directories are generally read-only but you can create local gropus and assign users to them.
Returns true if any of the directories have permission to update user passwords, false if otherwise.
Note that this is not quite the same as hasWritableDirectory() because of "Internal with LDAP Authentication" directories.
These directories are generally read-write but passwords are read-only.
Returns true if at least one User Directory has "read-write" permission.
This is equivalent to:
getWritableDirectories().size() > 0
Updates the User. The user must have non-null names and email address.
| user | The user to update. |
|---|