| Constructor and Description |
|---|
ScopeDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScope(Scope scope)
Add a scope
|
void |
deleteScopeByName(String name)
Delete a scope of the provided scope ID
|
Scope |
getScopeByName(String name)
Get a scope by name
|
List<Scope> |
getScopesWithPagination(Integer offset,
Integer limit)
Get Scopes with pagination
|
boolean |
isScopeExists(String scopeName)
Get existence of scope for the provided scope name
|
void |
updateScopeByName(Scope updatedScope)
Update a scope of the provided scope name
|
public void addScope(Scope scope) throws ScopeDAOException
addScope in interface ScopeDAOscope - ScopeScopeDAOException - IdentityOAuth2ScopeExceptionpublic List<Scope> getScopesWithPagination(Integer offset, Integer limit) throws ScopeDAOException
getScopesWithPagination in interface ScopeDAOoffset - start index of the result setlimit - number of elements of the result setScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic Scope getScopeByName(String name) throws ScopeDAOException
getScopeByName in interface ScopeDAOname - name of the scopeScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic boolean isScopeExists(String scopeName) throws ScopeDAOException
isScopeExists in interface ScopeDAOscopeName - name of the scopeScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic void deleteScopeByName(String name) throws ScopeDAOException
deleteScopeByName in interface ScopeDAOname - name of the scopeScopeDAOException - When error occured while deleting scopepublic void updateScopeByName(Scope updatedScope) throws ScopeDAOException
updateScopeByName in interface ScopeDAOupdatedScope - details of the updated scopeScopeDAOException - IdentityOAuth2ScopeServerExceptionCopyright © 2018 WSO2. All rights reserved.