Package org.openstack4j.api.identity.v3
Interface RoleService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
RoleServiceImpl
public interface RoleService extends RestService
Identity Role based Operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionResponsecheckDomainGroupRole(String domainId, String groupId, String roleId)checks if a group has a specific role in a given domainActionResponsecheckDomainUserRole(String domainId, String userId, String roleId)checks if a user has a specific role in a given domain-contextActionResponsecheckProjectGroupRole(String projectId, String groupId, String roleId)check if a group has a specific role in a given projectActionResponsecheckProjectUserRole(String projectId, String userId, String roleId)checks if a user has a specific role in a given project-contextRolecreate(String name)Create a new roleRolecreate(Role role)Create a new roleActionResponsedelete(String roleId)Delete a roleRoleget(String roleId)Get details for a roleList<? extends Role>getByName(String name)Get Role(s) filtering by NameActionResponsegrantDomainGroupRole(String domainId, String groupId, String roleId)grant a role to a specified group in domain contextActionResponsegrantDomainUserRole(String domainId, String userId, String roleId)grants a role to a specified user in domain contextActionResponsegrantProjectGroupRole(String projectId, String groupId, String roleId)grants a role to a specified group in project contextActionResponsegrantProjectUserRole(String projectId, String userId, String roleId)grants a role to a specified user in project contextList<? extends Role>list()Lists the global rolesList<? extends RoleAssignment>listRoleAssignments(String projectId)list a role assignment list in project contextActionResponserevokeDomainGroupRole(String domainId, String groupId, String roleId)revoke a role from a specified group in domain contextActionResponserevokeDomainUserRole(String domainId, String userId, String roleId)revokes a role to a specified user in domain contextActionResponserevokeProjectGroupRole(String projectId, String groupId, String roleId)revokes a role from a specified group in project contextActionResponserevokeProjectUserRole(String projectId, String userId, String roleId)revokes a role to a specified user in project contextRoleupdate(Role role)Update a role
-
-
-
Method Detail
-
create
Role create(Role role)
Create a new role- Parameters:
role- the role- Returns:
- the newly created role
-
create
Role create(String name)
Create a new role- Parameters:
name- the role name- Returns:
- the newly created role
-
update
Role update(Role role)
Update a role- Parameters:
role- the role set to update- Returns:
- the updated role
-
delete
ActionResponse delete(String roleId)
Delete a role- Parameters:
roleId- the role id- Returns:
- the ActionResponse
-
get
Role get(String roleId)
Get details for a role- Parameters:
roleId- the role id- Returns:
- the role
-
getByName
List<? extends Role> getByName(String name)
Get Role(s) filtering by Name- Parameters:
name- the name of the Role to filter by- Returns:
- the list extends Role>
-
listRoleAssignments
List<? extends RoleAssignment> listRoleAssignments(String projectId)
list a role assignment list in project context- Parameters:
projectId- the project id- Returns:
- the list extends RoleAssignment>
-
grantProjectUserRole
ActionResponse grantProjectUserRole(String projectId, String userId, String roleId)
grants a role to a specified user in project context- Parameters:
projectId- the project iduserId- the user idroleId- the role id- Returns:
- the action response
-
revokeProjectUserRole
ActionResponse revokeProjectUserRole(String projectId, String userId, String roleId)
revokes a role to a specified user in project context- Parameters:
projectId- the project iduserId- the user idroleId- the role id- Returns:
- the action response
-
checkProjectUserRole
ActionResponse checkProjectUserRole(String projectId, String userId, String roleId)
checks if a user has a specific role in a given project-context- Parameters:
projectId- the project iduserId- the user idroleId- the role id- Returns:
- the ActionResponse
-
grantDomainUserRole
ActionResponse grantDomainUserRole(String domainId, String userId, String roleId)
grants a role to a specified user in domain context- Parameters:
domainId- the domain iduserId- the user idroleId- the role id- Returns:
- the action response
-
revokeDomainUserRole
ActionResponse revokeDomainUserRole(String domainId, String userId, String roleId)
revokes a role to a specified user in domain context- Parameters:
domainId- the domain iduserId- the user idroleId- the role id- Returns:
- the action response
-
checkDomainUserRole
ActionResponse checkDomainUserRole(String domainId, String userId, String roleId)
checks if a user has a specific role in a given domain-context- Parameters:
domainId- the domain iduserId- the user idroleId- the role id- Returns:
- the ActionResponse
-
grantProjectGroupRole
ActionResponse grantProjectGroupRole(String projectId, String groupId, String roleId)
grants a role to a specified group in project context- Parameters:
projectId- the project idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
revokeProjectGroupRole
ActionResponse revokeProjectGroupRole(String projectId, String groupId, String roleId)
revokes a role from a specified group in project context- Parameters:
projectId- the project idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
checkProjectGroupRole
ActionResponse checkProjectGroupRole(String projectId, String groupId, String roleId)
check if a group has a specific role in a given project- Parameters:
projectId- the project idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
grantDomainGroupRole
ActionResponse grantDomainGroupRole(String domainId, String groupId, String roleId)
grant a role to a specified group in domain context- Parameters:
domainId- the domain idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
revokeDomainGroupRole
ActionResponse revokeDomainGroupRole(String domainId, String groupId, String roleId)
revoke a role from a specified group in domain context- Parameters:
domainId- the domain idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
checkDomainGroupRole
ActionResponse checkDomainGroupRole(String domainId, String groupId, String roleId)
checks if a group has a specific role in a given domain- Parameters:
domainId- the domain idgroupId- the group idroleId- the role id- Returns:
- the ActionResponse
-
-