public interface RoleService extends RestService
| 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
|
Role create(Role role)
role - the roleRole create(String name)
name - the role nameRole update(Role role)
role - the role set to updateActionResponse delete(String roleId)
roleId - the role idRole get(String roleId)
roleId - the role idList<? extends Role> getByName(String name)
name - the name of the Role to filter byList<? extends RoleAssignment> listRoleAssignments(String projectId)
projectId - the project idActionResponse grantProjectUserRole(String projectId, String userId, String roleId)
projectId - the project iduserId - the user idroleId - the role idActionResponse revokeProjectUserRole(String projectId, String userId, String roleId)
projectId - the project iduserId - the user idroleId - the role idActionResponse checkProjectUserRole(String projectId, String userId, String roleId)
projectId - the project iduserId - the user idroleId - the role idActionResponse grantDomainUserRole(String domainId, String userId, String roleId)
domainId - the domain iduserId - the user idroleId - the role idActionResponse revokeDomainUserRole(String domainId, String userId, String roleId)
domainId - the domain iduserId - the user idroleId - the role idActionResponse checkDomainUserRole(String domainId, String userId, String roleId)
domainId - the domain iduserId - the user idroleId - the role idActionResponse grantProjectGroupRole(String projectId, String groupId, String roleId)
projectId - the project idgroupId - the group idroleId - the role idActionResponse revokeProjectGroupRole(String projectId, String groupId, String roleId)
projectId - the project idgroupId - the group idroleId - the role idActionResponse checkProjectGroupRole(String projectId, String groupId, String roleId)
projectId - the project idgroupId - the group idroleId - the role idActionResponse grantDomainGroupRole(String domainId, String groupId, String roleId)
domainId - the domain idgroupId - the group idroleId - the role idActionResponse revokeDomainGroupRole(String domainId, String groupId, String roleId)
domainId - the domain idgroupId - the group idroleId - the role idActionResponse checkDomainGroupRole(String domainId, String groupId, String roleId)
domainId - the domain idgroupId - the group idroleId - the role idCopyright © 2017. All rights reserved.