diff --git a/.classpath b/.classpath index 5e8a55f..7fad44a 100644 --- a/.classpath +++ b/.classpath @@ -23,5 +23,18 @@ + + + + + + + + + + + + + diff --git a/src/main/java/org/gcube/common/security/Owner.java b/src/main/java/org/gcube/common/security/Owner.java index 54ec85c..380a1cc 100644 --- a/src/main/java/org/gcube/common/security/Owner.java +++ b/src/main/java/org/gcube/common/security/Owner.java @@ -5,6 +5,7 @@ import java.util.List; public class Owner { + private String clientId; private List roles = new ArrayList(); @@ -23,15 +24,17 @@ public class Owner { //the name of the organisation / community using such client. D4Science will be used for internal clients. private String contactOrganisation; + private boolean application; - public Owner(String clientId, List roles, boolean external) { + public Owner(String clientId, List roles, boolean external, boolean application) { super(); this.clientId = clientId; this.roles = roles; this.externalClient = external; + this.application = application; } - public Owner(String clientId, List roles, String email, String firstName, String lastName,boolean external) { + public Owner(String clientId, List roles, String email, String firstName, String lastName,boolean external, boolean application) { super(); this.clientId = clientId; this.roles = roles; @@ -39,8 +42,13 @@ public class Owner { this.firstName = firstName; this.lastName = lastName; this.externalClient = external; + this.application = application; } + public boolean isApplication() { + return application; + } + public String getId() { return clientId; }