@Named(value="salUserManager") public class RefImplUserManager extends Object implements com.atlassian.sal.api.user.UserManager
| Constructor and Description |
|---|
RefImplUserManager(com.atlassian.seraph.auth.AuthenticationContext authenticationContext,
com.atlassian.user.UserManager userManager,
com.atlassian.user.GroupManager groupManager,
com.atlassian.user.security.authentication.Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password) |
Iterable<String> |
findGroupNamesByPrefix(String prefix,
int startIndex,
int maxResults) |
com.atlassian.sal.api.user.UserProfile |
getRemoteUser() |
com.atlassian.sal.api.user.UserProfile |
getRemoteUser(javax.servlet.http.HttpServletRequest request) |
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey() |
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey(javax.servlet.http.HttpServletRequest request) |
String |
getRemoteUsername() |
String |
getRemoteUsername(javax.servlet.http.HttpServletRequest request) |
com.atlassian.sal.api.user.UserProfile |
getUserProfile(String username) |
com.atlassian.sal.api.user.UserProfile |
getUserProfile(com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isAdmin(String username) |
boolean |
isAdmin(com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isSystemAdmin(String username) |
boolean |
isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey) |
boolean |
isUserInGroup(String username,
String group) |
boolean |
isUserInGroup(com.atlassian.sal.api.user.UserKey userKey,
String groupName) |
Principal |
resolve(String username) |
@Inject
public RefImplUserManager(com.atlassian.seraph.auth.AuthenticationContext authenticationContext,
com.atlassian.user.UserManager userManager,
com.atlassian.user.GroupManager groupManager,
com.atlassian.user.security.authentication.Authenticator authenticator)
public String getRemoteUsername()
getRemoteUsername in interface com.atlassian.sal.api.user.UserManagerpublic com.atlassian.sal.api.user.UserProfile getRemoteUser()
getRemoteUser in interface com.atlassian.sal.api.user.UserManager@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey()
getRemoteUserKey in interface com.atlassian.sal.api.user.UserManagerpublic String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
getRemoteUsername in interface com.atlassian.sal.api.user.UserManagerpublic com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest request)
getRemoteUser in interface com.atlassian.sal.api.user.UserManager@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest request)
getRemoteUserKey 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.UserManager@Nullable public 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 isSystemAdmin(String username)
isSystemAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey)
isSystemAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean isAdmin(String username)
isAdmin in interface com.atlassian.sal.api.user.UserManagerpublic boolean isAdmin(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 boolean isUserInGroup(String username, String group)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerpublic boolean isUserInGroup(com.atlassian.sal.api.user.UserKey userKey,
String groupName)
isUserInGroup in interface com.atlassian.sal.api.user.UserManagerpublic Principal resolve(String username) throws com.atlassian.sal.api.user.UserResolutionException
resolve in interface com.atlassian.sal.api.user.UserManagercom.atlassian.sal.api.user.UserResolutionExceptionCopyright © 2018 Atlassian. All rights reserved.