package org.gcube.common.security; import java.util.ArrayList; import java.util.List; public class Owner { private String clientId; private List roles = new ArrayList(); boolean externalClient; private String email; private String firstName; private String lastName; //"name", as the client pretty name, e.g. Catalogue for gcat, Workspace for storage-hub private String clientName; //username of the user who requested such client private String contactPerson; //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, 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, boolean application) { super(); this.clientId = clientId; this.roles = roles; this.email = email; this.firstName = firstName; this.lastName = lastName; this.externalClient = external; this.application = application; } public boolean isApplication() { return application; } public String getId() { return clientId; } public List getRoles() { return roles; } public String getEmail() { return email; } public String getFirstName() { return firstName; } public String getLastName() { return lastName; } public boolean isExternalClient() { return externalClient; } public String getClientName() { return clientName; } public void setClientName(String clientName) { this.clientName = clientName; } public String getContactPerson() { return contactPerson; } public void setContactPerson(String contactPerson) { this.contactPerson = contactPerson; } public String getContactOrganisation() { return contactOrganisation; } public void setContactOrganisation(String contactOrganisation) { this.contactOrganisation = contactOrganisation; } }