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 originalPassword,
String password)
change password for user.
|
User |
create(String domainId,
String name,
String password,
String email,
boolean enabled)
creates a new user
|
User |
create(User user)
create a new user
|
ActionResponse |
delete(String userId)
delete a user by id
|
User |
get(String userId)
gets detailed information about a specified user by id
|
List<? extends User> |
getByName(String userName)
get detailed information about users matching specified name across all domains
|
User |
getByName(String userName,
String domainId)
get detailed information about a user specified by username and domain id
|
Domain |
getUserDomain(String userId) |
List<? extends User> |
list()
lists users.
|
List<? extends Role> |
listDomainUserRoles(String userId,
String domainId)
list role assignment for specified user in domain context
|
List<? extends Role> |
listProjectUserRoles(String userId,
String projectId)
list role assignments for specified user in project context
|
List<? extends Group> |
listUserGroups(String userId)
lists groups for a specified user
|
List<? extends Project> |
listUserProjects(String userId)
lists projects for a specified user
|
User |
update(User user)
updates the password for or enables or disables a specified user.
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public User get(String userId)
get
in interface UserService
userId
- the user idpublic List<? extends User> getByName(String userName)
getByName
in interface UserService
userName
- the user namepublic User getByName(String userName, String domainId)
getByName
in interface UserService
userName
- the user namedomainId
- the domain identifierpublic Domain getUserDomain(String userId)
getUserDomain
in interface UserService
userId
- the user idpublic ActionResponse delete(String userId)
delete
in interface UserService
public User update(User user)
update
in interface UserService
user
- the user set to updatepublic User create(User user)
create
in interface UserService
user
- the userpublic User create(String domainId, String name, String password, String email, boolean enabled)
create
in interface UserService
domainId
- the domain idname
- the name of the new userpassword
- the password of the new useremail
- the email of the new userenabled
- the enabled of the new userpublic List<? extends Group> listUserGroups(String userId)
listUserGroups
in interface UserService
userId
- the user idpublic List<? extends Project> listUserProjects(String userId)
listUserProjects
in interface UserService
public List<? extends User> list()
list
in interface UserService
public List<? extends Role> listProjectUserRoles(String userId, String projectId)
listProjectUserRoles
in interface UserService
userId
- the user idpublic List<? extends Role> listDomainUserRoles(String userId, String domainId)
listDomainUserRoles
in interface UserService
userId
- the user identifierdomainId
- the domain identifierpublic ActionResponse changePassword(String userId, String originalPassword, String password)
changePassword
in interface UserService
userId
- the user identifieroriginalPassword
- the original passwordpassword
- the new passwordCopyright © 2017. All rights reserved.