From 430239c23934ea85108ce026695807bf454bb4f4 Mon Sep 17 00:00:00 2001 From: lucio Date: Wed, 8 May 2024 11:41:35 +0200 Subject: [PATCH] added global roles --- .../java/org/gcube/common/security/Owner.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/org/gcube/common/security/Owner.java b/src/main/java/org/gcube/common/security/Owner.java index 380a1cc..b3a11a6 100644 --- a/src/main/java/org/gcube/common/security/Owner.java +++ b/src/main/java/org/gcube/common/security/Owner.java @@ -9,6 +9,8 @@ public class Owner { private String clientId; private List roles = new ArrayList(); + private List globalRoles = new ArrayList(); + boolean externalClient; private String email; @@ -44,6 +46,18 @@ public class Owner { this.externalClient = external; this.application = application; } + + public Owner(String clientId, List roles, List globalRoles, String email, String firstName, String lastName,boolean external, boolean application) { + super(); + this.clientId = clientId; + this.roles = roles; + this.globalRoles = globalRoles; + this.email = email; + this.firstName = firstName; + this.lastName = lastName; + this.externalClient = external; + this.application = application; + } public boolean isApplication() { return application; @@ -56,6 +70,10 @@ public class Owner { public List getRoles() { return roles; } + + public List getGlobalRoles() { + return globalRoles; + } public String getEmail() { return email;