public interface RoleManager
| Modifier and Type | Method and Description |
|---|---|
Role |
createRole(Role role)
Create a role.
|
void |
deleteRole(String id)
Delete the given role.
|
Role |
getRole(String id,
Map<String,Boolean> requiredAttributes)
Get the role for the given ID.
|
RolesGetResponse |
listRolesWithGET(Node node,
Integer startIndex,
Integer count,
String sortBy,
String sortOrder)
List roles with Get.
|
RolesGetResponse |
listRolesWithPost(SearchRequest searchRequest)
List roles with Post.
|
Role |
updateRole(Role oldRole,
Role newRole)
Update the role.
|
Role createRole(Role role) throws CharonException, ConflictException, NotImplementedException, BadRequestException
role - Role Object.CharonException - CharonException.ConflictException - ConflictException.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.Role getRole(String id, Map<String,Boolean> requiredAttributes) throws NotImplementedException, BadRequestException, CharonException, NotFoundException
id - Role ID.requiredAttributes - Required Attributes.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.CharonException - CharonException.NotFoundException - NotFoundException.void deleteRole(String id) throws NotFoundException, CharonException, NotImplementedException, BadRequestException
id - Role ID.NotFoundException - NotFoundException.CharonException - CharonException.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.RolesGetResponse listRolesWithGET(Node node, Integer startIndex, Integer count, String sortBy, String sortOrder) throws CharonException, NotImplementedException, BadRequestException
node - NodestartIndex - Start Indexcount - CountsortBy - Sort bysortOrder - Sort orderCharonException - CharonException.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.Role updateRole(Role oldRole, Role newRole) throws NotImplementedException, BadRequestException, CharonException, ConflictException, NotFoundException
oldRole - Old role.newRole - new role.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.CharonException - CharonException.ConflictException - ConflictException.NotFoundException - NotFoundException.RolesGetResponse listRolesWithPost(SearchRequest searchRequest) throws NotImplementedException, BadRequestException, CharonException
searchRequest - Search request.NotImplementedException - NotImplementedException.BadRequestException - BadRequestException.CharonException - CharonException.Copyright © 2022 WSO2. All rights reserved.