Class ClientFeed

java.lang.Object
org.gcube.portal.databook.shared.ClientFeed
All Implemented Interfaces:
Serializable

public class ClientFeed extends Object implements 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:
  • 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

      public String getKey()
      Gets the unique identifier of the feed.
      Returns:
      the unique identifier of the feed.
    • setKey

      public void setKey(String key)
      Sets the unique identifier of the feed.
      Parameters:
      key - the unique identifier to set.
    • getType

      public String getType()
      Gets the type of the feed.
      Returns:
      the type of the feed.
    • setType

      public void setType(String type)
      Sets the type of the feed.
      Parameters:
      type - the type to set.
    • getUserid

      public String getUserid()
      Gets the user ID of the feed author.
      Returns:
      the user ID of the feed author.
    • setUserid

      public void setUserid(String userid)
      Sets the user ID of the feed author.
      Parameters:
      userid - the user ID to set.
    • getTime

      public Date getTime()
      Gets the timestamp of the feed.
      Returns:
      the timestamp of the feed.
    • setTime

      public void setTime(Date time)
      Sets the timestamp of the feed.
      Parameters:
      time - the timestamp to set.
    • getUri

      public String getUri()
      Gets the URI associated with the feed.
      Returns:
      the URI associated with the feed.
    • setUri

      public void setUri(String uri)
      Sets the URI associated with the feed.
      Parameters:
      uri - the URI to set.
    • getDescription

      public String getDescription()
      Gets the description of the feed.
      Returns:
      the description of the feed.
    • setDescription

      public void setDescription(String description)
      Sets the description of the feed.
      Parameters:
      description - the description to set.
    • getFullName

      public String getFullName()
      Gets the full name of the feed author.
      Returns:
      the full name of the feed author.
    • setFullName

      public void setFullName(String fullName)
      Sets the full name of the feed author.
      Parameters:
      fullName - the full name to set.
    • getEmail

      public String getEmail()
      Gets the email of the feed author.
      Returns:
      the email of the feed author.
    • setEmail

      public void setEmail(String email)
      Sets the email of the feed author.
      Parameters:
      email - the email to set.
    • getThumbnailURL

      public String getThumbnailURL()
      Gets the URL of the thumbnail image for the feed author.
      Returns:
      the URL of the thumbnail image for the feed author.
    • setThumbnailURL

      public void setThumbnailURL(String thumbnailURL)
      Sets the URL of the thumbnail image for the feed author.
      Parameters:
      thumbnailURL - the URL to set.
    • getLinkTitle

      public String getLinkTitle()
      Gets the title of the link associated with the feed.
      Returns:
      the title of the link associated with the feed.
    • setLinkTitle

      public void setLinkTitle(String linkTitle)
      Sets the title of the link associated with the feed.
      Parameters:
      linkTitle - the title to set.
    • getLinkDescription

      public String getLinkDescription()
      Gets the description of the link associated with the feed.
      Returns:
      the description of the link associated with the feed.
    • setLinkDescription

      public void setLinkDescription(String linkDescription)
      Sets the description of the link associated with the feed.
      Parameters:
      linkDescription - the description to set.
    • getLinkUrlThumbnail

      public String getLinkUrlThumbnail()
      Gets the URL of the thumbnail for the link.
      Returns:
      the URL of the thumbnail for the link.
    • setLinkUrlThumbnail

      public void setLinkUrlThumbnail(String linkUrlThumbnail)
      Sets the URL of the thumbnail for the link.
      Parameters:
      linkUrlThumbnail - the URL to set.
    • getLinkHost

      public String getLinkHost()
      Gets the host of the link.
      Returns:
      the host of the link.
    • setLinkHost

      public void setLinkHost(String linkHost)
      Sets the host of the link.
      Parameters:
      linkHost - the host to set.
    • getAttachments

      public List<Attachment> getAttachments()
      Gets the list of attachments associated with the feed.
      Returns:
      the list of attachments associated with the feed.
    • setAttachments

      public void setAttachments(List<Attachment> attachments)
      Sets the list of attachments associated with the feed.
      Parameters:
      attachments - the list of attachments to set.
    • toString

      public String toString()
      Returns a string representation of the feed.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the feed.