public abstract class AuthScopeDao
extends io.ballerina.messaging.broker.common.BaseDao
| Constructor and Description |
|---|
AuthScopeDao(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
abstract AuthScope |
read(String scopeName)
Read scope for given scope name
|
abstract List<AuthScope> |
readAll()
Read all scopes
|
abstract void |
update(String scopeName,
List<String> userGroups)
Persist scope key in the database
|
public AuthScopeDao(DataSource dataSource)
public abstract void update(String scopeName, List<String> userGroups) throws AuthServerException
scopeName - scope nameuserGroups - user groupsAuthServerException - when database operation failed.public abstract AuthScope read(String scopeName) throws AuthServerException
scopeName - scope nameAuthServerException - when database operation failed.public abstract List<AuthScope> readAll() throws AuthServerException
AuthServerException - when database operation failed.Copyright © 2018 WSO2. All rights reserved.