public class Role extends Object
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addRole(RoleWrapper roleWrapper)
API is used to persist a new Role
|
javax.ws.rs.core.Response |
deleteRole(String roleName)
API is used to delete a role and authorizations
|
javax.ws.rs.core.Response |
getMatchingRoles(String filter)
Get user roles by providing a filtering criteria(except all internal roles & system roles) from system.
|
ResponsePayload |
getPermissions(String roleName)
Get role permissions.
|
ResponsePayload |
getRole(String roleName)
Get user role of the system
|
javax.ws.rs.core.Response |
getRoles()
Get user roles (except all internal roles) from system.
|
javax.ws.rs.core.Response |
getRoles(String userStore)
Get user roles by user store(except all internal roles) from system.
|
ArrayList<String> |
iteratePermissions(org.wso2.carbon.user.mgt.common.UIPermissionNode uiPermissionNode,
ArrayList<String> list) |
javax.ws.rs.core.Response |
updateRole(String roleName,
RoleWrapper roleWrapper)
API is used to update a role Role
|
javax.ws.rs.core.Response |
updateUsers(String roleName,
List<String> userList)
API is used to update users of a role
|
public javax.ws.rs.core.Response getRoles() throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getRoles(String userStore) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response getMatchingRoles(String filter) throws MDMAPIException
MDMAPIException
public ResponsePayload getPermissions(String roleName) throws MDMAPIException
MDMAPIException
public ResponsePayload getRole(String roleName) throws MDMAPIException
MDMAPIException
public javax.ws.rs.core.Response addRole(RoleWrapper roleWrapper) throws MDMAPIException
roleWrapper
- MDMAPIException
public javax.ws.rs.core.Response updateRole(String roleName, RoleWrapper roleWrapper) throws MDMAPIException
roleWrapper
- MDMAPIException
public javax.ws.rs.core.Response deleteRole(String roleName) throws MDMAPIException
roleName
- MDMAPIException
public javax.ws.rs.core.Response updateUsers(String roleName, List<String> userList) throws MDMAPIException
roleName
- userList
- MDMAPIException
Copyright © 2016 WSO2. All rights reserved.