Package org.gcube.portal.databook.server
Class DBCassandraAstyanaxImpl
java.lang.Object
org.gcube.portal.databook.server.DBCassandraAstyanaxImpl
- All Implemented Interfaces:
DatabookStore
- Author:
- Massimiliano Assante ISTI-CNR, Costantino Perciante ISTI-CNR This class is used for querying and adding data to Cassandra via Astyanax High Level API
-
Constructor Summary
ConstructorsModifierConstructorDescriptionpublic constructor, no dropping schema is allowedprotectedDBCassandraAstyanaxImpl(boolean dropSchema) use this constructor carefully from test classesDBCassandraAstyanaxImpl(String infrastructureName) public constructor, no dropping schema is allowed, infrastructureName is given. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComment(org.gcube.portal.databook.shared.Comment comment) add a comment to a feedbooleanapproveFriendship(String from, String to) userid from approves a friendship to userid tobooleanbooleancheckUnreadNotifications(String userid) voidclose the connection to the underlying databasebooleandeleteComment(String commentid, String feedid) deletes a commentbooleandeleteFeed(String feedId) Deprecated.booleandeleteHashTags(String feedid, String vreid, List<String> hashtags) booleandeleteHashTagsComment(String commentId, String vreid, List<String> hashtags) booleandeletePost(String postid) delete a Feed from the storebooleandenyFriendship(String from, String to) userid from denies a friendship to userid tobooleaneditComment(org.gcube.portal.databook.shared.Comment comment2Edit) edit a commentList<org.gcube.portal.databook.shared.Comment>getAllCommentByFeed(String feedid) Deprecated.List<org.gcube.portal.databook.shared.Comment>getAllCommentByPost(String postid) List<org.gcube.portal.databook.shared.Feed>getAllFeedsByApp(String appid) List<org.gcube.portal.databook.shared.Feed>getAllFeedsByUser(String userid) Deprecated.List<org.gcube.portal.databook.shared.Feed>getAllFeedsByVRE(String vreid) Deprecated.getAllLikedFeedIdsByUser(String userid) Deprecated.List<org.gcube.portal.databook.shared.Feed>getAllLikedFeedsByUser(String userid, int limit) getAllLikedPostIdsByUser(String userid) List<org.gcube.portal.databook.shared.Post>getAllLikedPostsByUser(String userid, int limit) List<org.gcube.portal.databook.shared.Like>getAllLikesByFeed(String feedid) Deprecated.List<org.gcube.portal.databook.shared.Like>getAllLikesByPost(String postid) List<org.gcube.portal.databook.shared.Notification>getAllNotificationByUser(String userid, int limit) List<org.gcube.portal.databook.shared.Feed>Deprecated.List<org.gcube.portal.databook.shared.Post>return all the feeds whose Level is PORTALList<org.gcube.portal.databook.shared.Post>getAllPostsByApp(String appid) List<org.gcube.portal.databook.shared.Post>getAllPostsByUser(String userid) List<org.gcube.portal.databook.shared.Post>getAllPostsByVRE(String vreid) Retrieve all the ids of the vreList<org.gcube.portal.databook.shared.Attachment>getAttachmentsByFeedId(String feedId) getFriends(String userid) List<org.gcube.portal.databook.shared.Invite>getInvitedEmailsByVRE(String vreid, org.gcube.portal.databook.shared.InviteStatus... status) Use to get the list of invites per VREgetPendingFriendRequests(String userid) List<org.gcube.portal.databook.shared.Notification>getRangeNotificationsByUser(String userid, int from, int quantity) List<org.gcube.portal.databook.shared.Feed>getRecentCommentedFeedsByUserAndDate(String userid, long timeInMillis) Deprecated.List<org.gcube.portal.databook.shared.Post>getRecentCommentedPostsByUserAndDate(String userid, long timeInMillis) List<org.gcube.portal.databook.shared.Comment>getRecentCommentsByUserAndDate(String userid, long timeInMillis) List<org.gcube.portal.databook.shared.Feed>getRecentFeedsByUser(String userid, int quantity) Deprecated.List<org.gcube.portal.databook.shared.Feed>getRecentFeedsByUserAndDate(String userid, long timeInMillis) Deprecated.List<org.gcube.portal.databook.shared.Feed>getRecentFeedsByVRE(String vreid, int quantity) Deprecated.org.gcube.portal.databook.shared.RangeFeedsgetRecentFeedsByVREAndRange(String vreid, int from, int quantity) return the most recent posts for this vre up to quantity param and the last index of the feeds in the timeline lastReturnedFeedTimelineIndex is usuful to know from where to start the range the second time you ask because there are deletionsList<org.gcube.portal.databook.shared.Feed>getRecentLikedFeedsByUserAndDate(String userid, long timeInMillis) List<org.gcube.portal.databook.shared.Post>getRecentLikedPostsByUserAndDate(String userid, long timeInMillis) List<org.gcube.portal.databook.shared.Post>getRecentPostsByUser(String userid, int quantity) return the most recent feeds for this user up to quantity paramList<org.gcube.portal.databook.shared.Post>getRecentPostsByUserAndDate(String userid, long timeInMillis) List<org.gcube.portal.databook.shared.Post>getRecentPostsByVRE(String vreid, int quantity) return the most recent posts for this vre up to quantity paramorg.gcube.portal.databook.shared.RangePostsgetRecentPostsByVREAndRange(String vreid, int from, int quantity) return the most recent posts for this vre up to quantity param and the last index of the posts in the timeline lastReturnedPostTimelineIndex is useful to know from where to start the range the next time you ask, because there are deletionsList<org.gcube.portal.databook.shared.Notification>getUnreadNotificationsByUser(String userid) return the not yet read notifications (not including messages)List<org.gcube.portal.databook.shared.NotificationChannelType>getUserNotificationChannels(String userid, org.gcube.portal.databook.shared.NotificationType notificationType) return the channels a user chose for being notified for a given notification typeMap<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> getUserNotificationPreferences(String userid) get the notification preferences map (enableor disable the channels to be used for notifying the user)List<org.gcube.portal.databook.shared.Feed>getVREFeedsByHashtag(String vreid, String hashtag) get a map of vre hashtags where the key is the hashtag and the value is the occurrence of the hashtag in the VREgetVREHashtagsWithOccurrenceFilteredByTime(String vreid, long timestamp) get a map of vre hashtags where the key is the hashtag and the value is the occurrence of the hashtag in the VREList<org.gcube.portal.databook.shared.Post>getVREPostsByHashtag(String vreid, String hashtag) isExistingInvite(String vreid, String email) booleanlike(org.gcube.portal.databook.shared.Like like) add a like to a feedorg.gcube.portal.databook.shared.CommentreadCommentById(String commentId) org.gcube.portal.databook.shared.FeedDeprecated.org.gcube.portal.databook.shared.InvitereadInvite(String inviteid) read an invite from a given idorg.gcube.portal.databook.shared.NotificationreadNotification(String notificationid) read a notification from a given idorg.gcube.portal.databook.shared.Postread a feed from a given idbooleanrequestFriendship(String from, String to) userid from requests a friendship to userid tobooleansaveAppFeed(org.gcube.portal.databook.shared.Feed post) Deprecated.booleansaveAppFeed(org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Attachment> attachments) Deprecated.booleansaveAppPost(org.gcube.portal.databook.shared.Post post) save a Post instance in the storebooleansaveAppPost(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments) Save a Post instance in the store Use this if your app needs to attach more than one file to the postbooleansaveFeedToVRETimeline(String feedKey, String vreid) Deprecated.booleansaveHashTags(String feedid, String vreid, List<String> hashtags) booleansaveHashTagsComment(String commentId, String vreid, List<String> hashtags) org.gcube.portal.databook.shared.InviteOperationResultsaveInvite(org.gcube.portal.databook.shared.Invite invite) Save the invite for a given email into a given vrebooleansaveNotification(org.gcube.portal.databook.shared.Notification n) save a Notification instance in the storebooleansavePostToVRETimeline(String postKey, String vreid) save a post in the VRES TimeLine in the storebooleansaveUserFeed(org.gcube.portal.databook.shared.Feed post) Deprecated.booleansaveUserFeed(org.gcube.portal.databook.shared.Feed feed, List<org.gcube.portal.databook.shared.Attachment> attachments) Deprecated.booleansaveUserPost(org.gcube.portal.databook.shared.Post post) save a Post instance in the storebooleansaveUserPost(org.gcube.portal.databook.shared.Post post, List<org.gcube.portal.databook.shared.Attachment> attachments) Save a Post instance in the store having more than one attachment Use this if you need to attach more than one file to the postbooleansetAllNotificationReadByUser(String userid) This is a fast way to set all notification to read quicklybooleansetInviteStatus(String vreid, String email, org.gcube.portal.databook.shared.InviteStatus status) set the status of an invite, seeInviteStatusbooleansetNotificationRead(String notificationidToSet) set an existing Notification instance in the to readbooleansetUserNotificationPreferences(String userid, Map<org.gcube.portal.databook.shared.NotificationType, org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels) set the notification preferences map (enable or disable the channels to be used for notifying the user)booleanunlike a feed
-
Constructor Details
-
DBCassandraAstyanaxImpl
protected DBCassandraAstyanaxImpl(boolean dropSchema) use this constructor carefully from test classes- Parameters:
dropSchema- set true if you want do drop the current and set up new one
-
DBCassandraAstyanaxImpl
public DBCassandraAstyanaxImpl()public constructor, no dropping schema is allowed -
DBCassandraAstyanaxImpl
public constructor, no dropping schema is allowed, infrastructureName is given.
-
-
Method Details
-
requestFriendship
userid from requests a friendship to userid to- Specified by:
requestFriendshipin interfaceDatabookStore- Returns:
- true if everything went fine
-
approveFriendship
userid from approves a friendship to userid to- Specified by:
approveFriendshipin interfaceDatabookStore- Returns:
- true if everything went fine
-
denyFriendship
userid from denies a friendship to userid to- Specified by:
denyFriendshipin interfaceDatabookStore- Returns:
- true if everything went fine
-
getFriends
- Specified by:
getFriendsin interfaceDatabookStore- Parameters:
userid- the user id you want to know friends- Returns:
- a List of userid representing the friends for the given userid
-
getPendingFriendRequests
- Specified by:
getPendingFriendRequestsin interfaceDatabookStore- Parameters:
userid- the user id you want to know the pending friend requests- Returns:
- a List of userid representing the friends for the given userid
-
saveFeedToVRETimeline
@Deprecated public boolean saveFeedToVRETimeline(String feedKey, String vreid) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Deprecated.Save a post in the VRES TimeLine in the store- Specified by:
saveFeedToVRETimelinein interfaceDatabookStore- Parameters:
feedKey- feedKeyvreid- vre identifier- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
savePostToVRETimeline
public boolean savePostToVRETimeline(String postKey, String vreid) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException save a post in the VRES TimeLine in the store- Specified by:
savePostToVRETimelinein interfaceDatabookStore- Parameters:
postKey- the post idvreid- vre identifier- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
readFeed
@Deprecated public org.gcube.portal.databook.shared.Feed readFeed(String feedid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException Deprecated.- Specified by:
readFeedin interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
readPost
public org.gcube.portal.databook.shared.Post readPost(String postid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException read a feed from a given id- Specified by:
readPostin interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentFeedsByUserAndDate
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getRecentFeedsByUserAndDate(String userid, long timeInMillis) throws IllegalArgumentException Deprecated.- Specified by:
getRecentFeedsByUserAndDatein interfaceDatabookStore- Parameters:
userid- user identifiertimeInMillis- time in milliseconds from which you want to start retrieve the feeds- Returns:
- the number of feeds in the range from: today to: timeInMillis
- Throws:
IllegalArgumentException
-
getRecentPostsByUserAndDate
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUserAndDate(String userid, long timeInMillis) throws IllegalArgumentException - Specified by:
getRecentPostsByUserAndDatein interfaceDatabookStore- Parameters:
userid- user identifiertimeInMillis- time in milliseconds from which you want to start retrieve the feeds- Returns:
- the number of feeds in the range from: today to: timeInMillis
- Throws:
IllegalArgumentException
-
deleteFeed
@Deprecated public boolean deleteFeed(String feedId) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException Deprecated.Delete a Feed from the store- Specified by:
deleteFeedin interfaceDatabookStore- Returns:
- true if everything went fine
- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
deletePost
public boolean deletePost(String postid) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException delete a Feed from the store- Specified by:
deletePostin interfaceDatabookStore- Returns:
- true if everything went fine
- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
getAllFeedsByUser
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getAllFeedsByUser(String userid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Deprecated.- Specified by:
getAllFeedsByUserin interfaceDatabookStore- Parameters:
userid- user identifier return all the feeds belonging to the userid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllPostsByUser
public List<org.gcube.portal.databook.shared.Post> getAllPostsByUser(String userid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllPostsByUserin interfaceDatabookStore- Parameters:
userid- user identifier return all the feeds belonging to the userid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllFeedsByApp
public List<org.gcube.portal.databook.shared.Feed> getAllFeedsByApp(String appid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllFeedsByAppin interfaceDatabookStore- Parameters:
appid- application identifier return all the feeds belonging to the appid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllPostsByApp
public List<org.gcube.portal.databook.shared.Post> getAllPostsByApp(String appid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllPostsByAppin interfaceDatabookStore- Parameters:
appid- application identifier return all the feeds belonging to the appid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentCommentedFeedsByUserAndDate
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getRecentCommentedFeedsByUserAndDate(String userid, long timeInMillis) throws Exception Deprecated.- Specified by:
getRecentCommentedFeedsByUserAndDatein interfaceDatabookStore- Parameters:
userid- the user identifier like andrea.rossitimeInMillis- the initial time in millis to be considered- Returns:
- a list of feeds commented by userid starting from timeInMillis
- Throws:
Exception
-
getRecentCommentedPostsByUserAndDate
public List<org.gcube.portal.databook.shared.Post> getRecentCommentedPostsByUserAndDate(String userid, long timeInMillis) throws Exception - Specified by:
getRecentCommentedPostsByUserAndDatein interfaceDatabookStore- Parameters:
userid- the user identifier like andrea.rossitimeInMillis- the initial time in millis to be considered- Returns:
- a list of feeds commented by userid starting from timeInMillis
- Throws:
Exception
-
getAllPortalPrivacyLevelFeeds
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getAllPortalPrivacyLevelFeeds() throws org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionDeprecated.- Specified by:
getAllPortalPrivacyLevelFeedsin interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException
-
getAllPortalPrivacyLevelPosts
public List<org.gcube.portal.databook.shared.Post> getAllPortalPrivacyLevelPosts() throws org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionDescription copied from interface:DatabookStorereturn all the feeds whose Level is PORTAL- Specified by:
getAllPortalPrivacyLevelPostsin interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException
-
getRecentFeedsByUser
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getRecentFeedsByUser(String userid, int quantity) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Deprecated.return the most recent feeds for this user up to quantity param- Specified by:
getRecentFeedsByUserin interfaceDatabookStore- Parameters:
userid- user identifierquantity- the number of most recent feeds for this user- Returns:
- a
Listof most recent feeds for this user - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentPostsByUser
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByUser(String userid, int quantity) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Description copied from interface:DatabookStorereturn the most recent feeds for this user up to quantity param- Specified by:
getRecentPostsByUserin interfaceDatabookStore- Parameters:
userid- user identifierquantity- the number of most recent feeds for this user- Returns:
- a
Listof most recent feeds for this user - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllFeedsByVRE
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getAllFeedsByVRE(String vreid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Deprecated.- Specified by:
getAllFeedsByVREin interfaceDatabookStore- Parameters:
vreid- vre identifier return all the feeds belonging to the userid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllPostsByVRE
public List<org.gcube.portal.databook.shared.Post> getAllPostsByVRE(String vreid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllPostsByVREin interfaceDatabookStore- Parameters:
vreid- vre identifier return all the feeds belonging to the userid- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentFeedsByVRE
@Deprecated public List<org.gcube.portal.databook.shared.Feed> getRecentFeedsByVRE(String vreid, int quantity) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Deprecated.- Specified by:
getRecentFeedsByVREin interfaceDatabookStore- Parameters:
vreid- VRES identifierquantity- the number of most recent feeds for this vre- Returns:
- a
Listof most recent feeds for this vre - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentPostsByVRE
public List<org.gcube.portal.databook.shared.Post> getRecentPostsByVRE(String vreid, int quantity) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException Description copied from interface:DatabookStorereturn the most recent posts for this vre up to quantity param- Specified by:
getRecentPostsByVREin interfaceDatabookStore- Parameters:
vreid- VRES identifierquantity- the number of most recent posts for this vre- Returns:
- a
Listof most recent posts for this vre - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentFeedsByVREAndRange
public org.gcube.portal.databook.shared.RangeFeeds getRecentFeedsByVREAndRange(String vreid, int from, int quantity) throws IllegalArgumentException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException return the most recent posts for this vre up to quantity param and the last index of the feeds in the timeline lastReturnedFeedTimelineIndex is usuful to know from where to start the range the second time you ask because there are deletions- Specified by:
getRecentFeedsByVREAndRangein interfaceDatabookStore- Parameters:
vreid- VRES identifierfrom- the range start (most recent feeds for this vre) has to be greater than 0quantity- the number of most recent feeds for this vre starting from "from" param- Returns:
- a
RangeFeedscontaining of most recent feeds for this vre - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionIllegalArgumentExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getRecentPostsByVREAndRange
public org.gcube.portal.databook.shared.RangePosts getRecentPostsByVREAndRange(String vreid, int from, int quantity) throws IllegalArgumentException, org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException return the most recent posts for this vre up to quantity param and the last index of the posts in the timeline lastReturnedPostTimelineIndex is useful to know from where to start the range the next time you ask, because there are deletions- Specified by:
getRecentPostsByVREAndRangein interfaceDatabookStore- Parameters:
vreid- VRES identifierfrom- the range start (most recent feeds for this vre) has to be greater than 0quantity- the number of most recent feeds for this vre starting from "from" param- Returns:
- a
RangePostscontaining of most recent feeds for this vre - Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionIllegalArgumentExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
readNotification
public org.gcube.portal.databook.shared.Notification readNotification(String notificationid) throws org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException, org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException read a notification from a given id- Specified by:
readNotificationin interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException- if the notification ID is not foundorg.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException- if the notification type is not foundorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- if a column name is not found
-
setNotificationRead
public boolean setNotificationRead(String notificationidToSet) throws org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException, org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException set an existing Notification instance in the to read- Specified by:
setNotificationReadin interfaceDatabookStore- Returns:
- true if everything went fine
- Throws:
org.gcube.portal.databook.shared.ex.NotificationIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.NotificationTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
getAllNotificationByUser
public List<org.gcube.portal.databook.shared.Notification> getAllNotificationByUser(String userid, int limit) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException - Specified by:
getAllNotificationByUserin interfaceDatabookStore- Parameters:
userid- user identifierlimit- set 0 to get everything, an int to get the most recent -limit- notifications return all the notifications belonging to the userid up to limit, set 0 to get everything- Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
getUnreadNotificationsByUser
public List<org.gcube.portal.databook.shared.Notification> getUnreadNotificationsByUser(String userid) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException return the not yet read notifications (not including messages)- Specified by:
getUnreadNotificationsByUserin interfaceDatabookStore- Parameters:
userid- user identifier- Returns:
- a
Listof not yet read notifications for this user - Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.NotificationIDNotFoundException
-
getRangeNotificationsByUser
public List<org.gcube.portal.databook.shared.Notification> getRangeNotificationsByUser(String userid, int from, int quantity) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException - Specified by:
getRangeNotificationsByUserin interfaceDatabookStore- Parameters:
userid- user identifierfrom- the range start has to be greater than 0quantity- the number of most recent notifications for this user starting from "from" param- Returns:
- all the notifications for the userid in the range requested
- Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.NotificationIDNotFoundException
-
setAllNotificationReadByUser
public boolean setAllNotificationReadByUser(String userid) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException This is a fast way to set all notification to read quickly- Specified by:
setAllNotificationReadByUserin interfaceDatabookStore- Returns:
- true if everything went fine
- Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException- if the notification type is not foundorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- if a column name is not found
-
checkUnreadNotifications
public boolean checkUnreadNotifications(String userid) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException - Specified by:
checkUnreadNotificationsin interfaceDatabookStore- Parameters:
userid- user identifier- Returns:
- true if there are unread notifications (not including messages), false if they are all read
- Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
checkUnreadMessagesNotifications
public boolean checkUnreadMessagesNotifications(String userid) throws org.gcube.portal.databook.shared.ex.NotificationIDNotFoundException, org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException - Specified by:
checkUnreadMessagesNotificationsin interfaceDatabookStore- Parameters:
userid- user identifier- Returns:
- true if there are unread messages notifications (including messages), false if they are all read
- Throws:
org.gcube.portal.databook.shared.ex.NotificationIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException- self explainingorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundException
-
setUserNotificationPreferences
public boolean setUserNotificationPreferences(String userid, Map<org.gcube.portal.databook.shared.NotificationType, org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels) set the notification preferences map (enable or disable the channels to be used for notifying the user)- Specified by:
setUserNotificationPreferencesin interfaceDatabookStore- Parameters:
userid- user identifierenabledChannels- a map of the channels to which reach the user per notification, empty array or null values to set the key notification type off- Returns:
- true if everything was fine
-
getUserNotificationPreferences
public Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> getUserNotificationPreferences(String userid) throws org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException, org.gcube.portal.databook.shared.ex.NotificationChannelTypeNotFoundException get the notification preferences map (enableor disable the channels to be used for notifying the user) by default Workspace and Calendar Notifications are set to Portal- Specified by:
getUserNotificationPreferencesin interfaceDatabookStore- Parameters:
userid- user identifier- Returns:
- the map
- Throws:
org.gcube.portal.databook.shared.ex.NotificationTypeNotFoundException- self explainingorg.gcube.portal.databook.shared.ex.NotificationChannelTypeNotFoundException- self explaining
-
readCommentById
public org.gcube.portal.databook.shared.Comment readCommentById(String commentId) throws org.gcube.portal.databook.shared.ex.CommentIDNotFoundException - Specified by:
readCommentByIdin interfaceDatabookStore- Parameters:
commentId- comment unique identifier- Returns:
- the comment belonging to the commentId
- Throws:
org.gcube.portal.databook.shared.ex.CommentIDNotFoundException
-
getAllCommentByFeed
@Deprecated public List<org.gcube.portal.databook.shared.Comment> getAllCommentByFeed(String feedid) Deprecated.- Specified by:
getAllCommentByFeedin interfaceDatabookStore- Parameters:
feedid- feed identifier return all the comments belonging to the feedid
-
getAllCommentByPost
- Specified by:
getAllCommentByPostin interfaceDatabookStore- Parameters:
postid- the post identifier return all the comments belonging to the postid
-
getRecentCommentsByUserAndDate
public List<org.gcube.portal.databook.shared.Comment> getRecentCommentsByUserAndDate(String userid, long timeInMillis) throws Exception - Specified by:
getRecentCommentsByUserAndDatein interfaceDatabookStore- Parameters:
userid- user identifiertimeInMillis- time in milliseconds from which you want to start retrieve the feeds- Returns:
- a list of comments (sorted starting from the most recent one) made by the user since timeInMillis up to now
- Throws:
Exception
-
deleteComment
public boolean deleteComment(String commentid, String feedid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.CommentIDNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException deletes a comment- Specified by:
deleteCommentin interfaceDatabookStore- Parameters:
commentid- the comment identifier to deletefeedid- the feedid to which the comment is associated- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.CommentIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
unlike
public boolean unlike(String userid, String likeid, String feedid) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.LikeIDNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException unlike a feed- Specified by:
unlikein interfaceDatabookStore- Parameters:
userid- user identifierlikeid- the like identifier to deletefeedid- the feedid to which the comment is associated- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.ColumnNameNotFoundExceptionorg.gcube.portal.databook.shared.ex.LikeIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
getAllLikedFeedIdsByUser
Deprecated.- Specified by:
getAllLikedFeedIdsByUserin interfaceDatabookStore- Parameters:
userid- user identifier return all the feedids a user has liked
-
getAllLikedPostIdsByUser
- Specified by:
getAllLikedPostIdsByUserin interfaceDatabookStore- Parameters:
userid- user identifier return all the feedids a user has liked
-
getAllLikedFeedsByUser
public List<org.gcube.portal.databook.shared.Feed> getAllLikedFeedsByUser(String userid, int limit) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllLikedFeedsByUserin interfaceDatabookStore- Parameters:
userid- user identifierlimit- set 0 to get everything, an int to get the most recent -limit- liked feeds- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException- .org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- .org.gcube.portal.databook.shared.ex.FeedIDNotFoundException- .
-
getAllLikedPostsByUser
public List<org.gcube.portal.databook.shared.Post> getAllLikedPostsByUser(String userid, int limit) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAllLikedPostsByUserin interfaceDatabookStore- Parameters:
userid- user identifierlimit- set 0 to get everything, an int to get the most recent -limit- liked posts- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException- .org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- .org.gcube.portal.databook.shared.ex.FeedIDNotFoundException- .
-
getRecentLikedFeedsByUserAndDate
public List<org.gcube.portal.databook.shared.Feed> getRecentLikedFeedsByUserAndDate(String userid, long timeInMillis) throws IllegalArgumentException - Specified by:
getRecentLikedFeedsByUserAndDatein interfaceDatabookStore- Parameters:
userid- user identifiertimeInMillis- time in milliseconds from which you want to start retrieve the feeds- Returns:
- the likes made to feeds in the range from: today to: timeInMillis
- Throws:
IllegalArgumentException
-
getRecentLikedPostsByUserAndDate
public List<org.gcube.portal.databook.shared.Post> getRecentLikedPostsByUserAndDate(String userid, long timeInMillis) throws IllegalArgumentException - Specified by:
getRecentLikedPostsByUserAndDatein interfaceDatabookStore- Parameters:
userid- user identifiertimeInMillis- time in milliseconds from which you want to start retrieve the feeds- Returns:
- the likes made to feeds in the range from: today to: timeInMillis
- Throws:
IllegalArgumentException
-
getAllLikesByFeed
Deprecated.- Specified by:
getAllLikesByFeedin interfaceDatabookStore- Parameters:
feedid- postid identifier return all the likes belonging to the postid
-
getAllLikesByPost
- Specified by:
getAllLikesByPostin interfaceDatabookStore- Parameters:
postid- postid identifier return all the likes belonging to the postid
-
saveHashTags
public boolean saveHashTags(String feedid, String vreid, List<String> hashtags) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
saveHashTagsin interfaceDatabookStore- Parameters:
feedid- the postid to which the hashtag is associatedvreid- VRE identifierhashtags- the hashtag including the '#'- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
deleteHashTags
public boolean deleteHashTags(String feedid, String vreid, List<String> hashtags) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
deleteHashTagsin interfaceDatabookStore- Parameters:
feedid- the postid to which the hashtag is associatedvreid- VRE identifierhashtags- the hashtag including the '#'- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
saveHashTagsComment
public boolean saveHashTagsComment(String commentId, String vreid, List<String> hashtags) throws org.gcube.portal.databook.shared.ex.CommentIDNotFoundException - Specified by:
saveHashTagsCommentin interfaceDatabookStore- Parameters:
commentId- the commentId to which the hashtag is associatedvreid- VRE identifierhashtags- the hashtag including the '#'- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.CommentIDNotFoundException
-
deleteHashTagsComment
public boolean deleteHashTagsComment(String commentId, String vreid, List<String> hashtags) throws org.gcube.portal.databook.shared.ex.CommentIDNotFoundException - Specified by:
deleteHashTagsCommentin interfaceDatabookStore- Parameters:
commentId- the commentId to which the hashtag is associatedvreid- VRE identifierhashtags- the hashtag including the '#'- Returns:
- true if success, false otherwise
- Throws:
org.gcube.portal.databook.shared.ex.CommentIDNotFoundException
-
getVREHashtagsWithOccurrence
get a map of vre hashtags where the key is the hashtag and the value is the occurrence of the hashtag in the VRE- Specified by:
getVREHashtagsWithOccurrencein interfaceDatabookStore- Parameters:
vreid- vre identifier (scope)- Returns:
- a HashMap>String, Integer< of vre Hashtags associated with their occurrence
-
getVREHashtagsWithOccurrenceFilteredByTime
get a map of vre hashtags where the key is the hashtag and the value is the occurrence of the hashtag in the VRE- Specified by:
getVREHashtagsWithOccurrenceFilteredByTimein interfaceDatabookStore- Parameters:
vreid- vre identifier (scope)timestamp- do not consider hashtags used before timestamp- Returns:
- a HashMap>String, Integer< of vre Hashtags associated with their occurrence
-
getVREFeedsByHashtag
public List<org.gcube.portal.databook.shared.Feed> getVREFeedsByHashtag(String vreid, String hashtag) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException - Specified by:
getVREFeedsByHashtagin interfaceDatabookStore- Parameters:
vreid- VRE identifierhashtag- the hashtag to look for including the '#', it is case sensitive- Returns:
- all the feeds having the hashtag passed as parameter
- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException- .org.gcube.portal.databook.shared.ex.FeedIDNotFoundException- .org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- .
-
getVREPostsByHashtag
public List<org.gcube.portal.databook.shared.Post> getVREPostsByHashtag(String vreid, String hashtag) throws org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedTypeNotFoundException, org.gcube.portal.databook.shared.ex.FeedIDNotFoundException, org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException - Specified by:
getVREPostsByHashtagin interfaceDatabookStore- Parameters:
vreid- VRE identifierhashtag- the hashtag to look for including the '#', it is case sensitive- Returns:
- all the feeds having the hashtag passed as parameter
- Throws:
org.gcube.portal.databook.shared.ex.PrivacyLevelTypeNotFoundExceptionorg.gcube.portal.databook.shared.ex.FeedTypeNotFoundException- .org.gcube.portal.databook.shared.ex.FeedIDNotFoundException- .org.gcube.portal.databook.shared.ex.ColumnNameNotFoundException- .
-
isExistingInvite
- Specified by:
isExistingInvitein interfaceDatabookStore- Parameters:
vreid- the environment where you want to check the inviteemail- the email of the invite to check in the environmnet- Returns:
- the InviteId if present, null otherwise
-
readInvite
public org.gcube.portal.databook.shared.Invite readInvite(String inviteid) throws org.gcube.portal.databook.shared.ex.InviteIDNotFoundException, org.gcube.portal.databook.shared.ex.InviteStatusNotFoundException read an invite from a given id- Specified by:
readInvitein interfaceDatabookStore- Throws:
org.gcube.portal.databook.shared.ex.InviteIDNotFoundExceptionorg.gcube.portal.databook.shared.ex.InviteStatusNotFoundException
-
getAttachmentsByFeedId
public List<org.gcube.portal.databook.shared.Attachment> getAttachmentsByFeedId(String feedId) throws org.gcube.portal.databook.shared.ex.FeedIDNotFoundException - Specified by:
getAttachmentsByFeedIdin interfaceDatabookStore- Returns:
- the list of attachments of the feed feedId, starting from the second one (first attachment is included in Feed instance already)
- Throws:
org.gcube.portal.databook.shared.ex.FeedIDNotFoundException
-
closeConnection
public void closeConnection()close the connection to the underlying database- Specified by:
closeConnectionin interfaceDatabookStore
-
getAllVREIds
Description copied from interface:DatabookStoreRetrieve all the ids of the vre- Specified by:
getAllVREIdsin interfaceDatabookStore- Returns:
- the set of ids of the vre available or empty list in case of errors.
-