Exemplo n.º 1
0
  public Set<RoleModel> getRealmScopeMappings() {
    Set<RoleModel> roleMappings = getScopeMappings();

    Set<RoleModel> appRoles = new HashSet<RoleModel>();
    for (RoleModel role : roleMappings) {
      RoleContainerModel container = role.getContainer();
      if (container instanceof RealmModel) {
        if (((RealmModel) container).getId().equals(cachedRealm.getId())) {
          appRoles.add(role);
        }
      }
    }

    return appRoles;
  }
Exemplo n.º 2
0
 @Override
 public void setClientId(String clientId) {
   getDelegateForUpdate();
   updated.setClientId(clientId);
   cacheSession.registerRealmInvalidation(cachedRealm.getId());
 }