Search in sources :

Example 1 with DBManager

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;
}
Also used : DBManager(com.apifest.oauth20.persistence.DBManager) Scope(com.apifest.oauth20.bean.Scope) ArrayList(java.util.ArrayList)

Aggregations

Scope (com.apifest.oauth20.bean.Scope)1 DBManager (com.apifest.oauth20.persistence.DBManager)1 ArrayList (java.util.ArrayList)1