|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.bamboo.user.BambooSalUserManager
public class BambooSalUserManager
| Constructor Summary | |
|---|---|
BambooSalUserManager(com.atlassian.bamboo.user.BambooUserManager bambooUserManager,
com.atlassian.bamboo.security.BambooPermissionManager bambooPermissionManager)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(String username,
String password)
Given a usernamen & password, this method checks whether or not the provided user can be authenticated |
String |
getRemoteUsername()
Returns the username of the currently logged in user or null if no user can be found. |
String |
getRemoteUsername(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the username of the currently logged in user or null if no user can be found. |
UserProfile |
getUserProfile(String username)
Returns a UserProfile object for the specified user or null if no user can be found |
boolean |
isAdmin(String username)
Returns true or false depending on whether a user has been granted the admin permission |
boolean |
isSystemAdmin(String username)
Returns true or false depending on whether a user has been granted the system admin permission. |
boolean |
isUserInGroup(String username,
String group)
Returns whether the user is in the specify group |
Principal |
resolve(String username)
Returns the user that made this request or null if this application does not have such a user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BambooSalUserManager(com.atlassian.bamboo.user.BambooUserManager bambooUserManager,
com.atlassian.bamboo.security.BambooPermissionManager bambooPermissionManager)
| Method Detail |
|---|
public String getRemoteUsername()
UserManagerUserManager.getRemoteUsername(HttpServletRequest).
getRemoteUsername in interface UserManagerpublic String getRemoteUsername(javax.servlet.http.HttpServletRequest httpServletRequest)
UserManager
getRemoteUsername in interface UserManagerhttpServletRequest - The request to retrieve the username from
public boolean isUserInGroup(String username,
String group)
UserManager
isUserInGroup in interface UserManagerusername - The username to checkgroup - The group to check
true if the user is in the specified grouppublic boolean isSystemAdmin(String username)
UserManagertrue or false depending on whether a user has been granted the system admin permission.
isSystemAdmin in interface UserManagerusername - The username of the user to check
true or false depending on whether a user has been granted the system admin permission.public UserProfile getUserProfile(String username)
UserManagerUserProfile object for the specified user or null if no user can be found
getUserProfile in interface UserManagerusername - The username of the user whose profile is requested
public boolean isAdmin(String username)
UserManagertrue or false depending on whether a user has been granted the admin permission
isAdmin in interface UserManagerusername - The username of the user to check
true or false depending on whether the user has been granted the admin permission
public Principal resolve(String username)
throws UserResolutionException
UserManagernull if this application does not have such a user.
resolve in interface UserManagerusername - Username of the user a consumer is making a request on behalf of
Principal corresponding to the username, null if the user does not exist
UserResolutionException - thrown if there is a problem resolving the user, such as a failure when accessing
an external user store
public boolean authenticate(String username,
String password)
UserManager
authenticate in interface UserManagerusername - Username of the userpassword - Password of the user
true if the user can be authenticated, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||