Removed deprecated dependency ws-mail widget

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/social-networking/social-util-library@169322 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2018-06-19 10:19:08 +00:00
parent b0fc505c1b
commit 8da761f4ff
4 changed files with 85 additions and 7 deletions

View File

@ -1,4 +1,8 @@
<ReleaseNotes>
<Changeset component="org.gcube.socialnetworking.social-util-library.1-4-0"
date="2018-06-19">
<Change>Removed deprecated dependency ws-mail widget</Change>
</Changeset>
<Changeset component="org.gcube.socialnetworking.social-util-library.1-3-0"
date="2017-12-31">
<Change>Fixed regex for hashtags (#10700)

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.socialnetworking</groupId>
<artifactId>social-util-library</artifactId>
<version>1.3.0-SNAPSHOT</version>
<version>1.4.0-SNAPSHOT</version>
<name>social-util-library</name>
<description>
The social-util-library contains utility functions that can be used by the social-networking portlets.
@ -47,11 +47,6 @@
<artifactId>social-networking-library</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gcube.portlets.widgets</groupId>
<artifactId>pickitem-widget</artifactId>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.portlets.user</groupId>
<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.Type;
import org.gcube.portal.databook.client.GCubeSocialNetworking;
import org.gcube.portlets.widgets.pickitem.shared.ItemBean;
import org.gcube.social_networking.socialutillibrary.shared.ItemBean;
import org.gcube.vomanagement.usermanagement.GroupManager;
import org.gcube.vomanagement.usermanagement.RoleManager;
import org.gcube.vomanagement.usermanagement.UserManager;

View File

@ -0,0 +1,79 @@
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 + "]";
}
}