Search in sources :

Example 6 with SelectableEntity

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();
}
Also used : Scope(org.oxauth.persistence.model.Scope) SelectableEntity(org.gluu.model.SelectableEntity) ArrayList(java.util.ArrayList) EncryptionException(org.gluu.util.security.StringEncrypter.EncryptionException) BasePersistenceException(org.gluu.persist.exception.BasePersistenceException) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) JSONException(org.codehaus.jettison.json.JSONException)

Aggregations

ArrayList (java.util.ArrayList)6 SelectableEntity (org.gluu.model.SelectableEntity)6 CustomScript (org.gluu.model.custom.script.model.CustomScript)3 BasePersistenceException (org.gluu.persist.exception.BasePersistenceException)3 Scope (org.oxauth.persistence.model.Scope)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 JSONException (org.codehaus.jettison.json.JSONException)1 ResponseType (org.gluu.oxauth.model.common.ResponseType)1 EncryptionException (org.gluu.util.security.StringEncrypter.EncryptionException)1