git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@169325 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8da761f4ff
commit
ee601e09d2
5
pom.xml
5
pom.xml
|
@ -47,6 +47,11 @@
|
|||
<artifactId>social-networking-library</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>pickitem-widget</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>gcube-widgets</artifactId>
|
||||
|
|
|
@ -15,7 +15,7 @@ import org.gcube.common.portal.PortalContext;
|
|||
import org.gcube.common.scope.impl.ScopeBean;
|
||||
import org.gcube.common.scope.impl.ScopeBean.Type;
|
||||
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.RoleManager;
|
||||
import org.gcube.vomanagement.usermanagement.UserManager;
|
||||
|
|
|
@ -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 + "]";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue