| bucket.user.UserAccessor |
Known Indirect Subclasses
|
Facade which controls calls relating to User, Group, or membership. It is also capable of relaying Query objects to underlying components which can generate SearchResult objects in reply.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a group with the specified name and returns it.
| |||||||||||
This method is deprecated.
since 3.5 use
createUser(User, Credential)
| |||||||||||
This method is deprecated.
since 3.5 use
createUser(User, Credential) and addMembership(Group, User)
| |||||||||||
This method is deprecated.
since 3.5 use
createUser(User, Credential) instead
| |||||||||||
Deactivate the specified user, which prevents them logging in.
| |||||||||||
This method is deprecated.
since 3.5 not used anywhere
| |||||||||||
This method is deprecated.
since 3.5 not used anywhere
| |||||||||||
This method is deprecated.
since 4.0 returns an empty pager
| |||||||||||
Returns the group with the specified name, or
null if the user doesn't exist or the name is null. | |||||||||||
Returns a pager of all groups in the system.
| |||||||||||
This method is deprecated.
since 4.0 returns the same as
getMemberNames(Group)
| |||||||||||
Returns a pager containing the usernames of users who are members of the specified group
(either directly or as a member of a nested group).
| |||||||||||
This method is deprecated.
since 4.0 use com.atlassian.crowd.embedded.api.CrowdDirectoryService to query for directory information
| |||||||||||
Returns the user with the specified name, or
null if the user doesn't exist or the name is null. | |||||||||||
Returns a pager of all usernames in the system.
| |||||||||||
Returns a pager of all users in the system.
| |||||||||||
This method is deprecated.
since 3.5.1. This method is very slow, use countUsersWithConfluenceAccess() if you need to know the number of users.
| |||||||||||
Returns
true if the specified user and group both exist, and the user is a member of the
group (either directly or as a member of a nested group). | |||||||||||
Returns
true if the specified user and group both exist, and the user is a member of the
group (either directly or as a member of a nested group). | |||||||||||
Returns true if the user exists and is unable to log in, otherwise false.
| |||||||||||
Returns true if the user with the specified username exists and is unable to log in, otherwise false.
| |||||||||||
Marks the specified user as active, which allows them to log in.
| |||||||||||
Removes the specified group.
| |||||||||||
Removes the specified user.
| |||||||||||
Persists changes made to a user (e.g.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.user.search.query.EntityQueryParser
| |||||||||||
Creates a group with the specified name and returns it.
| IllegalArgumentException | if the group name is empty or null |
|---|---|
| InfrastructureException | if the group could not be created |
This method is deprecated.
since 3.5 use createUser(User, Credential) and addMembership(Group, User)
Deactivate the specified user, which prevents them logging in. Does nothing if the user is already deactivated.
| EntityException |
|---|
This method is deprecated.
since 3.5 not used anywhere
This method is deprecated.
since 3.5 not used anywhere
This method is deprecated.
since 4.0 returns an empty pager
Returns the group with the specified name, or null if the user doesn't exist or the name is null.
Returns a pager of all groups in the system. Clients should not normally use this method, but
perform a search using findGroups(Query) or the CrowdService API instead.
Returns a pager containing the usernames of users who are members of the specified group (either directly or as a member of a nested group). Returns an empty pager if the group has no members or doesn't exist.
This method is deprecated.
since 4.0 use com.atlassian.crowd.embedded.api.CrowdDirectoryService to query for directory information
| EntityException |
|---|
Returns the user with the specified name, or null if the user doesn't exist or the name is null.
Note that username lookups are case-insensitive, so the user you get back may not have exactly the same
name as the name passed to this method.
Returns a pager of all usernames in the system. Clients should not normally use this method, but
perform a search using findUsers(Query) or the CrowdService API instead.
Returns a pager of all users in the system. Clients should not normally use this method, but
perform a search using findUsers(Query) or the CrowdService API instead.
This method is deprecated.
since 3.5.1. This method is very slow, use countUsersWithConfluenceAccess() if you need to know the number of users.
Returns all the users with access to use Confluence.
Returns true if the specified user and group both exist, and the user is a member of the
group (either directly or as a member of a nested group). In all other circumstances, returns
false.
Returns true if the specified user and group both exist, and the user is a member of the
group (either directly or as a member of a nested group). In all other circumstances, returns
false.
Returns true if the user exists and is unable to log in, otherwise false. Returns false if the user is null.
Returns true if the user with the specified username exists and is unable to log in, otherwise false. Returns false if the username is null.
| EntityException |
|---|
Marks the specified user as active, which allows them to log in. Does nothing if the user is already active.
Removes the specified group. Does nothing if the group does not exist.
| InfrastructureException | if the group could not be removed |
|---|
Removes the specified user. Does nothing if the user does not exist.
| InfrastructureException | if the user could not be removed |
|---|
Persists changes made to a user (e.g. changing email or full name).
| InfrastructureException | if the user could not be updated successfully |
|---|