Package com.atlassian.sal.bamboo.user
Class BambooSalUserManager
- java.lang.Object
-
- com.atlassian.sal.bamboo.user.BambooSalUserManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.user.UserManager
@Component public class BambooSalUserManager extends Object implements com.atlassian.sal.api.user.UserManager
-
-
Constructor Summary
Constructors Constructor Description BambooSalUserManager(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(com.atlassian.sal.api.user.UserKey userKey)
com.atlassian.sal.api.user.UserProfile
getUserProfile(String username)
boolean
isAdmin(com.atlassian.sal.api.user.UserKey userKey)
boolean
isAdmin(String username)
boolean
isAnonymousAccessEnabled()
boolean
isLicensed(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
isLimitedUnlicensedAccessEnabled()
boolean
isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey)
boolean
isSystemAdmin(String username)
boolean
isUserInGroup(com.atlassian.sal.api.user.UserKey userKey, String group)
boolean
isUserInGroup(String username, String group)
Principal
resolve(String username)
-
-
-
Constructor Detail
-
BambooSalUserManager
@Autowired public BambooSalUserManager(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager)
-
-
Method Detail
-
getRemoteUsername
public String getRemoteUsername()
- Specified by:
getRemoteUsername
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
public com.atlassian.sal.api.user.UserProfile getRemoteUser()
- Specified by:
getRemoteUser
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
public com.atlassian.sal.api.user.UserKey getRemoteUserKey()
- Specified by:
getRemoteUserKey
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUsername
public String getRemoteUsername(javax.servlet.http.HttpServletRequest httpServletRequest)
- Specified by:
getRemoteUsername
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
public com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest)
- Specified by:
getRemoteUser
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
public com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest)
- Specified by:
getRemoteUserKey
in interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
public boolean isAdmin(String username)
- Specified by:
isAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
public boolean isAdmin(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
public boolean isUserInGroup(String username, String group)
- Specified by:
isUserInGroup
in interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
public boolean isUserInGroup(com.atlassian.sal.api.user.UserKey userKey, String group)
- Specified by:
isUserInGroup
in interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
public boolean isSystemAdmin(String username)
- Specified by:
isSystemAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
public boolean isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isSystemAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
resolve
public Principal resolve(String username) throws com.atlassian.sal.api.user.UserResolutionException
- Specified by:
resolve
in interfacecom.atlassian.sal.api.user.UserManager
- Throws:
com.atlassian.sal.api.user.UserResolutionException
-
findGroupNamesByPrefix
public Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
- Specified by:
findGroupNamesByPrefix
in interfacecom.atlassian.sal.api.user.UserManager
-
authenticate
public boolean authenticate(String username, String password)
- Specified by:
authenticate
in interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
public com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
- Specified by:
getUserProfile
in interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
public com.atlassian.sal.api.user.UserProfile getUserProfile(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getUserProfile
in interfacecom.atlassian.sal.api.user.UserManager
-
isLicensed
public boolean isLicensed(@Nullable @Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isLicensed
in interfacecom.atlassian.sal.api.user.UserManager
-
isAnonymousAccessEnabled
public boolean isAnonymousAccessEnabled()
- Specified by:
isAnonymousAccessEnabled
in interfacecom.atlassian.sal.api.user.UserManager
-
isLimitedUnlicensedAccessEnabled
public boolean isLimitedUnlicensedAccessEnabled()
- Specified by:
isLimitedUnlicensedAccessEnabled
in interfacecom.atlassian.sal.api.user.UserManager
-
-