Class Feed

java.lang.Object
org.gcube.portal.databook.shared.Feed
All Implemented Interfaces:
Serializable, Comparable<Feed>

public class Feed extends Object implements Serializable, Comparable<Feed>
Deprecated.
Use Post instead.
Represents a feed item.
Author:
Massimiliano Assante, ISTI-CNR
See Also:
  • Constructor Details

    • Feed

      public Feed()
      Deprecated.
      Default constructor.
    • Feed

      public Feed(String key, FeedType type, String entityId, Date time, String vreid, String uri, String uriThumbnail, String description, PrivacyLevel privacy, String fullName, String email, String thumbnailURL, String linkTitle, String linkDescription, String linkHost)
      Deprecated.
      Constructor for user feeds.
      Parameters:
      key - A unique identifier (UUID).
      type - The type of the feed, instance of FeedType.
      entityId - The unique identifier of the user or application.
      time - The timestamp of the feed.
      vreid - A unique VRE identifier.
      uri - An optional URI.
      uriThumbnail - The thumbnail for any linked content.
      description - An optional description.
      privacy - The privacy level, instance of PrivacyLevel.
      fullName - The full name of the user.
      email - The email of the user.
      thumbnailURL - The URL of the user's thumbnail.
      linkTitle - Optional title for posted links.
      linkDescription - Optional description for posted links.
      linkHost - Optional host for posted links.
    • Feed

      public Feed(String key, FeedType type, String entityId, Date time, String vreid, String uri, String uriThumbnail, String description, PrivacyLevel privacy, String fullName, String email, String thumbnailURL, String linkTitle, String linkDescription, String linkHost, boolean applicationFeed)
      Deprecated.
      Constructor for user and application profile feeds.
      Parameters:
      key - A unique identifier (UUID).
      type - The type of the feed, instance of FeedType.
      entityId - The unique identifier of the user or application.
      time - The timestamp of the feed.
      vreid - A unique VRE identifier.
      uri - An optional URI.
      uriThumbnail - The thumbnail for any linked content.
      description - An optional description.
      privacy - The privacy level, instance of PrivacyLevel.
      fullName - The full name of the user.
      email - The email of the user.
      thumbnailURL - The URL of the user's thumbnail.
      linkTitle - Optional title for posted links.
      linkDescription - Optional description for posted links.
      linkHost - Optional host for posted links.
      applicationFeed - A boolean indicating if this is an application feed.
    • Feed

      public Feed(String key, FeedType type, String entityId, Date time, String vreid, String uri, String uriThumbnail, String description, PrivacyLevel privacy, String fullName, String email, String thumbnailURL, String commentsNo, String likesNo, String linkTitle, String linkDescription, String linkHost, boolean applicationFeed, boolean multiFileUpload)
      Deprecated.
      Constructor for serialization purposes.
      Parameters:
      key - A unique identifier (UUID).
      type - The type of the feed, instance of FeedType.
      entityId - The unique identifier of the user or application.
      time - The timestamp of the feed.
      vreid - A unique VRE identifier.
      uri - An optional URI.
      uriThumbnail - The thumbnail for any linked content.
      description - An optional description.
      privacy - The privacy level, instance of PrivacyLevel.
      fullName - The full name of the user.
      email - The email of the user.
      thumbnailURL - The URL of the user's thumbnail.
      commentsNo - The number of comments.
      likesNo - The number of likes.
      linkTitle - Optional title for posted links.
      linkDescription - Optional description for posted links.
      linkHost - Optional host for posted links.
      applicationFeed - A boolean indicating if this is an application feed.
      multiFileUpload - A boolean indicating if there are multiple file uploads.
  • Method Details

    • getKey

      public String getKey()
      Deprecated.
      Gets the key of the feed.
      Returns:
      The key.
    • setKey

      public void setKey(String key)
      Deprecated.
    • getType

      public FeedType getType()
      Deprecated.
      Gets the type of the feed.
      Returns:
      The feed type.
    • setType

      public void setType(FeedType type)
      Deprecated.
    • getEntityId

      public String getEntityId()
      Deprecated.
      Gets the entity ID (user or application ID).
      Returns:
      The entity ID.
    • setEntityId

      public void setEntityId(String entityId)
      Deprecated.
      Sets the entity ID (user or application ID).
      Parameters:
      entityId - The entity ID to set.
    • getTime

      public Date getTime()
      Deprecated.
      Gets the creation timestamp of the feed.
      Returns:
      The creation time.
    • setTime

      public void setTime(Date time)
      Deprecated.
    • getVreid

      public String getVreid()
      Deprecated.
      Gets the unique identifier of the VRE associated with this feed.
      Returns:
      The VRE ID.
    • setVreid

      public void setVreid(String vreid)
      Deprecated.
    • getUri

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

      public void setUri(String uri)
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
      Gets the description or content of the feed.
      Returns:
      The feed description.
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • getPrivacy

      public PrivacyLevel getPrivacy()
      Deprecated.
      Gets the privacy level of the feed.
      Returns:
      The privacy level.
    • setPrivacy

      public void setPrivacy(PrivacyLevel privacy)
      Deprecated.
    • getFullName

      public String getFullName()
      Deprecated.
      Gets the full name of the entity (user/application) that created the feed.
      Returns:
      The full name.
    • setFullName

      public void setFullName(String fullName)
      Deprecated.
    • getEmail

      public String getEmail()
      Deprecated.
      Gets the email of the entity that created the feed.
      Returns:
      The email address.
    • setEmail

      public void setEmail(String email)
      Deprecated.
    • getThumbnailURL

      public String getThumbnailURL()
      Deprecated.
      Gets the URL of the thumbnail image for the entity (user/application).
      Returns:
      The thumbnail URL.
    • setThumbnailURL

      public void setThumbnailURL(String thumbnailURL)
      Deprecated.
    • getCommentsNo

      public String getCommentsNo()
      Deprecated.
      Gets the number of comments on the feed.
      Returns:
      The number of comments as a String.
    • setCommentsNo

      public void setCommentsNo(String commentsNo)
      Deprecated.
    • getLikesNo

      public String getLikesNo()
      Deprecated.
      Gets the number of likes on the feed.
      Returns:
      The number of likes as a String.
    • setLikesNo

      public void setLikesNo(String likesNo)
      Deprecated.
    • getUriThumbnail

      public String getUriThumbnail()
      Deprecated.
      Gets the thumbnail URI for a shared link.
      Returns:
      The URI of the link thumbnail.
    • setUriThumbnail

      public void setUriThumbnail(String uriThumbnail)
      Deprecated.
    • getLinkTitle

      public String getLinkTitle()
      Deprecated.
      Gets the title of a shared link.
      Returns:
      The link title.
    • setLinkTitle

      public void setLinkTitle(String linkTitle)
      Deprecated.
    • getLinkDescription

      public String getLinkDescription()
      Deprecated.
      Gets the description of a shared link.
      Returns:
      The link description.
    • setLinkDescription

      public void setLinkDescription(String linkDescription)
      Deprecated.
    • compareTo

      public int compareTo(Feed toCompare)
      Deprecated.
      Compares this feed with another feed based on their creation time.
      Specified by:
      compareTo in interface Comparable<Feed>
      Parameters:
      toCompare - The feed to be compared.
      Returns:
      1 if this feed's time is after the other feed's time, -1 if this feed's time is before the other feed's time, 0 if they have the same time.
    • getLinkHost

      public String getLinkHost()
      Deprecated.
      Gets the host of a shared link.
      Returns:
      The link host.
    • setLinkHost

      public void setLinkHost(String linkHost)
      Deprecated.
    • isApplicationFeed

      public boolean isApplicationFeed()
      Deprecated.
      Checks if this feed is an application feed.
      Returns:
      True if it is an application feed, false otherwise.
    • setApplicationFeed

      public void setApplicationFeed(boolean applicationFeed)
      Deprecated.
    • isMultiFileUpload

      public boolean isMultiFileUpload()
      Deprecated.
      Checks if this feed has multiple file uploads.
      Returns:
      True if it has multiple file uploads, false otherwise.
    • setMultiFileUpload

      public void setMultiFileUpload(boolean multiFileUpload)
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object