|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.service.UserServiceImpl
public class UserServiceImpl
| Constructor Summary | |
|---|---|
UserServiceImpl(ApplicationManager applicationManager,
ApplicationService applicationService,
CrowdUserDetailsService crowdUserDetailsService)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Given a usernamen & password, this method checks, whether or not the provided user can be authenticated |
java.lang.String |
getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
Returns the username of the currently logged in user or null if no user can be found. |
java.lang.String |
getRemoteUsername()
Returns the username of the currently logged in user or null if no user can be found. |
boolean |
isSystemAdmin(java.lang.String username)
Returns true or false depending on if a user has been granted the system admin permission within Crowd. |
boolean |
isUserInGroup(java.lang.String username,
java.lang.String group)
Returns whether the user is in the specify group |
java.security.Principal |
resolve(java.lang.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 UserServiceImpl(ApplicationManager applicationManager,
ApplicationService applicationService,
CrowdUserDetailsService crowdUserDetailsService)
| Method Detail |
|---|
public java.lang.String getRemoteUsername()
UserService
getRemoteUsername in interface UserServicepublic java.lang.String getAuthenticatedUsername(javax.servlet.http.HttpServletRequest request)
UserService
getAuthenticatedUsername in interface UserServicerequest - The request to retrieve the username from
public boolean isUserInGroup(java.lang.String username,
java.lang.String group)
UserService
isUserInGroup in interface UserServiceusername - The username to checkgroup - The group to check
public boolean isSystemAdmin(java.lang.String username)
throws org.springframework.dao.DataAccessException
UserService
isSystemAdmin in interface UserServiceusername - The username of the user to check
org.springframework.dao.DataAccessException - if there was an error retrieving the username
public boolean authenticate(java.lang.String username,
java.lang.String password)
UserService
authenticate in interface UserServiceusername - Username of the userpassword - Password of the user
public java.security.Principal resolve(java.lang.String username)
throws org.springframework.dao.DataAccessException
UserServicenull if this application does not have such a user.
resolve in interface UserServiceusername - 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
org.springframework.dao.DataAccessException - if there was an error retrieving the username
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||