com.atlassian.confluence.user.UserAccessor |
Known Indirect Subclasses |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ANONYMOUS | ||||||||||
String | GROUP_CONFLUENCE_ADMINS | ||||||||||
String | GROUP_CONFLUENCE_USERS | ||||||||||
String | PROFILE_PICTURE_BUILTIN_PATH | ||||||||||
String | USER_GROUP_SUFFIX |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_GROUP_NAMES | List of names (as String s) that are automatically created during Confluence setup. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
Filters a pager of groups based on the passed User.
| |||||||||||
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.
| |||||||||||
Retrieve the path to a user's personal picture
| |||||||||||
This method is deprecated.
since 2.9. Use
getUserProfilePicture(User) instead.
| |||||||||||
Gets all editable groups.
| |||||||||||
Return true if the user is an all-powerful super-user (member of the confluence-administrators group).
| |||||||||||
Set the user profile picture to a built-in image.
| |||||||||||
Set the user profile picture to the given attachment.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
bucket.user.UserAccessor
| |||||||||||
From interface
com.atlassian.user.search.query.EntityQueryParser
|
List of names (as String
s) that are automatically created during Confluence setup.
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 |
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.
groupList | The list of groups |
---|---|
user | The user to filter against |
List
of Group objects
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.
Retrieve the path to a user's personal picture
user | the user whose picture to look up. |
---|
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. |
---|
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.
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 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. |
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 |
---|