public class AuthScopeRdbmsDao extends AuthScopeDao
AuthScopeDao to provide database functionality to manage scopes.| Constructor and Description |
|---|
AuthScopeRdbmsDao(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
AuthScope |
read(String scopeName)
Read scope for given scope name
|
List<AuthScope> |
readAll()
Read all scopes
|
void |
update(String scopeName,
List<String> userGroups)
Persist scope key in the database
|
public AuthScopeRdbmsDao(DataSource dataSource)
public AuthScope read(String scopeName) throws AuthServerException
AuthScopeDaoread in class AuthScopeDaoscopeName - scope nameAuthServerException - when database operation failed.public List<AuthScope> readAll() throws AuthServerException
AuthScopeDaoreadAll in class AuthScopeDaoAuthServerException - when database operation failed.public void update(String scopeName, List<String> userGroups) throws AuthServerException
AuthScopeDaoupdate in class AuthScopeDaoscopeName - scope nameuserGroups - user groupsAuthServerException - when database operation failed.Copyright © 2018 WSO2. All rights reserved.