This commit is contained in:
Massimiliano Assante 2018-06-19 10:31:03 +00:00
parent 8da761f4ff
commit ee601e09d2
3 changed files with 6 additions and 80 deletions

View File

@ -47,6 +47,11 @@
<artifactId>social-networking-library</artifactId> <artifactId>social-networking-library</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>org.gcube.portlets.widgets</groupId>
<artifactId>pickitem-widget</artifactId>
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
</dependency>
<dependency> <dependency>
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>gcube-widgets</artifactId> <artifactId>gcube-widgets</artifactId>

View File

@ -15,7 +15,7 @@ import org.gcube.common.portal.PortalContext;
import org.gcube.common.scope.impl.ScopeBean; import org.gcube.common.scope.impl.ScopeBean;
import org.gcube.common.scope.impl.ScopeBean.Type; import org.gcube.common.scope.impl.ScopeBean.Type;
import org.gcube.portal.databook.client.GCubeSocialNetworking; import org.gcube.portal.databook.client.GCubeSocialNetworking;
import org.gcube.social_networking.socialutillibrary.shared.ItemBean; import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
import org.gcube.vomanagement.usermanagement.GroupManager; import org.gcube.vomanagement.usermanagement.GroupManager;
import org.gcube.vomanagement.usermanagement.RoleManager; import org.gcube.vomanagement.usermanagement.RoleManager;
import org.gcube.vomanagement.usermanagement.UserManager; import org.gcube.vomanagement.usermanagement.UserManager;

View File

@ -1,79 +0,0 @@
package org.gcube.social_networking.socialutillibrary.shared;
import java.io.Serializable;
@SuppressWarnings("serial")
public class ItemBean implements Serializable {
private String id;
private String name;
private String alternativeName;
private String thumbnailURL;
private boolean isItemGroup;
public ItemBean() {
super();
}
/**
* Use it when the Item represents a user.
* @param id
* @param username
* @param fullName
* @param thumbnailURL
*/
public ItemBean(String id, String username, String fullName, String thumbnailURL) {
super();
this.id = id;
this.name = username;
this.alternativeName = fullName;
this.thumbnailURL = thumbnailURL;
}
/**
* Use it when the Item represents a group of users (namely a team).
* @param id
* @param teamName
*/
public ItemBean(String id, String teamName) {
super();
this.id = id;
this.name = teamName;
this.alternativeName = teamName;
this.isItemGroup = true;
}
public boolean isItemGroup() {
return isItemGroup;
}
public void setItemGroup(boolean isItemGroup) {
this.isItemGroup = isItemGroup;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAlternativeName() {
return alternativeName;
}
public void setAlternativeName(String altname) {
this.alternativeName = altname;
}
public String getThumbnailURL() {
return thumbnailURL;
}
public void setThumbnailURL(String thumbnailURL) {
this.thumbnailURL = thumbnailURL;
}
@Override
public String toString() {
return "ItemBean [id=" + id + ", name=" + name + ", alternativeName="
+ alternativeName + ", thumbnailURL=" + thumbnailURL
+ ", isItemGroup=" + isItemGroup + "]";
}
}