|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabookStore
Method Summary | |
---|---|
boolean |
addComment(Comment comment)
add a comment to a feed |
boolean |
approveFriendship(String from,
String to)
userid from approves a friendship to userid to |
boolean |
checkUnreadMessagesNotifications(String userid)
|
boolean |
checkUnreadNotifications(String userid)
|
void |
closeConnection()
close the connection to the underlying database |
boolean |
deleteComment(String commentid,
String feedid)
delete a comment |
boolean |
deleteFeed(String feedid)
delete a Feed from the store |
boolean |
denyFriendship(String from,
String to)
userid from denies a friendship to userid to |
boolean |
editComment(Comment comment)
edit a comment |
List<Comment> |
getAllCommentByFeed(String feedid)
|
List<Feed> |
getAllFeedsByApp(String appid)
|
List<Feed> |
getAllFeedsByUser(String userid)
|
List<Feed> |
getAllFeedsByVRE(String vreid)
|
List<String> |
getAllLikedFeedIdsByUser(String userid)
|
List<Like> |
getAllLikesByFeed(String feedid)
|
List<Notification> |
getAllNotificationByUser(String userid,
int limit)
|
List<Feed> |
getAllPortalPrivacyLevelFeeds()
return all the feeds whose Level is PORTAL |
List<String> |
getFriends(String userid)
|
List<String> |
getPendingFriendRequests(String userid)
|
List<Feed> |
getRecentFeedsByUser(String userid,
int quantity)
return the most recent feeds for this user up to quantity param |
List<Feed> |
getRecentFeedsByVRE(String vreid,
int quantity)
return the most recent feeds for this vre up to quantity param |
List<Notification> |
getUnreadNotificationMessagesByUser(String userid)
return the not yet read notification messages |
List<Notification> |
getUnreadNotificationsByUser(String userid)
return the not yet read notifications (not including messages) |
boolean |
like(Like like)
add a like to a feed |
Feed |
readFeed(String feedid)
read a feed from a given id |
Notification |
readNotification(String notificationid)
read a notification from a given id |
boolean |
requestFriendship(String from,
String to)
userid from requests a friendship to userid to |
boolean |
saveAppFeed(Feed feed)
save a Feed instance in the store |
boolean |
saveFeedToVRETimeline(String feedKey,
String vreid)
save a Feed in the VRES TimeLine in the store |
boolean |
saveNotification(Notification notification)
save a Notification instance in the store |
boolean |
saveUserFeed(Feed feed)
save a Feed instance in the store |
boolean |
setNotificationRead(String notificationidToSet)
set an existing Notification instance in the to read |
boolean |
unlike(String likeid,
String feedid)
unlike a feed |
Method Detail |
---|
boolean requestFriendship(String from, String to)
boolean approveFriendship(String from, String to)
boolean denyFriendship(String from, String to)
List<String> getFriends(String userid)
userid
- the user id you want to know friends
List<String> getPendingFriendRequests(String userid)
userid
- the user id you want to know the pending friend requests
boolean saveUserFeed(Feed feed)
boolean deleteFeed(String feedid) throws FeedIDNotFoundException, PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException
FeedIDNotFoundException
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
ColumnNameNotFoundException
boolean saveFeedToVRETimeline(String feedKey, String vreid) throws FeedIDNotFoundException
feedKey
- feedKeyvreid
- vre identifier
FeedIDNotFoundException
boolean saveAppFeed(Feed feed)
Feed readFeed(String feedid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, FeedIDNotFoundException, ColumnNameNotFoundException
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
List<Feed> getAllFeedsByUser(String userid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, FeedIDNotFoundException, ColumnNameNotFoundException
userid
- user identifier
return all the feeds belonging to the userid
FeedTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
List<Feed> getAllFeedsByApp(String appid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, FeedIDNotFoundException, ColumnNameNotFoundException
appid
- application identifier
return all the feeds belonging to the appid
FeedTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
List<Feed> getAllPortalPrivacyLevelFeeds() throws FeedTypeNotFoundException, ColumnNameNotFoundException, PrivacyLevelTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
List<Feed> getRecentFeedsByUser(String userid, int quantity) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, FeedIDNotFoundException
userid
- user identifierquantity
- the number of most recent feeds for this user
FeedTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
List<Feed> getAllFeedsByVRE(String vreid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, FeedIDNotFoundException
vreid
- vre identifier
return all the feeds belonging to the userid
FeedTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
List<Feed> getRecentFeedsByVRE(String vreid, int quantity) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, FeedIDNotFoundException
vreid
- VRES identifierquantity
- the number of most recent feeds for this vre
FeedTypeNotFoundException
PrivacyLevelTypeNotFoundException
ColumnNameNotFoundException
FeedIDNotFoundException
boolean saveNotification(Notification notification)
boolean setNotificationRead(String notificationidToSet) throws NotificationIDNotFoundException, NotificationTypeNotFoundException, ColumnNameNotFoundException
NotificationIDNotFoundException
NotificationTypeNotFoundException
ColumnNameNotFoundException
Notification readNotification(String notificationid) throws NotificationIDNotFoundException, NotificationTypeNotFoundException, ColumnNameNotFoundException
{@link
- ColumnNameNotFoundException}
{@link
- NotificationIDNotFoundException}
{@link
- NotificationTypeNotFoundException}
NotificationIDNotFoundException
NotificationTypeNotFoundException
ColumnNameNotFoundException
List<Notification> getAllNotificationByUser(String userid, int limit) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException
userid
- user identifierlimit
- set 0 to get everything, an int to get the most -limit- notifications
return all the notifications belonging to the userid up to limit, set 0 to get everything
NotificationTypeNotFoundException
ColumnNameNotFoundException
NotificationIDNotFoundException
List<Notification> getUnreadNotificationsByUser(String userid) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException
userid
- user identifier
NotificationTypeNotFoundException
ColumnNameNotFoundException
NotificationIDNotFoundException
List<Notification> getUnreadNotificationMessagesByUser(String userid) throws NotificationTypeNotFoundException, ColumnNameNotFoundException, NotificationIDNotFoundException
userid
- user identifier
NotificationTypeNotFoundException
ColumnNameNotFoundException
NotificationIDNotFoundException
boolean checkUnreadNotifications(String userid) throws NotificationIDNotFoundException, NotificationTypeNotFoundException, ColumnNameNotFoundException
userid
- user identifier
ColumnNameNotFoundException
NotificationTypeNotFoundException
NotificationIDNotFoundException
boolean checkUnreadMessagesNotifications(String userid) throws NotificationIDNotFoundException, NotificationTypeNotFoundException, ColumnNameNotFoundException
userid
- user identifier
ColumnNameNotFoundException
NotificationTypeNotFoundException
NotificationIDNotFoundException
boolean addComment(Comment comment) throws FeedIDNotFoundException
comment
- the Comment instance to add
FeedIDNotFoundException
List<Comment> getAllCommentByFeed(String feedid)
feedid
- feed identifier
return all the comments belonging to the feedidboolean editComment(Comment comment) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, CommentIDNotFoundException, FeedIDNotFoundException
commentid
- the comment identifier to edit
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
ColumnNameNotFoundException
CommentIDNotFoundException
FeedIDNotFoundException
boolean deleteComment(String commentid, String feedid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, CommentIDNotFoundException, FeedIDNotFoundException
commentid
- the comment identifier to delete
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
ColumnNameNotFoundException
CommentIDNotFoundException
FeedIDNotFoundException
boolean like(Like like) throws FeedIDNotFoundException
the
- like instance
FeedIDNotFoundException
boolean unlike(String likeid, String feedid) throws PrivacyLevelTypeNotFoundException, FeedTypeNotFoundException, ColumnNameNotFoundException, LikeIDNotFoundException, FeedIDNotFoundException
likeid
- the like identifier to delete
PrivacyLevelTypeNotFoundException
FeedTypeNotFoundException
ColumnNameNotFoundException
LikeIDNotFoundException
FeedIDNotFoundException
List<String> getAllLikedFeedIdsByUser(String userid)
userid
- user identifier
return all the feedids a user has likedList<Like> getAllLikesByFeed(String feedid)
feedid
- feed identifier
return all the likes belonging to the feedidvoid closeConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |