public class User extends Object
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addUser(UserWrapper userWrapper)
Method to add user to emm-user-store.
|
Object |
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 |
getRoles(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.
|
int |
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 |
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) throws MDMAPIException
userWrapper
- Wrapper object representing input json payloadMDMAPIException
public javax.ws.rs.core.Response getUser(String username) throws MDMAPIException
username
- User-name of the userMDMAPIException
public javax.ws.rs.core.Response updateUser(UserWrapper userWrapper, String username) throws MDMAPIException
userWrapper
- Wrapper object representing input json payloadMDMAPIException
public javax.ws.rs.core.Response removeUser(String username) throws MDMAPIException
username
- Username of the userMDMAPIException
public javax.ws.rs.core.Response getRoles(String username) throws MDMAPIException
username
- Username of the userMDMAPIException
public javax.ws.rs.core.Response getAllUsers() throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getMatchingUsers(String filter) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getAllUsersByUsername(String userName) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getAllUserNamesByUsername(String userName) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response inviteExistingUsersToEnrollDevice(List<String> usernames) throws MDMAPIException
usernames
- Username list of the users to be invitedMDMAPIException
public Object getAllDeviceOfUser(String username, int startIdx, int length) throws MDMAPIException
username
- Username of the device ownerMDMAPIException
public int getUserCount() throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response updateRoles(String username, List<String> userList) throws MDMAPIException
username
- userList
- MDMAPIException
public javax.ws.rs.core.Response resetPassword(UserCredentialWrapper credentials) throws MDMAPIException
credentials
- Wrapper object representing user credentials.MDMAPIException
Copyright © 2016 WSO2. All rights reserved.