Package com.atlassian.confluence.user
Interface ConfluenceUserResolver
-
- All Known Subinterfaces:
UserAccessor
,UserAccessorInternal
- All Known Implementing Classes:
DefaultUserAccessor
,ReadOnlyUserAccessor
@Transactional(readOnly=true) public interface ConfluenceUserResolver
Provides operations to resolveConfluenceUser
s.- Since:
- 7.16
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ConfluenceUser>
getExistingByApiUser(User user)
ConfluenceUser
getExistingUserByKey(com.atlassian.sal.api.user.UserKey key)
ConfluenceUser
getExistingUserByPerson(Person person)
ConfluenceUser
getUserByKey(com.atlassian.sal.api.user.UserKey key)
ConfluenceUser
getUserByName(String name)
PageResponse<ConfluenceUser>
getUsers(LimitedRequest limitedRequest)
Get fully backed (active or disabled) Confluence Users.List<ConfluenceUser>
getUsersByUserKeys(List<com.atlassian.sal.api.user.UserKey> userKeys)
-
-
-
Method Detail
-
getUserByKey
@Nullable ConfluenceUser getUserByKey(com.atlassian.sal.api.user.UserKey key)
-
getUserByName
@Nullable ConfluenceUser getUserByName(String name)
-
getUsersByUserKeys
@Nonnull List<ConfluenceUser> getUsersByUserKeys(List<com.atlassian.sal.api.user.UserKey> userKeys)
-
getUsers
@Nonnull PageResponse<ConfluenceUser> getUsers(LimitedRequest limitedRequest)
Get fully backed (active or disabled) Confluence Users. When both embedded Crowd tables and Confluence user tables have the same user, that user can be retrieved.This means, when embedded crowd has the user, but Confluence does not (unsynced, externally deleted, shadowed), the user is not retrievable.
This means, when embedded crowd has a user, but Confluence does not, the user is not retrievable.- Parameters:
limitedRequest
- the limited request for ConfluenceUser- Returns:
- a non-null page response of ConfluenceUser.
- Since:
- 8.4
-
getExistingUserByKey
@Nullable ConfluenceUser getExistingUserByKey(com.atlassian.sal.api.user.UserKey key)
-
getExistingUserByPerson
@Nullable ConfluenceUser getExistingUserByPerson(Person person)
-
getExistingByApiUser
@Nonnull Optional<ConfluenceUser> getExistingByApiUser(User user)
-
-