public class PostClient extends BaseClient
| Constructor and Description |
|---|
PostClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deletePostLib(String postid) |
List<org.gcube.portal.databook.shared.Post> |
getAllApplicationPosts()
Get posts application (token set must belong to the application)
|
List<org.gcube.portal.databook.shared.Post> |
getAllPortalPrivacyLevelPostsLib() |
List<org.gcube.portal.databook.shared.Post> |
getAllPostsByAppLib(String appid) |
List<org.gcube.portal.databook.shared.Post> |
getAllPostsByUserLib(String userid) |
List<org.gcube.portal.databook.shared.Post> |
getAllPostsByVRELib(String vreid) |
List<org.gcube.portal.databook.shared.Post> |
getAllUserPosts()
Get all posts
|
List<String> |
getAllVREIdsLib() |
List<org.gcube.portal.databook.shared.Attachment> |
getAttachmentsByFeedIdLib(String feedId) |
List<org.gcube.portal.databook.shared.Post> |
getHashtagPosts(String hashtag)
Get posts hashtag
|
List<org.gcube.portal.databook.shared.Feed> |
getPostsVRE()
Deprecated.
use List
|
List<org.gcube.portal.databook.shared.Post> |
getRecentCommentedPostsByUserAndDateLib(String userid,
long timeInMillis) |
List<org.gcube.portal.databook.shared.Post> |
getRecentPostsByUserAndDateLib(String userid,
long timeinmillis) |
List<org.gcube.portal.databook.shared.Post> |
getRecentPostsByUserLib(String userid,
int quantity) |
org.gcube.portal.databook.shared.RangePosts |
getRecentPostsByVREAndRangeLib(String vreid,
int from,
int quantity) |
List<org.gcube.portal.databook.shared.Post> |
getRecentPostsByVRELib(String vreid,
int quantity) |
List<org.gcube.portal.databook.shared.Post> |
getUserLikedPost()
Get liked posts
|
List<String> |
getUserLikedPostIds()
Get liked posts ids
|
List<org.gcube.portal.databook.shared.Post> |
getUserPostsQuantity(int quantity)
Get posts quantity
|
List<org.gcube.portal.databook.shared.Post> |
getUserPostsSinceDate(long timeInMillis)
Get posts since date
|
List<org.gcube.portal.databook.shared.Post> |
getVREPosts()
Get posts vre
|
org.gcube.portal.databook.shared.Post |
readPostLib(String postid) |
boolean |
saveAppPostLib(org.gcube.portal.databook.shared.Post post) |
boolean |
saveAppPostLib(org.gcube.portal.databook.shared.Post post,
List<org.gcube.portal.databook.shared.Attachment> attachments) |
boolean |
savePostToVRETimelineLib(String postkey,
String vreid) |
boolean |
saveUserPostLib(org.gcube.portal.databook.shared.Post post) |
boolean |
saveUserPostLib(org.gcube.portal.databook.shared.Post post,
List<org.gcube.portal.databook.shared.Attachment> attachments) |
org.gcube.portal.databook.shared.Post |
writeApplicationPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
Write post application (token set must belong to the application)
|
org.gcube.portal.databook.shared.Post |
writeUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
Write post
|
getServiceEndpointpublic List<org.gcube.portal.databook.shared.Post> getUserPostsSinceDate(long timeInMillis)
public List<org.gcube.portal.databook.shared.Post> getAllUserPosts()
public List<org.gcube.portal.databook.shared.Post> getUserPostsQuantity(int quantity)
public org.gcube.portal.databook.shared.Post writeUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
public List<org.gcube.portal.databook.shared.Post> getAllApplicationPosts()
public org.gcube.portal.databook.shared.Post writeApplicationPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
public List<org.gcube.portal.databook.shared.Feed> getPostsVRE()
public List<org.gcube.portal.databook.shared.Post> getVREPosts()
public List<org.gcube.portal.databook.shared.Post> getHashtagPosts(String hashtag) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic List<org.gcube.portal.databook.shared.Post> getUserLikedPost()
public boolean saveUserPostLib(org.gcube.portal.databook.shared.Post post)
public boolean saveUserPostLib(org.gcube.portal.databook.shared.Post post,
List<org.gcube.portal.databook.shared.Attachment> attachments)
public boolean saveAppPostLib(org.gcube.portal.databook.shared.Post post,
List<org.gcube.portal.databook.shared.Attachment> attachments)
public boolean saveAppPostLib(org.gcube.portal.databook.shared.Post post)
public org.gcube.portal.databook.shared.Post readPostLib(String postid)
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUserAndDateLib(String userid, long timeinmillis)
public boolean deletePostLib(String postid)
public List<org.gcube.portal.databook.shared.Post> getAllPostsByUserLib(String userid)
public List<org.gcube.portal.databook.shared.Post> getAllPostsByAppLib(String appid)
public List<org.gcube.portal.databook.shared.Post> getRecentCommentedPostsByUserAndDateLib(String userid, long timeInMillis)
public List<org.gcube.portal.databook.shared.Post> getAllPortalPrivacyLevelPostsLib()
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUserLib(String userid, int quantity)
public List<org.gcube.portal.databook.shared.Post> getAllPostsByVRELib(String vreid)
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByVRELib(String vreid, int quantity)
public org.gcube.portal.databook.shared.RangePosts getRecentPostsByVREAndRangeLib(String vreid, int from, int quantity)
public List<org.gcube.portal.databook.shared.Attachment> getAttachmentsByFeedIdLib(String feedId)
Copyright © 2023. All rights reserved.