public class UserServiceImpl extends BaseOpenStackService implements UserService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
UserServiceImpl() |
| 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
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends User> list()
UserServicelist in interface UserServicepublic User get(String userId)
UserServiceget in interface UserServiceuserId - the user idpublic List<? extends User> listTenantUsers(String tenantId)
UserServicelistTenantUsers in interface UserServicetenantId - the tenant idpublic User create(String tenantId, String name, String password, String email, boolean enabled)
UserServicecreate in interface UserServicetenantId - 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 enabledpublic User create(User user)
UserServicecreate in interface UserServiceuser - the user to createpublic ActionResponse delete(String userId)
UserServicedelete in interface UserServiceuserId - the user idpublic User enableUser(String userId, boolean enabled)
UserServiceenableUser in interface UserServiceuserId - the user idenabled - true to enable the userpublic User update(User user)
UserServiceupdate in interface UserServiceuser - the userpublic ActionResponse changePassword(String userId, String password)
UserServicechangePassword in interface UserServiceuserId - the user idpassword - the new passwordpublic List<? extends Role> listRoles(String userId)
UserServicelistRoles in interface UserServiceuserId - the user idpublic List<? extends Role> listRoles(User user)
UserServicelistRoles in interface UserServiceuser - the userpublic List<? extends Role> listRolesOnTenant(String userId, String tenantId)
UserServicelistRolesOnTenant in interface UserServiceuserId - the user idtenantId - the tenant idpublic List<? extends Role> listRolesOnCurrentTenant(User user)
UserServicelistRolesOnCurrentTenant in interface UserServiceuser - the userpublic User getByName(String userName)
UserServicegetByName in interface UserServiceuserName - the user nameCopyright © 2017. All rights reserved.