|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserAccessor
Field Summary | |
---|---|
static java.lang.String |
ANONYMOUS
|
static java.util.List |
DEFAULT_GROUP_NAMES
List of names (as String s) that are automatically created during Confluence setup. |
static java.lang.String |
GROUP_CONFLUENCE_ADMINS
|
static java.lang.String |
GROUP_CONFLUENCE_USERS
|
static java.lang.String |
PROFILE_PICTURE_BUILTIN_PATH
|
static java.lang.String |
USER_GROUP_SUFFIX
|
Method Summary | |
---|---|
java.util.List |
filterUnaccessibleGroups(java.util.List groupList,
com.atlassian.user.User user)
|
com.atlassian.user.search.page.Pager |
filterUnaccessibleGroups(com.atlassian.user.search.page.Pager groupPager,
com.atlassian.user.User user)
Filters a pager of groups based on the passed User . |
java.util.List |
filterUnaccessibleUsers(java.util.List groupList,
com.atlassian.user.User user)
Filters a pager of groups based on the passed User . |
com.atlassian.user.search.page.Pager |
filterUnaccessibleUsers(com.atlassian.user.search.page.Pager userPager,
com.atlassian.user.User user)
Filters a pager of Users based on the groups of the passed User . |
java.util.List |
findUsersAsList(com.atlassian.user.search.query.Query search)
|
ConfluenceUserPreferences |
getConfluenceUserPreferences(com.atlassian.user.User user)
|
java.util.List |
getGroupsAsList()
|
java.util.List<com.atlassian.user.Group> |
getGroupsAsList(com.atlassian.user.User user)
|
java.util.List<java.lang.String> |
getMemberNamesAsList(com.atlassian.user.Group group)
Same as UserAccessor.getMemberNames(com.atlassian.user.Group) but returns a List of user names as String s
rather than a Pager. |
com.atlassian.user.User |
getUserIfAvailable(java.lang.String username)
Get the User if visible to the currently authenticated user in shared mode. |
ProfilePictureInfo |
getUserProfilePicture(java.lang.String username)
Deprecated. since 2.9. Use getUserProfilePicture(User) instead. |
ProfilePictureInfo |
getUserProfilePicture(com.atlassian.user.User user)
Retrieve the path to a user's personal picture |
java.util.List<com.atlassian.user.User> |
getUsersWithConfluenceAccessAsList()
|
java.util.List<com.atlassian.user.Group> |
getWriteableGroups()
Gets all editable groups. |
boolean |
isReadOnly(com.atlassian.user.Group group)
|
boolean |
isReadOnly(com.atlassian.user.User user)
|
boolean |
isSuperUser(com.atlassian.user.User user)
Return true if the user is an all-powerful super-user (member of the confluence-administrators group). |
void |
setContentEntityManager(ContentEntityManager contentEntityManager)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setNotificationManager(NotificationManager notificationManager)
|
void |
setPersonalInformationManager(PersonalInformationManager personalInformationManager)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
setSpacePermissionManager(SpacePermissionManager permissionManager)
|
void |
setUserProfilePicture(com.atlassian.user.User user,
Attachment attachment)
Set the user profile picture to the given attachment. |
void |
setUserProfilePicture(com.atlassian.user.User targetUser,
java.lang.String imagePath)
Set the user profile picture to a built-in image. |
void |
setUserStatusManager(UserStatusManager userStatusManager)
|
Methods inherited from interface com.atlassian.user.search.query.EntityQueryParser |
---|
findGroups, findGroups, findUsers |
Field Detail |
---|
static final java.lang.String ANONYMOUS
static final java.lang.String GROUP_CONFLUENCE_USERS
static final java.lang.String USER_GROUP_SUFFIX
static final java.lang.String GROUP_CONFLUENCE_ADMINS
static final java.util.List DEFAULT_GROUP_NAMES
String
s) that are automatically created during Confluence setup.
static final java.lang.String PROFILE_PICTURE_BUILTIN_PATH
Method Detail |
---|
void setSpacePermissionManager(SpacePermissionManager permissionManager)
void setContentEntityManager(ContentEntityManager contentEntityManager)
void setNotificationManager(NotificationManager notificationManager)
void setEventManager(com.atlassian.event.EventManager eventManager)
void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
void setSettingsManager(SettingsManager settingsManager)
void setUserStatusManager(UserStatusManager userStatusManager)
boolean isReadOnly(com.atlassian.user.User user)
boolean isReadOnly(com.atlassian.user.Group group)
com.atlassian.user.search.page.Pager filterUnaccessibleUsers(com.atlassian.user.search.page.Pager userPager, com.atlassian.user.User 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
objectsuser
- The user to filter against
Pager
of User
objectscom.atlassian.user.search.page.Pager filterUnaccessibleGroups(com.atlassian.user.search.page.Pager groupPager, com.atlassian.user.User user)
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 groupsuser
- The user to filter against
Pager
of Group
objectsProfilePictureInfo getUserProfilePicture(java.lang.String username)
getUserProfilePicture(User)
instead.
username
- the user whose picture to look up.
ProfilePictureInfo getUserProfilePicture(com.atlassian.user.User user)
user
- the user whose picture to look up.
ConfluenceUserPreferences getConfluenceUserPreferences(com.atlassian.user.User user)
boolean isSuperUser(com.atlassian.user.User user)
user
- the user to check for (the null user will always return false
java.util.List filterUnaccessibleUsers(java.util.List groupList, com.atlassian.user.User user)
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 groupsuser
- The user to filter against
List
of Group
objectsjava.util.List<com.atlassian.user.Group> getGroupsAsList(com.atlassian.user.User user)
java.util.List filterUnaccessibleGroups(java.util.List groupList, com.atlassian.user.User user)
java.util.List getGroupsAsList()
java.util.List<java.lang.String> getMemberNamesAsList(com.atlassian.user.Group group)
UserAccessor.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
sjava.util.List<com.atlassian.user.Group> getWriteableGroups()
Group
s that can be edited.java.util.List<com.atlassian.user.User> getUsersWithConfluenceAccessAsList()
com.atlassian.user.User getUserIfAvailable(java.lang.String username)
User
if visible to the currently authenticated user in shared mode.
If not in shared mode, the User
will be returned if not null.
username
-
java.util.List findUsersAsList(com.atlassian.user.search.query.Query search) throws com.atlassian.user.EntityException
com.atlassian.user.EntityException
void setUserProfilePicture(com.atlassian.user.User user, Attachment attachment)
user
- the user to set a profile picture forattachment
- the attachment containing the user's profile picture
java.lang.IllegalArgumentException
- if the image is not attached to the user's personal informationvoid setUserProfilePicture(com.atlassian.user.User targetUser, java.lang.String imagePath)
targetUser
- the user to set a profile picture forimagePath
- the image path to that picture.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |