realm roles

This commit is contained in:
Alfredo Oliviero 2024-04-16 11:52:48 +02:00
parent 34710730db
commit 470e470450
1 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,7 @@ public class Owner {
private String clientId;
private List<String> roles = new ArrayList<String>();
private List<String> realm_roles = new ArrayList<String>();
boolean externalClient;
@ -34,6 +35,8 @@ public class Owner {
this.application = application;
}
public Owner(String clientId, List<String> roles, String email, String firstName, String lastName,boolean external, boolean application) {
super();
this.clientId = clientId;
@ -45,6 +48,11 @@ public class Owner {
this.application = application;
}
public Owner(String clientId, List<String> roles, List<String> realm_roles, String email, String firstName, String lastName,boolean external, boolean application) {
this(clientId, roles, email, firstName, lastName, external, application);
this.realm_roles = realm_roles;
}
public boolean isApplication() {
return application;
}
@ -57,6 +65,11 @@ public class Owner {
return roles;
}
public List<String> getRealmRoles() {
return realm_roles;
}
public String getEmail() {
return email;
}