public class GroupServiceImpl extends BaseOpenStackService implements GroupService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
GroupServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
addUserToGroup(String groupId,
String userId)
adds an existing user to a group
|
ActionResponse |
checkGroupUser(String groupId,
String userId)
check whether a user belongs to a group
|
Group |
create(Group group)
create a new group
|
Group |
create(String domainId,
String name,
String description)
creates a new group
|
ActionResponse |
delete(String groupId)
delete a group by id
|
Group |
get(String groupId)
gets detailed information about a specified group by id
|
List<? extends Group> |
getByName(String groupName)
get detailed information about groups matching specified by name and domain
|
Group |
getByName(String groupName,
String domainId)
get detailed information about groups matching specified by name and domain
|
List<? extends Group> |
list()
lists groups.
|
List<? extends Role> |
listDomainGroupRoles(String groupId,
String domainId)
list roles for a group on a domain
|
List<? extends User> |
listGroupUsers(String groupId)
lists the users that belong to a group
|
List<? extends Role> |
listProjectGroupRoles(String groupId,
String projectId)
list role for group on a project
|
ActionResponse |
removeUserFromGroup(String groupId,
String userId)
removes a user from a group
|
Group |
update(Group group)
updates an existing group
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic Group get(String groupId)
GroupServiceget in interface GroupServicegroupId - the group idpublic List<? extends Group> getByName(String groupName)
GroupServicegetByName in interface GroupServicegroupName - the group namepublic Group getByName(String groupName, String domainId)
GroupServicegetByName in interface GroupServicegroupName - the group namedomainId - the domain idpublic ActionResponse delete(String groupId)
GroupServicedelete in interface GroupServicegroupId - the group idpublic Group update(Group group)
GroupServiceupdate in interface GroupServicegroup - the group set to updatepublic Group create(Group group)
GroupServicecreate in interface GroupServicegroup - the grouppublic Group create(String domainId, String name, String description)
GroupServicecreate in interface GroupServicedomainId - the domain idname - the group namedescription - the descriptionpublic List<? extends Group> list()
GroupServicelist in interface GroupServicepublic List<? extends User> listGroupUsers(String groupId)
GroupServicelistGroupUsers in interface GroupServicepublic ActionResponse checkGroupUser(String groupId, String userId)
GroupServicecheckGroupUser in interface GroupServicegroupId - the group iduserId - the user idpublic ActionResponse addUserToGroup(String groupId, String userId)
addUserToGroup in interface GroupServicegroupId - the group iduserId - the user idpublic ActionResponse removeUserFromGroup(String groupId, String userId)
removeUserFromGroup in interface GroupServicegroupId - the group iduserId - the user idpublic List<? extends Role> listProjectGroupRoles(String groupId, String projectId)
GroupServicelistProjectGroupRoles in interface GroupServicegroupId - the group idprojectId - the project idpublic List<? extends Role> listDomainGroupRoles(String groupId, String domainId)
GroupServicelistDomainGroupRoles in interface GroupServicegroupId - the group iddomainId - the domain idCopyright © 2017. All rights reserved.