org.gcube.applicationsupportlayer.social
Interface NotificationManager

All Known Implementing Classes:
AslNotificationManager

public interface NotificationManager

Version:
0.1 Dec 2012
Author:
Massimiliano Assante, ISTI-CNR

Method Summary
 boolean notifyAddedItem(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem newItem)
          use to notify a user he got a workspace item new in some of his workspace shared folder
 boolean notifyCommentReply(String userIdToNotify, org.gcube.portal.databook.shared.Comment comment)
          use to notify a user that commented on a feed (Not his) that someone commented too
 boolean notifyFolderAddedUser(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder, String newAddedUserId)
          use to notify a user that a new user was added in on of his workspace shared folder
 boolean notifyFolderRemovedUser(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder, String removedUserId)
          use to notify a user that an existing user was removed from one of his workspace shared folder
 boolean notifyFolderSharing(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder)
          use to notify a user he got a workspace folder shared
 boolean notifyLikedFeed(String userIdToNotify, org.gcube.portal.databook.shared.Feed likedFeed)
          use to notify a user he got one of his feed liked
 boolean notifyMessageReceived(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessage message)
           
 boolean notifyOwnCommentReply(String userIdToNotify, org.gcube.portal.databook.shared.Comment comment)
           
 boolean notifyRemovedItem(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem removedItem)
          use to notify a user he got a workspace item deleted from one of his workspace shared folder
 boolean notifyUpdatedItem(String userIdToNotify, org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem updatedItem)
          use to notify a user he got a workspace item updated from one of his workspace shared folder
 

Method Detail

notifyFolderSharing

boolean notifyFolderSharing(String userIdToNotify,
                            org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder)
use to notify a user he got a workspace folder shared

Parameters:
userIdToNotify - the user you want to notify
sharedFolder - the shared WorkspaceFolder
Returns:
true if the notification is correctly delivered, false otherwise

notifyFolderAddedUser

boolean notifyFolderAddedUser(String userIdToNotify,
                              org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder,
                              String newAddedUserId)
use to notify a user that a new user was added in on of his workspace shared folder

Parameters:
userIdToNotify - the user you want to notify
sharedFolder - the shared WorkspaceFolder
newAddedUserId - the new user that was added
Returns:
true if the notification is correctly delivered, false otherwise

notifyFolderRemovedUser

boolean notifyFolderRemovedUser(String userIdToNotify,
                                org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder sharedFolder,
                                String removedUserId)
use to notify a user that an existing user was removed from one of his workspace shared folder

Parameters:
userIdToNotify - the user you want to notify
sharedFolder - the shared WorkspaceFolder
removedUserId - the new user that was removed
Returns:
true if the notification is correctly delivered, false otherwise

notifyAddedItem

boolean notifyAddedItem(String userIdToNotify,
                        org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem newItem)
use to notify a user he got a workspace item new in some of his workspace shared folder

Parameters:
userIdToNotify - the user you want to notify
newItem - the new shared WorkspaceItem
Returns:
true if the notification is correctly delivered, false otherwise

notifyRemovedItem

boolean notifyRemovedItem(String userIdToNotify,
                          org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem removedItem)
use to notify a user he got a workspace item deleted from one of his workspace shared folder

Parameters:
userIdToNotify - the user you want to notify
removedItem - the removed WorkspaceItem
Returns:
true if the notification is correctly delivered, false otherwise

notifyUpdatedItem

boolean notifyUpdatedItem(String userIdToNotify,
                          org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem updatedItem)
use to notify a user he got a workspace item updated from one of his workspace shared folder

Parameters:
userIdToNotify - the user you want to notify
updatedItem - the updated shared WorkspaceItem
Returns:
true if the notification is correctly delivered, false otherwise

notifyMessageReceived

boolean notifyMessageReceived(String userIdToNotify,
                              org.gcube.portlets.user.homelibrary.home.workspace.sharing.WorkspaceMessage message)
Parameters:
userIdToNotify - the user you want to notify
message - the WorkspaceMessage sent
Returns:
true if the notification is correctly delivered, false otherwise

notifyOwnCommentReply

boolean notifyOwnCommentReply(String userIdToNotify,
                              org.gcube.portal.databook.shared.Comment comment)
Parameters:
userIdToNotify - the user you want to notify
comment - the Comment instance to which someone replied to
Returns:
true if the notification is correctly delivered, false otherwise

notifyCommentReply

boolean notifyCommentReply(String userIdToNotify,
                           org.gcube.portal.databook.shared.Comment comment)
use to notify a user that commented on a feed (Not his) that someone commented too

Parameters:
userIdToNotify - the user you want to notify
comment - the Comment instance to which someone replied to
Returns:
true if the notification is correctly delivered, false otherwise

notifyLikedFeed

boolean notifyLikedFeed(String userIdToNotify,
                        org.gcube.portal.databook.shared.Feed likedFeed)
use to notify a user he got one of his feed liked

Parameters:
userIdToNotify - the user you want to notify
likedFeed - the Feed instance someone liked
Returns:
true if the notification is correctly delivered, false otherwise


Copyright © 2012. All Rights Reserved.