diff --git a/src/main/java/org/gcube/portlets/widgets/githubconnector/server/GitHubConnectorServiceImpl.java b/src/main/java/org/gcube/portlets/widgets/githubconnector/server/GitHubConnectorServiceImpl.java index 29b54d7..24b7e3a 100644 --- a/src/main/java/org/gcube/portlets/widgets/githubconnector/server/GitHubConnectorServiceImpl.java +++ b/src/main/java/org/gcube/portlets/widgets/githubconnector/server/GitHubConnectorServiceImpl.java @@ -49,7 +49,7 @@ public class GitHubConnectorServiceImpl extends RemoteServiceServlet implements ServiceCredentials serviceCredentials = SessionUtil.getServiceCredentials(this.getThreadLocalRequest()); logger.debug("hello()"); UserInfo userInfo = new UserInfo(serviceCredentials.getUserName(), - serviceCredentials.getGoupId(), serviceCredentials.getGroupName(), + serviceCredentials.getGroupId(), serviceCredentials.getGroupName(), serviceCredentials.getScope(), serviceCredentials.getEmail(), serviceCredentials.getFullName()); diff --git a/src/main/java/org/gcube/portlets/widgets/githubconnector/server/util/ServiceCredentials.java b/src/main/java/org/gcube/portlets/widgets/githubconnector/server/util/ServiceCredentials.java index 50c5287..ecd1fe3 100644 --- a/src/main/java/org/gcube/portlets/widgets/githubconnector/server/util/ServiceCredentials.java +++ b/src/main/java/org/gcube/portlets/widgets/githubconnector/server/util/ServiceCredentials.java @@ -17,7 +17,7 @@ public class ServiceCredentials implements Serializable { private String lastName; private String email; private String scope; - private String goupId; + private String groupId; private String groupName; private String token; @@ -33,7 +33,7 @@ public class ServiceCredentials implements Serializable { } public ServiceCredentials(String userName, String fullName, String name, - String lastName, String email, String scope, String goupId, + String lastName, String email, String scope, String groupId, String groupName, String token) { super(); this.userName = userName; @@ -42,7 +42,7 @@ public class ServiceCredentials implements Serializable { this.lastName = lastName; this.email = email; this.scope = scope; - this.goupId = goupId; + this.groupId = groupId; this.groupName = groupName; this.token = token; } @@ -95,12 +95,12 @@ public class ServiceCredentials implements Serializable { this.scope = scope; } - public String getGoupId() { - return goupId; + public String getGroupId() { + return groupId; } - public void setGoupId(String goupId) { - this.goupId = goupId; + public void setGroupId(String groupId) { + this.groupId = groupId; } public String getGroupName() { @@ -123,9 +123,11 @@ public class ServiceCredentials implements Serializable { public String toString() { return "ServiceCredentials [userName=" + userName + ", fullName=" + fullName + ", name=" + name + ", lastName=" + lastName - + ", email=" + email + ", scope=" + scope + ", goupId=" - + goupId + ", groupName=" + groupName + ", token=" + token + + ", email=" + email + ", scope=" + scope + ", groupId=" + + groupId + ", groupName=" + groupName + ", token=" + token + "]"; } + + }