Package org.gcube.portal.databook.shared
Class Post
- java.lang.Object
-
- org.gcube.portal.databook.shared.Post
-
- All Implemented Interfaces:
Serializable,Comparable<Post>
public class Post extends Object implements Serializable, Comparable<Post>
- Author:
- Massimiliano Assante, ISTI-CNR
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Post()default constructorPost(String key, PostType 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)To use ONLY for USER FeedsPost(String key, PostType 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)To use for USER and ApplicationProfile FeedsPost(String key, PostType 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)for serialization purposes
-
Method Summary
-
-
-
Constructor Detail
-
Post
public Post()
default constructor
-
Post
public Post(String key, PostType 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)
To use ONLY for USER Feeds- Parameters:
key- a UUIDtype- an instance ofPostType entityId- the user or the app unique indentifiertime- whenvreid- a unique vre iduri- optional uriuriThumbnail- the thumbnail for the link posteddescription- optional descriptionprivacy- the privacy level ofPrivacyLevel fullName-email-thumbnailURL- this is the user thumbnail urllinkTitle- optional to be used when posting linkslinkDescription- optional to be used when posting linkslinkHost- option to be used when posting linkgs
-
Post
public Post(String key, PostType 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)
To use for USER and ApplicationProfile Feeds- Parameters:
key- a UUIDtype- an instance ofFeedType entityId- the user or the app unique indentifiertime- whenvreid- a unique vre iduri- optional uriuriThumbnail- the thumbnail for the link posteddescription- optional descriptionprivacy- the privacy level ofPrivacyLevel fullName-email-thumbnailURL- this is the user thumbnail urllinkTitle- optional to be used when posting linkslinkDescription- optional to be used when posting linksapplicationFeed- tell if this is an application feed or a user feed
-
Post
public Post(String key, PostType 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)
for serialization purposes- Parameters:
key- a UUIDtype- an instance ofPostType entityId- the user or the app unique indentifiertime- whenvreid- a unique vre iduri- optional uriuriThumbnail- the thumbnail for the link posteddescription- optional descriptionprivacy- the privacy level ofPrivacyLevel fullName-email-thumbnailURL- this is the user thumbnail urllinkTitle- optional to be used when posting linkslinkDescription- optional to be used when posting links
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- post id
-
setKey
public void setKey(String key)
-
getType
public PostType getType()
-
setType
public void setType(PostType type)
-
getEntityId
public String getEntityId()
- Returns:
- the User or the App id
-
setEntityId
public void setEntityId(String entityId)
set the User or the App id- Parameters:
entityId- the UserId or the AppId id
-
getTime
public Date getTime()
-
setTime
public void setTime(Date time)
-
getVreid
public String getVreid()
-
setVreid
public void setVreid(String vreid)
-
getUri
public String getUri()
-
setUri
public void setUri(String uri)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getPrivacy
public PrivacyLevel getPrivacy()
-
setPrivacy
public void setPrivacy(PrivacyLevel privacy)
-
getFullName
public String getFullName()
-
setFullName
public void setFullName(String fullName)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getThumbnailURL
public String getThumbnailURL()
-
setThumbnailURL
public void setThumbnailURL(String thumbnailURL)
-
getCommentsNo
public String getCommentsNo()
-
setCommentsNo
public void setCommentsNo(String commentsNo)
-
getLikesNo
public String getLikesNo()
-
setLikesNo
public void setLikesNo(String likesNo)
-
getUriThumbnail
public String getUriThumbnail()
-
setUriThumbnail
public void setUriThumbnail(String uriThumbnail)
-
getLinkTitle
public String getLinkTitle()
-
setLinkTitle
public void setLinkTitle(String linkTitle)
-
getLinkDescription
public String getLinkDescription()
-
setLinkDescription
public void setLinkDescription(String linkDescription)
-
compareTo
public int compareTo(Post toCompare)
- Specified by:
compareToin interfaceComparable<Post>
-
getLinkHost
public String getLinkHost()
-
setLinkHost
public void setLinkHost(String linkHost)
-
isApplicationFeed
public boolean isApplicationFeed()
-
setApplicationFeed
public void setApplicationFeed(boolean applicationFeed)
-
isMultiFileUpload
public boolean isMultiFileUpload()
-
setMultiFileUpload
public void setMultiFileUpload(boolean multiFileUpload)
-
-