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
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.
      To use ONLY for USER Feeds
      Parameters:
      key - a UUID
      type - an instance of FeedType
      entityId - the user or the app unique indentifier
      time - when
      vreid - a unique vre id
      uri - optional uri
      uriThumbnail - the thumbnail for the link posted
      description - optional description
      privacy - the privacy level of PrivacyLevel
      fullName -
      email -
      thumbnailURL - this is the user thumbnail url
      linkTitle - optional to be used when posting links
      linkDescription - optional to be used when posting links
      linkHost - option to be used when posting linkgs
    • 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.
      To use for USER and ApplicationProfile Feeds
      Parameters:
      key - a UUID
      type - an instance of FeedType
      entityId - the user or the app unique indentifier
      time - when
      vreid - a unique vre id
      uri - optional uri
      uriThumbnail - the thumbnail for the link posted
      description - optional description
      privacy - the privacy level of PrivacyLevel
      fullName -
      email -
      thumbnailURL - this is the user thumbnail url
      linkTitle - optional to be used when posting links
      linkDescription - optional to be used when posting links
      applicationFeed - tell if this is an application feed or a user 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.
      for serialization purposes
      Parameters:
      key - a UUID
      type - an instance of FeedType
      entityId - the user or the app unique indentifier
      time - when
      vreid - a unique vre id
      uri - optional uri
      uriThumbnail - the thumbnail for the link posted
      description - optional description
      privacy - the privacy level of PrivacyLevel
      fullName -
      email -
      thumbnailURL - this is the user thumbnail url
      linkTitle - optional to be used when posting links
      linkDescription - optional to be used when posting links
  • Method Details

    • getKey

      public String getKey()
      Deprecated.
      Returns:
      the key
    • setKey

      public void setKey(String key)
      Deprecated.
    • getType

      public FeedType getType()
      Deprecated.
    • setType

      public void setType(FeedType type)
      Deprecated.
    • getEntityId

      public String getEntityId()
      Deprecated.
      Returns:
      the User or the App id
    • setEntityId

      public void setEntityId(String entityId)
      Deprecated.
      set the User or the App id
      Parameters:
      entityId - the UserId or the AppId id
    • getTime

      public Date getTime()
      Deprecated.
    • setTime

      public void setTime(Date time)
      Deprecated.
    • getVreid

      public String getVreid()
      Deprecated.
    • setVreid

      public void setVreid(String vreid)
      Deprecated.
    • getUri

      public String getUri()
      Deprecated.
    • setUri

      public void setUri(String uri)
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • getPrivacy

      public PrivacyLevel getPrivacy()
      Deprecated.
    • setPrivacy

      public void setPrivacy(PrivacyLevel privacy)
      Deprecated.
    • getFullName

      public String getFullName()
      Deprecated.
    • setFullName

      public void setFullName(String fullName)
      Deprecated.
    • getEmail

      public String getEmail()
      Deprecated.
    • setEmail

      public void setEmail(String email)
      Deprecated.
    • getThumbnailURL

      public String getThumbnailURL()
      Deprecated.
    • setThumbnailURL

      public void setThumbnailURL(String thumbnailURL)
      Deprecated.
    • getCommentsNo

      public String getCommentsNo()
      Deprecated.
    • setCommentsNo

      public void setCommentsNo(String commentsNo)
      Deprecated.
    • getLikesNo

      public String getLikesNo()
      Deprecated.
    • setLikesNo

      public void setLikesNo(String likesNo)
      Deprecated.
    • getUriThumbnail

      public String getUriThumbnail()
      Deprecated.
    • setUriThumbnail

      public void setUriThumbnail(String uriThumbnail)
      Deprecated.
    • getLinkTitle

      public String getLinkTitle()
      Deprecated.
    • setLinkTitle

      public void setLinkTitle(String linkTitle)
      Deprecated.
    • getLinkDescription

      public String getLinkDescription()
      Deprecated.
    • setLinkDescription

      public void setLinkDescription(String linkDescription)
      Deprecated.
    • compareTo

      public int compareTo(Feed toCompare)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<Feed>
    • getLinkHost

      public String getLinkHost()
      Deprecated.
    • setLinkHost

      public void setLinkHost(String linkHost)
      Deprecated.
    • isApplicationFeed

      public boolean isApplicationFeed()
      Deprecated.
    • setApplicationFeed

      public void setApplicationFeed(boolean applicationFeed)
      Deprecated.
    • isMultiFileUpload

      public boolean isMultiFileUpload()
      Deprecated.
    • setMultiFileUpload

      public void setMultiFileUpload(boolean multiFileUpload)
      Deprecated.
    • toString

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