public class ConfluenceUserManager extends Object implements com.atlassian.sal.api.user.UserManager
| Constructor and Description |
|---|
ConfluenceUserManager(UserAccessor userAccessor,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
PermissionManager permissionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password) |
Iterable<String> |
findGroupNamesByPrefix(String prefix,
int startIndex,
int maxResults) |
@Nullable com.atlassian.sal.api.user.UserProfile |
getRemoteUser() |
@Nullable com.atlassian.sal.api.user.UserProfile |
getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest) |
@Nullable com.atlassian.sal.api.user.UserKey |
getRemoteUserKey() |
@Nullable com.atlassian.sal.api.user.UserKey |
getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
getRemoteUsername() |
String |
getRemoteUsername(javax.servlet.http.HttpServletRequest request) |
com.atlassian.sal.api.user.UserProfile |
getUserProfile(String username) |
@Nullable com.atlassian.sal.api.user.UserProfile |
getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isAdmin(String username) |
boolean |
isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isSystemAdmin(String username) |
boolean |
isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isUserInGroup(String username,
String group)
Returns whether the user is in the specify group
|
boolean |
isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey,
@Nullable String groupName) |
ConfluenceUser |
resolve(String username) |
public ConfluenceUserManager(UserAccessor userAccessor, com.atlassian.crowd.embedded.api.CrowdService crowdService, PermissionManager permissionManager)
public String getRemoteUsername()
getRemoteUsername in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserProfile getRemoteUser()
getRemoteUser in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserKey getRemoteUserKey()
getRemoteUserKey in interface com.atlassian.sal.api.user.UserManagerpublic boolean isSystemAdmin(String username)
isSystemAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
isSystemAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean authenticate(String username, String password)
authenticate in interface com.atlassian.sal.api.user.UserManagerpublic boolean isUserInGroup(String username, String group)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerusername - The username to checkgroup - The group to checkpublic boolean isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey,
@Nullable String groupName)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerpublic String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
getRemoteUsername in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUser in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUserKey in interface com.atlassian.sal.api.user.UserManagerpublic ConfluenceUser resolve(String username)
resolve in interface com.atlassian.sal.api.user.UserManagerpublic Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
findGroupNamesByPrefix in interface com.atlassian.sal.api.user.UserManagerpublic boolean isAdmin(String username)
isAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
isAdmin in interface com.atlassian.sal.api.user.UserManagerpublic com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
getUserProfile in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getUserProfile in interface com.atlassian.sal.api.user.UserManagerCopyright © 2003–2022 Atlassian. All rights reserved.