This commit is contained in:
Massimiliano Assante 2016-04-14 08:37:04 +00:00
parent 3b30e72ee2
commit 8b748fe964
2 changed files with 34 additions and 19 deletions

View File

@ -51,7 +51,7 @@ public class LiferayRoleManager implements RoleManager {
//simple team mapping
protected static GCubeTeam mapLRTeam(Team t) throws PortalException, SystemException {
if (t != null) {
return new GCubeTeam(t.getGroupId(), t.getTeamId(), t.getName(), t.getDescription());
return new GCubeTeam(t.getGroupId(), t.getTeamId(), t.getName(), t.getDescription(), t.getUserId(), t.getCreateDate(), t.getModifiedDate());
}
else
return null;

View File

@ -1,6 +1,7 @@
package org.gcube.vomanagement.usermanagement.model;
import java.io.Serializable;
import java.util.Date;
@SuppressWarnings("serial")
public class GCubeTeam implements Serializable {
@ -8,82 +9,96 @@ public class GCubeTeam implements Serializable {
private long teamId;
private String teamName;
private String description;
private long userId;
private Date createdate;
private Date modifiedDate;
public GCubeTeam(){
}
public GCubeTeam(long groupId, long teamId, String teamName,
String description) {
String description, long userId, Date createdate, Date modifiedDate) {
super();
this.groupId = groupId;
this.teamId = teamId;
this.teamName = teamName;
this.description = description;
this.userId = userId;
this.createdate = createdate;
this.modifiedDate = modifiedDate;
}
public long getGroupId() {
return groupId;
}
public void setGroupId(long groupId) {
this.groupId = groupId;
}
public long getTeamId() {
return teamId;
}
public void setTeamId(long teamId) {
this.teamId = teamId;
}
public String getTeamName() {
return teamName;
}
public void setTeamName(String teamName) {
this.teamName = teamName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "GCubeTeam [groupId=" + groupId + ", teamId=" + teamId
+ ", teamName=" + teamName + ", description=" + description
+ "]";
public long getUserId() {
return userId;
}
public void setUserId(long userId) {
this.userId = userId;
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public Date getModifiedDate() {
return modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
}
}