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, uripublic ActionResponse grantProjectUserRole(String projectId, String userId, String roleId)
grantProjectUserRole in interface RoleServiceprojectId - the project iduserId - the user idroleId - the role idpublic ActionResponse revokeProjectUserRole(String projectId, String userId, String roleId)
revokeProjectUserRole in interface RoleServiceprojectId - the project iduserId - the user idroleId - the role idpublic ActionResponse checkProjectUserRole(String projectId, String userId, String roleId)
checkProjectUserRole in interface RoleServiceprojectId - the project iduserId - the user idroleId - the role idpublic ActionResponse grantDomainUserRole(String domainId, String userId, String roleId)
grantDomainUserRole in interface RoleServicedomainId - the domain iduserId - the user idroleId - the role idpublic ActionResponse revokeDomainUserRole(String domainId, String userId, String roleId)
revokeDomainUserRole in interface RoleServicedomainId - the domain iduserId - the user idroleId - the role idpublic ActionResponse checkDomainUserRole(String domainId, String userId, String roleId)
checkDomainUserRole in interface RoleServicedomainId - the domain iduserId - the user idroleId - the role idpublic List<? extends Role> list()
list in interface RoleServicepublic List<? extends Role> getByName(String name)
getByName in interface RoleServicename - the name of the Role to filter bypublic Role create(Role role)
RoleServicecreate in interface RoleServicerole - the rolepublic Role create(String name)
RoleServicecreate in interface RoleServicename - the role namepublic Role update(Role role)
RoleServiceupdate in interface RoleServicerole - the role set to updatepublic ActionResponse delete(String roleId)
RoleServicedelete in interface RoleServiceroleId - the role idpublic Role get(String roleId)
RoleServiceget in interface RoleServiceroleId - the role idpublic List<? extends RoleAssignment> listRoleAssignments(String projectId)
RoleServicelistRoleAssignments in interface RoleServiceprojectId - the project idpublic ActionResponse grantProjectGroupRole(String projectId, String groupId, String roleId)
RoleServicegrantProjectGroupRole in interface RoleServiceprojectId - the project idgroupId - the group idroleId - the role idpublic ActionResponse revokeProjectGroupRole(String projectId, String groupId, String roleId)
RoleServicerevokeProjectGroupRole in interface RoleServiceprojectId - the project idgroupId - the group idroleId - the role idpublic ActionResponse checkProjectGroupRole(String projectId, String groupId, String roleId)
RoleServicecheckProjectGroupRole in interface RoleServiceprojectId - the project idgroupId - the group idroleId - the role idpublic ActionResponse grantDomainGroupRole(String domainId, String groupId, String roleId)
RoleServicegrantDomainGroupRole in interface RoleServicedomainId - the domain idgroupId - the group idroleId - the role idpublic ActionResponse revokeDomainGroupRole(String domainId, String groupId, String roleId)
RoleServicerevokeDomainGroupRole in interface RoleServicedomainId - the domain idgroupId - the group idroleId - the role idpublic ActionResponse checkDomainGroupRole(String domainId, String groupId, String roleId)
RoleServicecheckDomainGroupRole in interface RoleServicedomainId - the domain idgroupId - the group idroleId - the role idCopyright © 2017. All rights reserved.