| Constructor and Description |
|---|
ScopeDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScope(Scope scope)
Add a scope
|
void |
deleteScopeByName(String name,
int tenantID)
Delete a scope of the provided scope ID
|
Set<Scope> |
getAllScopes(int tenantID)
Get all available scopes
|
Scope |
getScopeByName(String name)
Get a scope by name
|
int |
getScopeIDByName(String scopeName)
Get scope ID for the provided scope name
|
Set<Scope> |
getScopesWithPagination(Integer offset,
Integer limit,
int tenantID)
Get Scopes with pagination
|
boolean |
isScopeExists(String scopeName)
Get existence of scope for the provided scope name
|
void |
updateScopeByName(Scope updatedScope,
int tenantID)
Update a scope of the provided scope name
|
public void addScope(Scope scope) throws ScopeDAOException
addScope in interface ScopeDAOscope - ScopeScopeDAOException - IdentityOAuth2ScopeExceptionpublic Set<Scope> getAllScopes(int tenantID) throws ScopeDAOException
getAllScopes in interface ScopeDAOtenantID - tenant IDScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic Set<Scope> getScopesWithPagination(Integer offset, Integer limit, int tenantID) throws ScopeDAOException
getScopesWithPagination in interface ScopeDAOoffset - start index of the result setlimit - number of elements of the result settenantID - tenant IDScopeDAOException - 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 int getScopeIDByName(String scopeName) throws ScopeDAOException
getScopeIDByName in interface ScopeDAOscopeName - name of the scopeScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic void deleteScopeByName(String name, int tenantID) throws ScopeDAOException
deleteScopeByName in interface ScopeDAOname - name of the scopetenantID - tenant IDScopeDAOException - IdentityOAuth2ScopeServerExceptionpublic void updateScopeByName(Scope updatedScope, int tenantID) throws ScopeDAOException
updateScopeByName in interface ScopeDAOupdatedScope - details of the updated scopetenantID - tenant IDScopeDAOException - IdentityOAuth2ScopeServerExceptionCopyright © 2018 WSO2. All rights reserved.