| Constructor and Description |
|---|
UserImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addUser(UserWrapper userWrapper)
Method to add user to emm-user-store.
|
javax.ws.rs.core.Response |
getAllDeviceOfUser(String username,
int startIdx,
int length)
Get a list of devices based on the username.
|
javax.ws.rs.core.Response |
getAllUserNamesByUsername(String userName)
Get the list of user names in the system.
|
javax.ws.rs.core.Response |
getAllUsers()
Get the list of all users with all user-related info.
|
javax.ws.rs.core.Response |
getAllUsersByUsername(String userName)
Get the list of user names in the system.
|
javax.ws.rs.core.Response |
getMatchingUsers(String filter)
Get the list of all users with all user-related info.
|
javax.ws.rs.core.Response |
getRolesOfUser(String username)
Get user's roles by username
|
javax.ws.rs.core.Response |
getUser(String username)
Method to get user information from emm-user-store.
|
javax.ws.rs.core.Response |
getUserCount()
This method is used to retrieve the user count of the system.
|
javax.ws.rs.core.Response |
inviteExistingUsersToEnrollDevice(List<String> usernames)
Method used to send an invitation email to a existing user to enroll a device.
|
javax.ws.rs.core.Response |
removeUser(String username)
Method to remove user from emm-user-store.
|
javax.ws.rs.core.Response |
resetPassword(UserCredentialWrapper credentials)
Method to change the user password.
|
javax.ws.rs.core.Response |
resetPasswordByAdmin(UserCredentialWrapper credentials)
Method to change the user password.
|
javax.ws.rs.core.Response |
updateRoles(String username,
List<String> userList)
API is used to update roles of a user
|
javax.ws.rs.core.Response |
updateUser(UserWrapper userWrapper,
String username)
Update user in user store
|
public javax.ws.rs.core.Response addUser(UserWrapper userWrapper)
public javax.ws.rs.core.Response getUser(String username)
public javax.ws.rs.core.Response updateUser(UserWrapper userWrapper, String username)
updateUser in interface UseruserWrapper - Wrapper object representing input json payloadpublic javax.ws.rs.core.Response removeUser(String username)
removeUser in interface Userusername - Username of the userpublic javax.ws.rs.core.Response getRolesOfUser(String username)
getRolesOfUser in interface Userusername - Username of the userpublic javax.ws.rs.core.Response getAllUsers()
getAllUsers in interface Userpublic javax.ws.rs.core.Response getMatchingUsers(String filter)
getMatchingUsers in interface Userpublic javax.ws.rs.core.Response getAllUsersByUsername(String userName)
getAllUsersByUsername in interface Userpublic javax.ws.rs.core.Response getAllUserNamesByUsername(String userName)
getAllUserNamesByUsername in interface Userpublic javax.ws.rs.core.Response inviteExistingUsersToEnrollDevice(List<String> usernames)
inviteExistingUsersToEnrollDevice in interface Userusernames - Username list of the users to be invitedpublic javax.ws.rs.core.Response getAllDeviceOfUser(String username, int startIdx, int length)
getAllDeviceOfUser in interface Userusername - Username of the device ownerpublic javax.ws.rs.core.Response getUserCount()
getUserCount in interface Userpublic javax.ws.rs.core.Response updateRoles(String username, List<String> userList)
updateRoles in interface Userusername - userList - public javax.ws.rs.core.Response resetPassword(UserCredentialWrapper credentials)
resetPassword in interface Usercredentials - Wrapper object representing user credentials.public javax.ws.rs.core.Response resetPasswordByAdmin(UserCredentialWrapper credentials)
resetPasswordByAdmin in interface Usercredentials - Wrapper object representing user credentials.Copyright © 2016 WSO2. All rights reserved.