Class PostClient
- java.lang.Object
-
- org.gcube.social_networking.social_networking_client_library.BaseClient
-
- org.gcube.social_networking.social_networking_client_library.PostClient
-
public class PostClient extends BaseClient
Posts client.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it), Ahmed Ibrahim at ISTI-CNR (ahmed.ibrahim@isti.cnr.it)
-
-
Constructor Summary
Constructors Constructor Description PostClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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>getAllUserPosts()Get all postsList<org.gcube.portal.databook.shared.Post>getHashtagPosts(String hashtag)Get posts hashtagList<org.gcube.portal.databook.shared.Feed>getPostsVRE()Deprecated.use ListgetVREPosts() Get posts vre List<org.gcube.portal.databook.shared.Post>getUserLikedPost()Get liked postsList<String>getUserLikedPostIds()Get liked posts idsList<org.gcube.portal.databook.shared.Post>getUserPostsQuantity(int quantity)Get posts quantityList<org.gcube.portal.databook.shared.Post>getUserPostsSinceDate(long timeInMillis)Get posts since dateList<org.gcube.portal.databook.shared.Post>getVREPosts()Get posts vreorg.gcube.portal.databook.shared.PostwriteApplicationPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)Write post application (token set must belong to the application)org.gcube.portal.databook.shared.PostwriteUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)Write post-
Methods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
-
-
-
Method Detail
-
getUserPostsSinceDate
public List<org.gcube.portal.databook.shared.Post> getUserPostsSinceDate(long timeInMillis)
Get posts since date- Returns:
-
getAllUserPosts
public List<org.gcube.portal.databook.shared.Post> getAllUserPosts()
Get all posts- Returns:
-
getUserPostsQuantity
public List<org.gcube.portal.databook.shared.Post> getUserPostsQuantity(int quantity)
Get posts quantity- Returns:
-
writeUserPost
public org.gcube.portal.databook.shared.Post writeUserPost(org.gcube.social_networking.socialnetworking.model.beans.PostInputBean toWrite)
Write post- Returns:
-
getAllApplicationPosts
public List<org.gcube.portal.databook.shared.Post> getAllApplicationPosts()
Get posts application (token set must belong to the application)- Returns:
-
writeApplicationPost
public 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)- Returns:
-
getPostsVRE
public List<org.gcube.portal.databook.shared.Feed> getPostsVRE()
Deprecated.use ListgetVREPosts() Get posts vre - Returns:
-
getVREPosts
public List<org.gcube.portal.databook.shared.Post> getVREPosts()
Get posts vre- Returns:
-
getHashtagPosts
public List<org.gcube.portal.databook.shared.Post> getHashtagPosts(String hashtag) throws UnsupportedEncodingException
Get posts hashtag- Returns:
- Throws:
UnsupportedEncodingException
-
getUserLikedPost
public List<org.gcube.portal.databook.shared.Post> getUserLikedPost()
Get liked posts- Returns:
-
-