public class RoleServiceImpl extends BaseOpenStackService implements RoleService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
RoleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ActionResponse |
checkDomainGroupRole(String domainId,
String groupId,
String roleId)
checks if a group has a specific role in a given domain
|
ActionResponse |
checkDomainUserRole(String domainId,
String userId,
String roleId)
checks if a user has a specific role in a given domain-context
|
ActionResponse |
checkProjectGroupRole(String projectId,
String groupId,
String roleId)
check if a group has a specific role in a given project
|
ActionResponse |
checkProjectUserRole(String projectId,
String userId,
String roleId)
checks if a user has a specific role in a given project-context
|
Role |
create(Role role)
Create a new role
|
Role |
create(String name)
Create a new role
|
ActionResponse |
delete(String roleId)
Delete a role
|
Role |
get(String roleId)
Get details for a role
|
List<? extends Role> |
getByName(String name)
Get Role(s) filtering by Name
|
ActionResponse |
grantDomainGroupRole(String domainId,
String groupId,
String roleId)
grant a role to a specified group in domain context
|
ActionResponse |
grantDomainUserRole(String domainId,
String userId,
String roleId)
grants a role to a specified user in domain context
|
ActionResponse |
grantProjectGroupRole(String projectId,
String groupId,
String roleId)
grants a role to a specified group in project context
|
ActionResponse |
grantProjectUserRole(String projectId,
String userId,
String roleId)
grants a role to a specified user in project context
|
List<? extends Role> |
list()
Lists the global roles
|
List<? extends RoleAssignment> |
listRoleAssignments(String projectId)
list a role assignment list in project context
|
ActionResponse |
revokeDomainGroupRole(String domainId,
String groupId,
String roleId)
revoke a role from a specified group in domain context
|
ActionResponse |
revokeDomainUserRole(String domainId,
String userId,
String roleId)
revokes a role to a specified user in domain context
|
ActionResponse |
revokeProjectGroupRole(String projectId,
String groupId,
String roleId)
revokes a role from a specified group in project context
|
ActionResponse |
revokeProjectUserRole(String projectId,
String userId,
String roleId)
revokes a role to a specified user in project context
|
Role |
update(Role role)
Update a role
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public ActionResponse grantProjectUserRole(String projectId, String userId, String roleId)
grantProjectUserRole
in interface RoleService
projectId
- the project iduserId
- the user idroleId
- the role idpublic ActionResponse revokeProjectUserRole(String projectId, String userId, String roleId)
revokeProjectUserRole
in interface RoleService
projectId
- the project iduserId
- the user idroleId
- the role idpublic ActionResponse checkProjectUserRole(String projectId, String userId, String roleId)
checkProjectUserRole
in interface RoleService
projectId
- the project iduserId
- the user idroleId
- the role idpublic ActionResponse grantDomainUserRole(String domainId, String userId, String roleId)
grantDomainUserRole
in interface RoleService
domainId
- the domain iduserId
- the user idroleId
- the role idpublic ActionResponse revokeDomainUserRole(String domainId, String userId, String roleId)
revokeDomainUserRole
in interface RoleService
domainId
- the domain iduserId
- the user idroleId
- the role idpublic ActionResponse checkDomainUserRole(String domainId, String userId, String roleId)
checkDomainUserRole
in interface RoleService
domainId
- the domain iduserId
- the user idroleId
- the role idpublic List<? extends Role> list()
list
in interface RoleService
public List<? extends Role> getByName(String name)
getByName
in interface RoleService
name
- the name of the Role to filter bypublic Role create(Role role)
RoleService
create
in interface RoleService
role
- the rolepublic Role create(String name)
RoleService
create
in interface RoleService
name
- the role namepublic Role update(Role role)
RoleService
update
in interface RoleService
role
- the role set to updatepublic ActionResponse delete(String roleId)
RoleService
delete
in interface RoleService
roleId
- the role idpublic Role get(String roleId)
RoleService
get
in interface RoleService
roleId
- the role idpublic List<? extends RoleAssignment> listRoleAssignments(String projectId)
RoleService
listRoleAssignments
in interface RoleService
projectId
- the project idpublic ActionResponse grantProjectGroupRole(String projectId, String groupId, String roleId)
RoleService
grantProjectGroupRole
in interface RoleService
projectId
- the project idgroupId
- the group idroleId
- the role idpublic ActionResponse revokeProjectGroupRole(String projectId, String groupId, String roleId)
RoleService
revokeProjectGroupRole
in interface RoleService
projectId
- the project idgroupId
- the group idroleId
- the role idpublic ActionResponse checkProjectGroupRole(String projectId, String groupId, String roleId)
RoleService
checkProjectGroupRole
in interface RoleService
projectId
- the project idgroupId
- the group idroleId
- the role idpublic ActionResponse grantDomainGroupRole(String domainId, String groupId, String roleId)
RoleService
grantDomainGroupRole
in interface RoleService
domainId
- the domain idgroupId
- the group idroleId
- the role idpublic ActionResponse revokeDomainGroupRole(String domainId, String groupId, String roleId)
RoleService
revokeDomainGroupRole
in interface RoleService
domainId
- the domain idgroupId
- the group idroleId
- the role idpublic ActionResponse checkDomainGroupRole(String domainId, String groupId, String roleId)
RoleService
checkDomainGroupRole
in interface RoleService
domainId
- the domain idgroupId
- the group idroleId
- the role idCopyright © 2017. All rights reserved.