public class SetupUserManager extends Object implements com.atlassian.sal.api.user.UserManager
| Constructor and Description |
|---|
SetupUserManager() |
| 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 request) |
@Nullable com.atlassian.sal.api.user.UserKey |
getRemoteUserKey() |
@Nullable com.atlassian.sal.api.user.UserKey |
getRemoteUserKey(javax.servlet.http.HttpServletRequest request) |
@Nullable String |
getRemoteUsername() |
@Nullable String |
getRemoteUsername(javax.servlet.http.HttpServletRequest request) |
@Nullable com.atlassian.sal.api.user.UserProfile |
getUserProfile(@Nullable String username) |
@Nullable com.atlassian.sal.api.user.UserProfile |
getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isAdmin(@Nullable String username) |
boolean |
isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isSystemAdmin(@Nullable String username) |
boolean |
isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isUserInGroup(@Nullable String username,
@Nullable String group) |
boolean |
isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey,
@Nullable String group) |
@Nullable Principal |
resolve(String username) |
public @Nullable 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 @Nullable com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable 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.UserManagerpublic boolean isUserInGroup(@Nullable String username, @Nullable String group)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerpublic boolean isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey,
@Nullable String group)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerpublic boolean isSystemAdmin(@Nullable 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 isAdmin(@Nullable 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 boolean authenticate(String username, String password)
authenticate in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable Principal resolve(String username) throws com.atlassian.sal.api.user.UserResolutionException
resolve in interface com.atlassian.sal.api.user.UserManagercom.atlassian.sal.api.user.UserResolutionExceptionpublic Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
findGroupNamesByPrefix in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest request)
getRemoteUserKey in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest request)
getRemoteUser in interface com.atlassian.sal.api.user.UserManagerpublic @Nullable String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
getRemoteUsername in interface com.atlassian.sal.api.user.UserManagerCopyright © 2003–2020 Atlassian. All rights reserved.