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, uri
public Group get(String groupId)
GroupService
get
in interface GroupService
groupId
- the group idpublic List<? extends Group> getByName(String groupName)
GroupService
getByName
in interface GroupService
groupName
- the group namepublic Group getByName(String groupName, String domainId)
GroupService
getByName
in interface GroupService
groupName
- the group namedomainId
- the domain idpublic ActionResponse delete(String groupId)
GroupService
delete
in interface GroupService
groupId
- the group idpublic Group update(Group group)
GroupService
update
in interface GroupService
group
- the group set to updatepublic Group create(Group group)
GroupService
create
in interface GroupService
group
- the grouppublic Group create(String domainId, String name, String description)
GroupService
create
in interface GroupService
domainId
- the domain idname
- the group namedescription
- the descriptionpublic List<? extends Group> list()
GroupService
list
in interface GroupService
public List<? extends User> listGroupUsers(String groupId)
GroupService
listGroupUsers
in interface GroupService
public ActionResponse checkGroupUser(String groupId, String userId)
GroupService
checkGroupUser
in interface GroupService
groupId
- the group iduserId
- the user idpublic ActionResponse addUserToGroup(String groupId, String userId)
addUserToGroup
in interface GroupService
groupId
- the group iduserId
- the user idpublic ActionResponse removeUserFromGroup(String groupId, String userId)
removeUserFromGroup
in interface GroupService
groupId
- the group iduserId
- the user idpublic List<? extends Role> listProjectGroupRoles(String groupId, String projectId)
GroupService
listProjectGroupRoles
in interface GroupService
groupId
- the group idprojectId
- the project idpublic List<? extends Role> listDomainGroupRoles(String groupId, String domainId)
GroupService
listDomainGroupRoles
in interface GroupService
groupId
- the group iddomainId
- the domain idCopyright © 2017. All rights reserved.