@Component public class BambooSalUserManager extends Object implements com.atlassian.sal.api.user.UserManager
Constructor and Description |
---|
BambooSalUserManager(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager) |
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 httpServletRequest) |
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey() |
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
getRemoteUsername() |
String |
getRemoteUsername(javax.servlet.http.HttpServletRequest httpServletRequest) |
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 group) |
Principal |
resolve(String username) |
@Autowired public BambooSalUserManager(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
public String getRemoteUsername()
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserProfile getRemoteUser()
getRemoteUser
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserKey getRemoteUserKey()
getRemoteUserKey
in interface com.atlassian.sal.api.user.UserManager
public String getRemoteUsername(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUser
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUserKey
in interface com.atlassian.sal.api.user.UserManager
public boolean isAdmin(String username)
isAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean isAdmin(com.atlassian.sal.api.user.UserKey userKey)
isAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean isUserInGroup(String username, String group)
isUserInGroup
in interface com.atlassian.sal.api.user.UserManager
public boolean isUserInGroup(com.atlassian.sal.api.user.UserKey userKey, String group)
isUserInGroup
in interface com.atlassian.sal.api.user.UserManager
public boolean isSystemAdmin(String username)
isSystemAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey)
isSystemAdmin
in interface com.atlassian.sal.api.user.UserManager
public Principal resolve(String username) throws com.atlassian.sal.api.user.UserResolutionException
resolve
in interface com.atlassian.sal.api.user.UserManager
com.atlassian.sal.api.user.UserResolutionException
public Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
findGroupNamesByPrefix
in interface com.atlassian.sal.api.user.UserManager
public boolean authenticate(String username, String password)
authenticate
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
getUserProfile
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserProfile getUserProfile(com.atlassian.sal.api.user.UserKey userKey)
getUserProfile
in interface com.atlassian.sal.api.user.UserManager
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.