Updated to PortalContext

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/github-connector@134691 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2016-11-24 15:37:58 +00:00
parent 53c17494de
commit 4ae4564cce
2 changed files with 12 additions and 10 deletions

View File

@ -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());

View File

@ -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
+ "]";
}
}