com.atlassian.confluence.user.UserAccessor |
Known Indirect Subclasses |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ANONYMOUS | This constant is deprecated. since 4.0 not used in Confluence | |||||||||
String | GROUP_CONFLUENCE_ADMINS | The name of the group with special administration privileges in the application. | |||||||||
String | GROUP_CONFLUENCE_USERS | The name of the group that users are added to by default. | |||||||||
String | PROFILE_PICTURE_BUILTIN_PATH | Relative path to default profile pictures in the web application, used to determine whether a user has uploaded a custom profile picture. | |||||||||
String | USER_GROUP_SUFFIX | This constant is deprecated. since 4.0 not used in Confluence |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_GROUP_NAMES | List of group names that are automatically created during Confluence setup. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the number of users which have access to use Confluence.
| |||||||||||
Filters a pager of groups based on the passed User.
| |||||||||||
Filters a pager of Users based on the groups of the passed com.atlassian.user.User.
| |||||||||||
Gets the list of group names representing the groups the passed in user is a member of.
| |||||||||||
Gets the list of group names representing the groups the passed in user is a member of.
| |||||||||||
This method is deprecated.
since 3.5.4 callers should use
getGroupNames(User) or getGroupNamesForUserName(String) | |||||||||||
Same as
getMemberNames(com.atlassian.user.Group) but returns a List of user names as String s
rather than a Pager. | |||||||||||
Get the User if visible to the currently authenticated user in shared mode.
| |||||||||||
This method is deprecated.
since 3.5.1. This method is very slow, use
countUsersWithConfluenceAccess() if you need to know the number of users. | |||||||||||
This method is deprecated.
since 2.9. Use
getUserProfilePicture(User) instead.
| |||||||||||
Retrieve the path to a user's personal picture
| |||||||||||
This method is deprecated.
since 3.5.1. This method is very slow, use
countUsersWithConfluenceAccess() if you need to know the number of users. | |||||||||||
Gets all editable groups.
| |||||||||||
Returns
true if the group cannot be modified or removed. | |||||||||||
Returns
true if the user cannot be modified or removed. | |||||||||||
This method is deprecated.
since 3.5 the permission checks in the application take care of checking for this membership
| |||||||||||
Set the user profile picture to the given attachment.
| |||||||||||
Set the user profile picture to a built-in image.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
bucket.user.UserAccessor
| |||||||||||
From interface
com.atlassian.user.search.query.EntityQueryParser
|
This constant is deprecated.
since 4.0 not used in Confluence
The name of the group with special administration privileges in the application.
The name of the group that users are added to by default.
Relative path to default profile pictures in the web application, used to determine whether a user has uploaded a custom profile picture.
This constant is deprecated.
since 4.0 not used in Confluence
List of group names that are automatically created during Confluence setup.
Returns the number of users which have access to use Confluence.
Filters a pager of groups based on the passed User. If in "shared" mode and the user isn't a global administrator, only the groups of the user will be returned. Otherwise, the pager will be returned unmodified.
groupPager | The pager of groups |
---|---|
user | The user to filter against |
Filters a pager of Users based on the groups of the passed com.atlassian.user.User. If in "shared" mode and the user isn't a global administrator, only users who are members of the same groups will be returned. Otherwise, the pager will be returned unmodified.
userPager | A Pager of User objects |
---|---|
user | The user to filter against |
Gets the list of group names representing the groups the passed in user is a member of.
user | the user to perform the membership check for |
---|
Gets the list of group names representing the groups the passed in user is a member of.
userName | the name of the user to perform the membership check for |
---|
This method is deprecated.
since 3.5.4 callers should use getGroupNames(User)
or getGroupNamesForUserName(String)
Same as getMemberNames(com.atlassian.user.Group)
but returns a List of user names as String
s
rather than a Pager.
group | to retrieve the member names from |
---|
String
s
Get the User if visible to the currently authenticated user in shared mode. If not in shared mode, the User will be returned if not null.
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 the names of all users with access to use Confluence.
This method is deprecated.
since 2.9. Use getUserProfilePicture(User)
instead.
Retrieve the path to a user's personal picture
username | the user whose picture to look up. |
---|
Retrieve the path to a user's personal picture
user | the user whose picture to look up. |
---|
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 which have access to use Confluence.
Gets all editable groups. That is, returns any groups that belong to read/write repositories. Groups in readonly repositories that are ReadOnly are not returned.
Returns true
if the group cannot be modified or removed. However, returning false
does
necessarily confirm that the group can be modified or removed. Depending on the user
management configuration, it is not always possible for Confluence to determine whether a group
is read-only. Indeed, groups can span across multiple directories with different access control mechanisms,
so it may be possible to modify certain memberships of a group but not others.
false
.
Returns true
if the user cannot be modified or removed. However, returning false
does
necessarily confirm that the user can be modified or removed. Depending on the user
management configuration, it is not always possible for Confluence to determine whether a user
is read-only.
false
.
This method is deprecated.
since 3.5 the permission checks in the application take care of checking for this membership
Return true if the user is an all-powerful super-user (member of the confluence-administrators group).
user | the user to check for (the null user will always return false |
---|
Set the user profile picture to the given attachment. The attachment should be an image attached to that user's personal information, of size 48x48. No check is performed in this method that the image is valid or the right size.
user | the user to set a profile picture for |
---|---|
attachment | the attachment containing the user's profile picture |
IllegalArgumentException | if the image is not attached to the user's personal information |
---|
Set the user profile picture to a built-in image. The path should be the web-application-root-relative path to the image to be used as the user's profile picture and should be size 48x48. Neither are checked by the implementation
targetUser | the user to set a profile picture for |
---|---|
imagePath | the image path to that picture. |