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:
parent
53c17494de
commit
4ae4564cce
|
@ -49,7 +49,7 @@ public class GitHubConnectorServiceImpl extends RemoteServiceServlet implements
|
||||||
ServiceCredentials serviceCredentials = SessionUtil.getServiceCredentials(this.getThreadLocalRequest());
|
ServiceCredentials serviceCredentials = SessionUtil.getServiceCredentials(this.getThreadLocalRequest());
|
||||||
logger.debug("hello()");
|
logger.debug("hello()");
|
||||||
UserInfo userInfo = new UserInfo(serviceCredentials.getUserName(),
|
UserInfo userInfo = new UserInfo(serviceCredentials.getUserName(),
|
||||||
serviceCredentials.getGoupId(), serviceCredentials.getGroupName(),
|
serviceCredentials.getGroupId(), serviceCredentials.getGroupName(),
|
||||||
serviceCredentials.getScope(),
|
serviceCredentials.getScope(),
|
||||||
serviceCredentials.getEmail(),
|
serviceCredentials.getEmail(),
|
||||||
serviceCredentials.getFullName());
|
serviceCredentials.getFullName());
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class ServiceCredentials implements Serializable {
|
||||||
private String lastName;
|
private String lastName;
|
||||||
private String email;
|
private String email;
|
||||||
private String scope;
|
private String scope;
|
||||||
private String goupId;
|
private String groupId;
|
||||||
private String groupName;
|
private String groupName;
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ public class ServiceCredentials implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ServiceCredentials(String userName, String fullName, String name,
|
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) {
|
String groupName, String token) {
|
||||||
super();
|
super();
|
||||||
this.userName = userName;
|
this.userName = userName;
|
||||||
|
@ -42,7 +42,7 @@ public class ServiceCredentials implements Serializable {
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
this.email = email;
|
this.email = email;
|
||||||
this.scope = scope;
|
this.scope = scope;
|
||||||
this.goupId = goupId;
|
this.groupId = groupId;
|
||||||
this.groupName = groupName;
|
this.groupName = groupName;
|
||||||
this.token = token;
|
this.token = token;
|
||||||
}
|
}
|
||||||
|
@ -95,12 +95,12 @@ public class ServiceCredentials implements Serializable {
|
||||||
this.scope = scope;
|
this.scope = scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGoupId() {
|
public String getGroupId() {
|
||||||
return goupId;
|
return groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGoupId(String goupId) {
|
public void setGroupId(String groupId) {
|
||||||
this.goupId = goupId;
|
this.groupId = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGroupName() {
|
public String getGroupName() {
|
||||||
|
@ -123,9 +123,11 @@ public class ServiceCredentials implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ServiceCredentials [userName=" + userName + ", fullName="
|
return "ServiceCredentials [userName=" + userName + ", fullName="
|
||||||
+ fullName + ", name=" + name + ", lastName=" + lastName
|
+ fullName + ", name=" + name + ", lastName=" + lastName
|
||||||
+ ", email=" + email + ", scope=" + scope + ", goupId="
|
+ ", email=" + email + ", scope=" + scope + ", groupId="
|
||||||
+ goupId + ", groupName=" + groupName + ", token=" + token
|
+ groupId + ", groupName=" + groupName + ", token=" + token
|
||||||
+ "]";
|
+ "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue