public interface UserService
Modifier and Type | Method and Description |
---|---|
ActionResponse |
changePassword(String userId,
String password)
Changes a password for the specified user by ID
|
User |
create(String tenantId,
String name,
String password,
String email,
boolean enabled)
Creates a new User
|
User |
create(User user)
Creates a User
|
ActionResponse |
delete(String userId)
Deletes a user by ID
|
User |
enableUser(String userId,
boolean enabled)
Enables/Disables a user by ID
|
User |
get(String userId)
Gets the detailed User information by ID
|
User |
getByName(String userName)
API added by @ Sandeep Kumar Singh
Gets detailed information about a specified user by name
|
List<? extends User> |
list()
Lists current users
|
List<? extends Role> |
listRoles(String userId)
Lists global roles for a specified user.
|
List<? extends Role> |
listRoles(User user)
Lists global roles for a specified user.
|
List<? extends Role> |
listRolesOnCurrentTenant(User user)
List roles on current tenant (default tenant for the given user)
|
List<? extends Role> |
listRolesOnTenant(String userId,
String tenantId)
Lists the tenant roles for a specified user.
|
List<? extends User> |
listTenantUsers(String tenantId)
List users who are associated with the given tenant identifier
|
User |
update(User user)
Updates a User
|
User get(String userId)
userId
- the user idUser getByName(String userName)
userName
- the user nameList<? extends User> listTenantUsers(String tenantId)
tenantId
- the tenant idUser create(String tenantId, String name, String password, String email, boolean enabled)
tenantId
- the tenant idname
- the name of the userpassword
- the password for the useremail
- the email address of the userenabled
- if true the user will be immediately enabledUser create(User user)
user
- the user to createActionResponse delete(String userId)
userId
- the user idUser enableUser(String userId, boolean enabled)
userId
- the user idenabled
- true to enable the userActionResponse changePassword(String userId, String password)
userId
- the user idpassword
- the new passwordList<? extends Role> listRoles(String userId)
userId
- the user idList<? extends Role> listRoles(User user)
user
- the userList<? extends Role> listRolesOnTenant(String userId, String tenantId)
userId
- the user idtenantId
- the tenant idCopyright © 2017. All rights reserved.