updated client feed, added list of attachments
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@122273 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f4e90bfb6a
commit
932f323f14
|
@ -2,6 +2,7 @@ package org.gcube.portal.databook.shared;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.jsonmaker.gwt.client.Jsonizer;
|
import org.jsonmaker.gwt.client.Jsonizer;
|
||||||
|
|
||||||
|
@ -9,13 +10,12 @@ import org.jsonmaker.gwt.client.Jsonizer;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Massimiliano Assante, ISTI-CNR
|
* @author Massimiliano Assante, ISTI-CNR
|
||||||
* @version 0.1 July 2012
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public class ClientFeed implements Serializable{
|
public class ClientFeed implements Serializable {
|
||||||
|
|
||||||
public interface ClientFeedJsonizer extends Jsonizer{}
|
public interface ClientFeedJsonizer extends Jsonizer {}
|
||||||
|
|
||||||
private String key;
|
private String key;
|
||||||
private String type;
|
private String type;
|
||||||
|
@ -30,15 +30,16 @@ public class ClientFeed implements Serializable{
|
||||||
private String linkDescription;
|
private String linkDescription;
|
||||||
private String linkUrlThumbnail;
|
private String linkUrlThumbnail;
|
||||||
private String linkHost;
|
private String linkHost;
|
||||||
|
private List<String> attachments;
|
||||||
|
|
||||||
public ClientFeed() {
|
public ClientFeed() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClientFeed(String key, String type, String userid, Date time,
|
public ClientFeed(String key, String type, String userid, Date time,
|
||||||
String uri, String description, String fullName, String email,
|
String uri, String description, String fullName, String email,
|
||||||
String thumbnailURL, String linkTitle, String linkDescription,
|
String thumbnailURL, String linkTitle, String linkDescription,
|
||||||
String linkUrlThumbnail, String linkHost) {
|
String linkUrlThumbnail, String linkHost, List<String> attachments) {
|
||||||
super();
|
super();
|
||||||
this.key = key;
|
this.key = key;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
@ -53,9 +54,9 @@ public class ClientFeed implements Serializable{
|
||||||
this.linkDescription = linkDescription;
|
this.linkDescription = linkDescription;
|
||||||
this.linkUrlThumbnail = linkUrlThumbnail;
|
this.linkUrlThumbnail = linkUrlThumbnail;
|
||||||
this.linkHost = linkHost;
|
this.linkHost = linkHost;
|
||||||
|
this.attachments = attachments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getKey() {
|
public String getKey() {
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
@ -159,15 +160,24 @@ public class ClientFeed implements Serializable{
|
||||||
public void setLinkHost(String linkHost) {
|
public void setLinkHost(String linkHost) {
|
||||||
this.linkHost = linkHost;
|
this.linkHost = linkHost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<String> getAttachments() {
|
||||||
|
return attachments;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAttachments(List<String> attachments) {
|
||||||
|
this.attachments = attachments;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ClientFeed [key=" + key + ", type=" + type + ", userid="
|
return "ClientFeed [key=" + key + ", type=" + type + ", userid="
|
||||||
+ userid + ", uri=" + uri + ", description=" + description
|
+ userid + ", time=" + time + ", uri=" + uri + ", description="
|
||||||
+ ", fullName=" + fullName + ", email=" + email
|
+ description + ", fullName=" + fullName + ", email=" + email
|
||||||
+ ", thumbnailURL=" + thumbnailURL + ", linkTitle=" + linkTitle
|
+ ", thumbnailURL=" + thumbnailURL + ", linkTitle=" + linkTitle
|
||||||
+ ", linkDescription=" + linkDescription
|
+ ", linkDescription=" + linkDescription
|
||||||
+ ", linkUrlThumbnail=" + linkUrlThumbnail + ", linkHost="
|
+ ", linkUrlThumbnail=" + linkUrlThumbnail + ", linkHost="
|
||||||
+ linkHost + "]";
|
+ linkHost + ", attachments=" + attachments + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue