public class ScopeManagerImpl extends Object implements ScopeManager
| Constructor and Description |
|---|
ScopeManagerImpl(ScopeDAO scopeDAO) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteScope(String name)
Delete the scope for the given scope ID
|
Scope |
getScope(String name) |
Set<Scope> |
getScopes(Integer startIndex,
Integer count)
Retrieve the available scope list
|
boolean |
isScopeExists(String name)
Check the existence of a scope
|
Scope |
registerScope(Scope scope)
Register a scope with the bindings
|
Scope |
updateScope(Scope updatedScope)
Update the scope of the given scope ID
|
public ScopeManagerImpl(ScopeDAO scopeDAO)
public Scope registerScope(Scope scope) throws ScopeDAOException
registerScope in interface ScopeManagerscope - details of the scope to be registeredScopeDAOExceptionpublic Set<Scope> getScopes(Integer startIndex, Integer count) throws ScopeDAOException
getScopes in interface ScopeManagerstartIndex - Start Index of the result set to enforce paginationcount - Number of elements in the result set to enforce paginationScopeDAOExceptionpublic Scope getScope(String name) throws ScopeDAOException
getScope in interface ScopeManagername - Name of the scope which need to get retrievedScopeDAOExceptionpublic boolean isScopeExists(String name) throws ScopeDAOException
isScopeExists in interface ScopeManagername - Name of the scopeScopeDAOExceptionpublic void deleteScope(String name) throws ScopeDAOException
deleteScope in interface ScopeManagername - Scope ID of the scope which need to get deletedScopeDAOExceptionpublic Scope updateScope(Scope updatedScope) throws ScopeDAOException
updateScope in interface ScopeManagerupdatedScope - details of updated scopeScopeDAOExceptionCopyright © 2018 WSO2. All rights reserved.