public interface ScopeManagementService
| Modifier and Type | Method and Description |
|---|---|
List<org.wso2.carbon.apimgt.api.model.Scope> |
getAllScopes()
This method is used to retrieve all the scopes.
|
String |
getRolesOfScope(String scopeKey)
This method is to retrieve the roles of the given scope
|
List<org.wso2.carbon.apimgt.api.model.Scope> |
getScopesOfRole(String roleName)
This method is to retrieve the scopes of the given role
|
void |
removeScopes(String roleName)
This method is used to remove the scopes of a given user role.
|
void |
updateScopes(List<org.wso2.carbon.apimgt.api.model.Scope> scopes)
This method is used to update the given list of scopes.
|
void |
updateScopes(List<String> scopeKeys,
String roleName)
This method is used to update the given list of scopes keys with the role name.
|
void updateScopes(List<org.wso2.carbon.apimgt.api.model.Scope> scopes) throws ScopeManagementException
scopes - List of scopes to be updated.ScopeManagementExceptionvoid updateScopes(List<String> scopeKeys, String roleName) throws ScopeManagementException
scopeKeys - List of scopes to be updated.roleName - Role nameScopeManagementExceptionList<org.wso2.carbon.apimgt.api.model.Scope> getAllScopes() throws ScopeManagementException
ScopeManagementExceptionString getRolesOfScope(String scopeKey) throws ScopeManagementException
scopeKey - key of the scopeScopeManagementExceptionList<org.wso2.carbon.apimgt.api.model.Scope> getScopesOfRole(String roleName) throws ScopeManagementException
roleName - key of the scopeScopeManagementExceptionvoid removeScopes(String roleName) throws ScopeManagementException
roleName - Role nameScopeManagementExceptionCopyright © 2016 WSO2. All rights reserved.