use of com.apifest.oauth20.persistence.DBManager in project xian by happyyangyuan.
the class ScopeService method loadScopes.
protected List<Scope> loadScopes(String scope) {
String[] scopes = scope.split(SPACE);
List<Scope> loadedScopes = new ArrayList<Scope>();
DBManager db = DBManagerFactory.getInstance();
for (String name : scopes) {
loadedScopes.add(db.findScope(name));
}
return loadedScopes;
}