public interface UserService extends RestService
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.
|
User get(String userId)
userId
- the user idList<? extends User> getByName(String userName)
userName
- the user nameUser getByName(String userName, String domainId)
userName
- the user namedomainId
- the domain identifierActionResponse delete(String userId)
userid
- the userIdUser update(User user)
user
- the user set to updateUser create(User user)
user
- the userUser create(String domainId, String name, String password, String email, boolean enabled)
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 userDomain getUserDomain(String userId)
userId
- the user idList<? extends Group> listUserGroups(String userId)
userId
- the user idList<? extends Project> listUserProjects(String userId)
user
- the userList<? extends Role> listProjectUserRoles(String userId, String projectId)
userId
- the user idscope
- the scope (project,domain)List<? extends Role> listDomainUserRoles(String userId, String domainId)
userId
- the user identifierdomainId
- the domain identifierActionResponse changePassword(String userId, String originalPassword, String password)
userId
- the user identifieroriginalPassword
- the original passwordpassword
- the new passwordCopyright © 2017. All rights reserved.