git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@128073 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3b30e72ee2
commit
8b748fe964
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue