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 @NonNull Optional<ConfluenceUser>
getExistingByApiUser(User user)
@Nullable ConfluenceUser
getExistingUserByKey(com.atlassian.sal.api.user.UserKey key)
@Nullable ConfluenceUser
getExistingUserByPerson(Person person)
@Nullable ConfluenceUser
getUserByKey(com.atlassian.sal.api.user.UserKey key)
@Nullable ConfluenceUser
getUserByName(String name)
@NonNull PageResponse<ConfluenceUser>
getUsers(LimitedRequest limitedRequest)
Get fully backed (active or disabled) Confluence Users.@NonNull 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)
-
-