Class LibClient
- java.lang.Object
-
- org.gcube.social_networking.social_networking_client_library.BaseClient
-
- org.gcube.social_networking.social_networking_client_library.LibClient
-
public class LibClient extends BaseClient
-
-
Constructor Summary
Constructors Constructor Description LibClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanaddCommentLib(org.gcube.portal.databook.shared.Comment comment)booleancheckUnreadMessagesNotificationsLib(String userid)booleancheckUnreadNotificationsLib(String userid)booleandeleteCommentLib(String commentid, String postid)booleandeleteHashTagsCommentLib(String commentId, String vreid, List<String> hashtags)booleandeleteHashTagsLib(String feedid, String vreid, List<String> hashtags)booleandeletePostLib(String postid)BooleaneditCommentLib(org.gcube.portal.databook.shared.Comment comment)List<org.gcube.portal.databook.shared.Comment>getAllCommentsByPostIdLib(String postid)List<String>getAllLikedPostIdsByUserLib(String userid)List<org.gcube.portal.databook.shared.Like>getAllLikesByPostLib(String postid)List<org.gcube.portal.databook.shared.Notification>getAllNotificationByUserLib(String userid, int limit)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<String>getAllVREIdsLib()List<org.gcube.portal.databook.shared.Attachment>getAttachmentsByFeedIdLib(String feedId)List<org.gcube.portal.databook.shared.Invite>getInvitedEmailsByVRELib(String vreid, org.gcube.portal.databook.shared.InviteStatus... status)List<org.gcube.portal.databook.shared.Notification>getRangeNotificationsByUserLib(String userid, int from, int quantity)List<org.gcube.portal.databook.shared.Post>getRecentCommentedPostsByUserAndDateLib(String userid, long timeInMillis)List<org.gcube.portal.databook.shared.Comment>getRecentCommentsByUserAndDateLib(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.RangePostsgetRecentPostsByVREAndRangeLib(String vreid, int from, int quantity)List<org.gcube.portal.databook.shared.Post>getRecentPostsByVRELib(String vreid, int quantity)List<org.gcube.portal.databook.shared.Notification>getUnreadNotificationsByUserLib(String userid)List<org.gcube.portal.databook.shared.NotificationChannelType>getUserNotificationChannelsLib(String userid, org.gcube.portal.databook.shared.NotificationType notificationType)Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]>getUserNotificationPreferencesLib(String userid)Map<String,Integer>getVREHashtagsWithOccurrenceFilteredByTimeLib(String vreid, long timestamp)Map<String,Integer>getVREHashtagsWithOccurrenceLib(String vreid)List<org.gcube.portal.databook.shared.Post>getVREPostsByHashtagLib(String vreid, String hashtag)StringisExistingInviteLib(String vreid, String email)booleanlikeLib(org.gcube.portal.databook.shared.Like like)org.gcube.portal.databook.shared.CommentreadCommentByIdLib(String commentid)org.gcube.portal.databook.shared.InvitereadInviteLib(String inviteid)org.gcube.portal.databook.shared.NotificationreadNotificationLib(String notificationid)org.gcube.portal.databook.shared.PostreadPostLib(String postid)booleansaveAppPostLib(org.gcube.portal.databook.shared.Post post)booleansaveAppPostLib(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments)booleansaveAttachmentEntryLib(String postkey, org.gcube.portal.databook.shared.Attachment attachment)booleansaveHashTagsCommentLib(String commentId, String vreid, List<String> hashtags)booleansaveHashTagsLib(String feedid, String vreid, List<String> hashtags)org.gcube.portal.databook.shared.InviteOperationResultsaveInviteLib(org.gcube.portal.databook.shared.Invite invite)booleansaveNotificationLib(org.gcube.portal.databook.shared.Notification n)booleansavePostToVRETimelineLib(String postkey, String vreid)booleansaveUserPostLib(org.gcube.portal.databook.shared.Post post)booleansaveUserPostLib(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments)booleansetAllNotificationReadByUserLib(String userid)booleansetInviteStatusLib(String vreid, String email, org.gcube.portal.databook.shared.InviteStatus status)booleansetNotificationReadLib(String notificationid)booleansetUserNotificationPreferencesLib(String userid, Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels)booleanunlikeLib(String userid, String likeid, String feedid)-
Methods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
-
-
-
Method Detail
-
addCommentLib
public Boolean addCommentLib(org.gcube.portal.databook.shared.Comment comment)
-
readCommentByIdLib
public org.gcube.portal.databook.shared.Comment readCommentByIdLib(String commentid)
-
getAllCommentsByPostIdLib
public List<org.gcube.portal.databook.shared.Comment> getAllCommentsByPostIdLib(String postid)
-
getRecentCommentsByUserAndDateLib
public List<org.gcube.portal.databook.shared.Comment> getRecentCommentsByUserAndDateLib(String userid, long timeInMillis)
-
editCommentLib
public Boolean editCommentLib(org.gcube.portal.databook.shared.Comment comment)
-
deleteHashTagsLib
public boolean deleteHashTagsLib(String feedid, String vreid, List<String> hashtags)
-
saveHashTagsCommentLib
public boolean saveHashTagsCommentLib(String commentId, String vreid, List<String> hashtags)
-
deleteHashTagsCommentLib
public boolean deleteHashTagsCommentLib(String commentId, String vreid, List<String> hashtags)
-
getVREHashtagsWithOccurrenceLib
public Map<String,Integer> getVREHashtagsWithOccurrenceLib(String vreid)
-
getVREHashtagsWithOccurrenceFilteredByTimeLib
public Map<String,Integer> getVREHashtagsWithOccurrenceFilteredByTimeLib(String vreid, long timestamp)
-
getVREPostsByHashtagLib
public List<org.gcube.portal.databook.shared.Post> getVREPostsByHashtagLib(String vreid, String hashtag)
-
saveInviteLib
public org.gcube.portal.databook.shared.InviteOperationResult saveInviteLib(org.gcube.portal.databook.shared.Invite invite)
-
readInviteLib
public org.gcube.portal.databook.shared.Invite readInviteLib(String inviteid)
-
setInviteStatusLib
public boolean setInviteStatusLib(String vreid, String email, org.gcube.portal.databook.shared.InviteStatus status)
-
getInvitedEmailsByVRELib
public List<org.gcube.portal.databook.shared.Invite> getInvitedEmailsByVRELib(String vreid, org.gcube.portal.databook.shared.InviteStatus... status)
-
likeLib
public boolean likeLib(org.gcube.portal.databook.shared.Like like)
-
getAllLikesByPostLib
public List<org.gcube.portal.databook.shared.Like> getAllLikesByPostLib(String postid)
-
saveNotificationLib
public boolean saveNotificationLib(org.gcube.portal.databook.shared.Notification n)
-
readNotificationLib
public org.gcube.portal.databook.shared.Notification readNotificationLib(String notificationid)
-
setNotificationReadLib
public boolean setNotificationReadLib(String notificationid)
-
getAllNotificationByUserLib
public List<org.gcube.portal.databook.shared.Notification> getAllNotificationByUserLib(String userid, int limit)
-
getUnreadNotificationsByUserLib
public List<org.gcube.portal.databook.shared.Notification> getUnreadNotificationsByUserLib(String userid)
-
getRangeNotificationsByUserLib
public List<org.gcube.portal.databook.shared.Notification> getRangeNotificationsByUserLib(String userid, int from, int quantity)
-
setAllNotificationReadByUserLib
public boolean setAllNotificationReadByUserLib(String userid)
-
checkUnreadNotificationsLib
public boolean checkUnreadNotificationsLib(String userid)
-
checkUnreadMessagesNotificationsLib
public boolean checkUnreadMessagesNotificationsLib(String userid)
-
getUserNotificationChannelsLib
public List<org.gcube.portal.databook.shared.NotificationChannelType> getUserNotificationChannelsLib(String userid, org.gcube.portal.databook.shared.NotificationType notificationType)
-
setUserNotificationPreferencesLib
public boolean setUserNotificationPreferencesLib(String userid, Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels)
-
getUserNotificationPreferencesLib
public Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> getUserNotificationPreferencesLib(String userid)
-
saveUserPostLib
public boolean saveUserPostLib(org.gcube.portal.databook.shared.Post post)
-
saveAttachmentEntryLib
public boolean saveAttachmentEntryLib(String postkey, org.gcube.portal.databook.shared.Attachment attachment)
-
saveUserPostLib
public boolean saveUserPostLib(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments)
-
saveAppPostLib
public boolean saveAppPostLib(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments)
-
saveAppPostLib
public boolean saveAppPostLib(org.gcube.portal.databook.shared.Post post)
-
readPostLib
public org.gcube.portal.databook.shared.Post readPostLib(String postid)
-
getRecentPostsByUserAndDateLib
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUserAndDateLib(String userid, long timeinmillis)
-
deletePostLib
public boolean deletePostLib(String postid)
-
getAllPostsByUserLib
public List<org.gcube.portal.databook.shared.Post> getAllPostsByUserLib(String userid)
-
getAllPostsByAppLib
public List<org.gcube.portal.databook.shared.Post> getAllPostsByAppLib(String appid)
-
getRecentCommentedPostsByUserAndDateLib
public List<org.gcube.portal.databook.shared.Post> getRecentCommentedPostsByUserAndDateLib(String userid, long timeInMillis)
-
getAllPortalPrivacyLevelPostsLib
public List<org.gcube.portal.databook.shared.Post> getAllPortalPrivacyLevelPostsLib()
-
getRecentPostsByUserLib
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUserLib(String userid, int quantity)
-
getAllPostsByVRELib
public List<org.gcube.portal.databook.shared.Post> getAllPostsByVRELib(String vreid)
-
getRecentPostsByVRELib
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByVRELib(String vreid, int quantity)
-
getRecentPostsByVREAndRangeLib
public org.gcube.portal.databook.shared.RangePosts getRecentPostsByVREAndRangeLib(String vreid, int from, int quantity)
-
getAttachmentsByFeedIdLib
public List<org.gcube.portal.databook.shared.Attachment> getAttachmentsByFeedIdLib(String feedId)
-
-