Package org.gcube.portal.databook.shared
Class ClientFeed
java.lang.Object
org.gcube.portal.databook.shared.ClientFeed
- All Implemented Interfaces:
Serializable
Represents a feed for use in GWT/JavaScript interop scenarios.
Used to transfer feed data between Java and JavaScript (frontend).
Implements Serializable for GWT and Java serialization.
- Author:
- Massimiliano Assante, ISTI-CNR
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for JSON serialization of ClientFeed objects. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ClientFeed(String key, String type, String userid, Date time, String uri, String description, String fullName, String email, String thumbnailURL, String linkTitle, String linkDescription, String linkUrlThumbnail, String linkHost, List<Attachment> attachments) Constructs a ClientFeed with the specified details. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of attachments associated with the feed.Gets the description of the feed.getEmail()Gets the email of the feed author.Gets the full name of the feed author.getKey()Gets the unique identifier of the feed.Gets the description of the link associated with the feed.Gets the host of the link.Gets the title of the link associated with the feed.Gets the URL of the thumbnail for the link.Gets the URL of the thumbnail image for the feed author.getTime()Gets the timestamp of the feed.getType()Gets the type of the feed.getUri()Gets the URI associated with the feed.Gets the user ID of the feed author.voidsetAttachments(List<Attachment> attachments) Sets the list of attachments associated with the feed.voidsetDescription(String description) Sets the description of the feed.voidSets the email of the feed author.voidsetFullName(String fullName) Sets the full name of the feed author.voidSets the unique identifier of the feed.voidsetLinkDescription(String linkDescription) Sets the description of the link associated with the feed.voidsetLinkHost(String linkHost) Sets the host of the link.voidsetLinkTitle(String linkTitle) Sets the title of the link associated with the feed.voidsetLinkUrlThumbnail(String linkUrlThumbnail) Sets the URL of the thumbnail for the link.voidsetThumbnailURL(String thumbnailURL) Sets the URL of the thumbnail image for the feed author.voidSets the timestamp of the feed.voidSets the type of the feed.voidSets the URI associated with the feed.voidSets the user ID of the feed author.toString()Returns a string representation of the feed.
-
Constructor Details
-
ClientFeed
public ClientFeed()Default constructor. -
ClientFeed
public ClientFeed(String key, String type, String userid, Date time, String uri, String description, String fullName, String email, String thumbnailURL, String linkTitle, String linkDescription, String linkUrlThumbnail, String linkHost, List<Attachment> attachments) Constructs a ClientFeed with the specified details.- Parameters:
key- the unique identifier for the feed.type- the type of the feed.userid- the user ID of the feed author.time- the timestamp of the feed.uri- the URI associated with the feed.description- the description of the feed.fullName- the full name of the feed author.email- the email of the feed author.thumbnailURL- the URL of the thumbnail image for the feed author.linkTitle- the title of the link associated with the feed.linkDescription- the description of the link associated with the feed.linkUrlThumbnail- the URL of the thumbnail for the link.linkHost- the host of the link.attachments- the list of attachments associated with the feed.
-
-
Method Details
-
getKey
Gets the unique identifier of the feed.- Returns:
- the unique identifier of the feed.
-
setKey
Sets the unique identifier of the feed.- Parameters:
key- the unique identifier to set.
-
getType
Gets the type of the feed.- Returns:
- the type of the feed.
-
setType
Sets the type of the feed.- Parameters:
type- the type to set.
-
getUserid
Gets the user ID of the feed author.- Returns:
- the user ID of the feed author.
-
setUserid
Sets the user ID of the feed author.- Parameters:
userid- the user ID to set.
-
getTime
Gets the timestamp of the feed.- Returns:
- the timestamp of the feed.
-
setTime
Sets the timestamp of the feed.- Parameters:
time- the timestamp to set.
-
getUri
Gets the URI associated with the feed.- Returns:
- the URI associated with the feed.
-
setUri
Sets the URI associated with the feed.- Parameters:
uri- the URI to set.
-
getDescription
Gets the description of the feed.- Returns:
- the description of the feed.
-
setDescription
Sets the description of the feed.- Parameters:
description- the description to set.
-
getFullName
Gets the full name of the feed author.- Returns:
- the full name of the feed author.
-
setFullName
Sets the full name of the feed author.- Parameters:
fullName- the full name to set.
-
getEmail
Gets the email of the feed author.- Returns:
- the email of the feed author.
-
setEmail
Sets the email of the feed author.- Parameters:
email- the email to set.
-
getThumbnailURL
Gets the URL of the thumbnail image for the feed author.- Returns:
- the URL of the thumbnail image for the feed author.
-
setThumbnailURL
Sets the URL of the thumbnail image for the feed author.- Parameters:
thumbnailURL- the URL to set.
-
getLinkTitle
Gets the title of the link associated with the feed.- Returns:
- the title of the link associated with the feed.
-
setLinkTitle
Sets the title of the link associated with the feed.- Parameters:
linkTitle- the title to set.
-
getLinkDescription
Gets the description of the link associated with the feed.- Returns:
- the description of the link associated with the feed.
-
setLinkDescription
Sets the description of the link associated with the feed.- Parameters:
linkDescription- the description to set.
-
getLinkUrlThumbnail
Gets the URL of the thumbnail for the link.- Returns:
- the URL of the thumbnail for the link.
-
setLinkUrlThumbnail
Sets the URL of the thumbnail for the link.- Parameters:
linkUrlThumbnail- the URL to set.
-
getLinkHost
Gets the host of the link.- Returns:
- the host of the link.
-
setLinkHost
Sets the host of the link.- Parameters:
linkHost- the host to set.
-
getAttachments
Gets the list of attachments associated with the feed.- Returns:
- the list of attachments associated with the feed.
-
setAttachments
Sets the list of attachments associated with the feed.- Parameters:
attachments- the list of attachments to set.
-
toString
Returns a string representation of the feed.
-