moved EnhancedFeed class from NewsFeed portlet
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@122852 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
094380d0ea
commit
2f0076632f
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.portal</groupId>
|
<groupId>org.gcube.portal</groupId>
|
||||||
<artifactId>social-networking-library</artifactId>
|
<artifactId>social-networking-library</artifactId>
|
||||||
<version>1.10.1-SNAPSHOT</version>
|
<version>1.10.2-SNAPSHOT</version>
|
||||||
<name>gCube Social Networking Library</name>
|
<name>gCube Social Networking Library</name>
|
||||||
<description>
|
<description>
|
||||||
The gCube Social Networking Library is the 'bridge' between your gCube Applications and the social networking facilities.
|
The gCube Social Networking Library is the 'bridge' between your gCube Applications and the social networking facilities.
|
||||||
|
|
|
@ -0,0 +1,85 @@
|
||||||
|
package org.gcube.portal.databook.shared;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author massi
|
||||||
|
* This class contains addtional user related information about a Feed
|
||||||
|
* e.g. if this user has liked it
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class EnhancedFeed implements Serializable{
|
||||||
|
private Feed feed;
|
||||||
|
private boolean liked;
|
||||||
|
private boolean isUsers;
|
||||||
|
private ArrayList<Comment> comments;
|
||||||
|
private ArrayList<Attachment> attachments;
|
||||||
|
|
||||||
|
|
||||||
|
public EnhancedFeed() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
public EnhancedFeed(Feed feed, boolean liked, boolean isUsers) {
|
||||||
|
super();
|
||||||
|
this.feed = feed;
|
||||||
|
this.liked = liked;
|
||||||
|
this.isUsers = isUsers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EnhancedFeed(Feed feed, boolean liked, boolean isUsers, ArrayList<Comment> comments) {
|
||||||
|
super();
|
||||||
|
this.isUsers = isUsers;
|
||||||
|
this.feed = feed;
|
||||||
|
this.liked = liked;
|
||||||
|
this.comments = comments;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public EnhancedFeed(Feed feed, boolean liked, boolean isUsers,
|
||||||
|
ArrayList<Comment> comments, ArrayList<Attachment> attachments) {
|
||||||
|
super();
|
||||||
|
this.feed = feed;
|
||||||
|
this.liked = liked;
|
||||||
|
this.isUsers = isUsers;
|
||||||
|
this.comments = comments;
|
||||||
|
this.attachments = attachments;
|
||||||
|
}
|
||||||
|
public ArrayList<Comment> getComments() {
|
||||||
|
return comments;
|
||||||
|
}
|
||||||
|
public void setComments(ArrayList<Comment> comments) {
|
||||||
|
this.comments = comments;
|
||||||
|
}
|
||||||
|
public Feed getFeed() {
|
||||||
|
return feed;
|
||||||
|
}
|
||||||
|
public void setFeed(Feed feed) {
|
||||||
|
this.feed = feed;
|
||||||
|
}
|
||||||
|
public boolean isLiked() {
|
||||||
|
return liked;
|
||||||
|
}
|
||||||
|
public void setLiked(boolean liked) {
|
||||||
|
this.liked = liked;
|
||||||
|
}
|
||||||
|
public boolean isUsers() {
|
||||||
|
return isUsers;
|
||||||
|
}
|
||||||
|
public void setUsers(boolean isUsers) {
|
||||||
|
this.isUsers = isUsers;
|
||||||
|
}
|
||||||
|
public ArrayList<Attachment> getAttachments() {
|
||||||
|
return attachments;
|
||||||
|
}
|
||||||
|
public void setAttachments(ArrayList<Attachment> attachments) {
|
||||||
|
this.attachments = attachments;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "EnhancedFeed [feed=" + feed + ", liked=" + liked + ", isUsers="
|
||||||
|
+ isUsers + ", comments=" + comments + ", attachments="
|
||||||
|
+ attachments + "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue