use of org.gluu.model.SelectableEntity in project oxTrust by GluuFederation.
the class UpdateClientAction method searchAvailableScopes.
public void searchAvailableScopes() {
if (this.availableScopes != null) {
selectAddedScopes();
return;
}
List<SelectableEntity<Scope>> tmpAvailableScopes = new ArrayList<SelectableEntity<Scope>>();
List<Scope> scopes = new ArrayList<Scope>();
try {
scopes = scopeService.getAllScopesList(1000);
} catch (Exception e) {
e.printStackTrace();
}
for (Scope scope : scopes) {
tmpAvailableScopes.add(new SelectableEntity<Scope>(scope));
}
this.availableScopes = tmpAvailableScopes;
selectAddedScopes();
}
Aggregations