Interface NotificationsManager
-
- All Known Implementing Classes:
ApplicationNotificationsManager
public interface NotificationsManager- Author:
- Massimiliano Assante, ISTI-CNR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleannotifyAddedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder)use to notify a user he got a workspace item new in some of his workspace shared folderbooleannotifyAdministratorDowngrade(String userIdToNotify, SocialSharedFolder sharedFolder)use to notify a user he got downgraded from Administrator of a folder sharedbooleannotifyAdministratorUpgrade(String userIdToNotify, SocialSharedFolder sharedFolder)use to notify a user he got upgraded to Administrator of a folder sharedbooleannotifyCatalogueEvent(org.gcube.portal.databook.shared.NotificationType type, String userIdToNotify, String itemId, String notifyText, URL url)use to notify a catalogue moderators someone submitted an item for considerationbooleannotifyCommentOnFavorite(String userIdToNotify, String postid, String commentText, String commentKey)Deprecated.use notifyCommentOnLike use to notify a user that someone commented on one of his liked postsbooleannotifyCommentOnLike(String userIdToNotify, String postid, String commentText, String commentKey)booleannotifyCommentReply(String userIdToNotify, String postid, String postText, String postOwnerFullName, String postOwnerId, String commentKey)use to notify a user that commented on a post (Not his) that someone commented toobooleannotifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)Deprecated.no longer supportedbooleannotifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)Deprecated.no longer supportedbooleannotifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId)Deprecated.user notifyFolderAddedUser passing UserManager classbooleannotifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId, org.gcube.vomanagement.usermanagement.UserManager um)use to notify a user that a new user was added in on of his workspace shared folderbooleannotifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds)Deprecated.user notifyFolderAddedUser passing UserManager classbooleannotifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds, org.gcube.vomanagement.usermanagement.UserManager um)use to notify a user that a new user was added in on of his workspace shared folderbooleannotifyFolderRemovedUser(String userIdToNotify, SocialSharedFolder sharedFolder)use to notify a user that an existing user was removed from one of his workspace shared folderbooleannotifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId)use to notify a user he got a workspace folder renamedbooleannotifyFolderSharing(String userIdToNotify, SocialSharedFolder sharedFolder)use to notify a user he got a workspace folder sharedbooleannotifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName)use to notify a user he got a workspace folder sharedbooleannotifyItemRenaming(String userIdToNotify, String previousName, SocialFileItem renamedItem, SocialSharedFolder rootSharedFolder)use to notify a user he got a workspace item renamedbooleannotifyJobStatus(String userIdToNotify, org.gcube.portal.databook.shared.RunningJob job)use to notify a user he got one of his job finishedbooleannotifyLikedFeed(String userIdToNotify, String postid, String postText)Deprecated.use notifyLikedPostbooleannotifyLikedPost(String userIdToNotify, String postid, String postText)use to notify a user he got one of his post likedbooleannotifyMessageReceived(String userIdToNotify, String messageUniqueIdentifier, String subject, String messageText, String... otherRecipientsFullNames)booleannotifyMovedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder)use to notify a user he got a workspace item deleted from one of his workspace shared folderbooleannotifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)Deprecated.no longer supportedbooleannotifyOwnCommentReply(String userIdToNotify, String postid, String postText, String commentKey)use to notify a user that someone commented on his postbooleannotifyPost(String userIdToNotify, String postid, String postText, String... hashtags)Deprecated.booleannotifyPost(String userIdToNotify, String postid, String postText, Set<String> mentionedVREGroups, Set<String> hashtags)use to notify a user that someone created this postbooleannotifyRemovedItem(String userIdToNotify, String item, SocialSharedFolder sharedFolder)use to notify a user he got a workspace item deleted from one of his workspace shared folderbooleannotifyTDMObjectSharing(String userIdToNotify, org.gcube.portal.databook.shared.NotificationType type, String tdmObjectName, String encodedTabularResourceParams)Deprecated.no longer supportedbooleannotifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams)Deprecated.no longer supportedbooleannotifyUpdatedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder)use to notify a user he got a workspace item updated from one of his workspace shared folderbooleannotifyUserTag(String userIdToNotify, String postid, String commentText, String commentKey)use to notify a user that he was mentioned (tagged) on a post
-
-
-
Method Detail
-
notifyFolderSharing
boolean notifyFolderSharing(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
use to notify a user he got a workspace folder shared- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderUnsharing
boolean notifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) throws Exception
use to notify a user he got a workspace folder shared- Parameters:
userIdToNotify- the user you want to notifyunsharedFolderId- the unshared folder idunsharedFolderName- the unshared folder name- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyAdministratorUpgrade
boolean notifyAdministratorUpgrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
use to notify a user he got upgraded to Administrator of a folder shared- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyAdministratorDowngrade
boolean notifyAdministratorDowngrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
use to notify a user he got downgraded from Administrator of a folder shared- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderRenaming
boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws Exception
use to notify a user he got a workspace folder renamed- Parameters:
userIdToNotify- the user you want to notifypreviousName- the previous name of the foldernewName- the new name of the folderrenamedFolderId- the folderId- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderAddedUser
boolean notifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId) throws Exception
Deprecated.user notifyFolderAddedUser passing UserManager class- Throws:
Exception
-
notifyFolderAddedUser
boolean notifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId, org.gcube.vomanagement.usermanagement.UserManager um) throws Exception
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 notifysharedFolder- the sharedSocialSharedFolderinstancenewAddedUserId- the new user that was addedUserManager- UserManager class instance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderAddedUsers
boolean notifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds) throws Exception
Deprecated.user notifyFolderAddedUser passing UserManager class- Throws:
Exception
-
notifyFolderAddedUsers
boolean notifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds, org.gcube.vomanagement.usermanagement.UserManager um) throws Exception
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 notifysharedFolder- the sharedSocialSharedFolderinstancenewAddedUserIds- List of new users that were addedUserManager- UserManager class instance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderRemovedUser
boolean notifyFolderRemovedUser(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
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 notifysharedFolder- the sharedSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyAddedItem
boolean notifyAddedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws Exception
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 notifynewItem- the new sharedSocialFileIteminstancesharedFolder- the shared folderSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyMovedItem
boolean notifyMovedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws Exception
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 notifyremovedItem- the removed item instance ofSocialFileItemsharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyRemovedItem
boolean notifyRemovedItem(String userIdToNotify, String item, SocialSharedFolder sharedFolder) throws Exception
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 notifyremovedItem- the removed namesharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyUpdatedItem
boolean notifyUpdatedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws Exception
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 notifyupdatedItem- the updated sharedSocialFileItemsharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyItemRenaming
boolean notifyItemRenaming(String userIdToNotify, String previousName, SocialFileItem renamedItem, SocialSharedFolder rootSharedFolder) throws Exception
use to notify a user he got a workspace item renamed- Parameters:
userIdToNotify- the user you want to notifypreviousName- the previous name of the folderrenamedItem- the renamedSocialFileItemrootSharedFolder- the root sharedSocialSharedFolderof theSocialFileItem- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyMessageReceived
boolean notifyMessageReceived(String userIdToNotify, String messageUniqueIdentifier, String subject, String messageText, String... otherRecipientsFullNames)
- Parameters:
userIdToNotify- the user you want to notifymessageUniqueIdentifier- the unique identifier of the messagesubject- the subject of the message sentmessageText- the text of the message (text/plain)otherRecipientsFullNames- the Full Names of the other recipients. if any- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyCatalogueEvent
boolean notifyCatalogueEvent(org.gcube.portal.databook.shared.NotificationType type, String userIdToNotify, String itemId, String notifyText, URL url) throws Exceptionuse to notify a catalogue moderators someone submitted an item for consideration- Parameters:
type- the notification typeuserIdToNotify- the user you want to notifyitemId- the item unique identifiernotifyText- the text of the notificationthe- resolver URL pointing to the item- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyNewCalendarEvent
boolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.no longer supported
-
notifyEditedCalendarEvent
boolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.no longer supported
-
notifyDeletedCalendarEvent
boolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.no longer supported
-
notifyPost
@Deprecated boolean notifyPost(String userIdToNotify, String postid, String postText, String... hashtags)
Deprecated.use to notify a user that someone created this post- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of it- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyPost
boolean notifyPost(String userIdToNotify, String postid, String postText, Set<String> mentionedVREGroups, Set<String> hashtags)
use to notify a user that someone created this post- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of itmentionedVREGroups- the names of the mentioned vre's groups, if anyhashtags- the set of hashtags in the post, if any- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyOwnCommentReply
boolean notifyOwnCommentReply(String userIdToNotify, String postid, String postText, String commentKey)
use to notify a user that someone commented on his post- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of itcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyCommentReply
boolean notifyCommentReply(String userIdToNotify, String postid, String postText, String postOwnerFullName, String postOwnerId, String commentKey)
use to notify a user that commented on a post (Not his) that someone commented too- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of itpostOwnerFullName- the full name of the user who created the postpostOwnerId- the username of the user who created the postcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyCommentOnFavorite
boolean notifyCommentOnFavorite(String userIdToNotify, String postid, String commentText, String commentKey)
Deprecated.use notifyCommentOnLike use to notify a user that someone commented on one of his liked posts- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidcommentText- the commentTextcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyCommentOnLike
boolean notifyCommentOnLike(String userIdToNotify, String postid, String commentText, String commentKey)
- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidcommentText- the commentTextcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyUserTag
boolean notifyUserTag(String userIdToNotify, String postid, String commentText, String commentKey)
use to notify a user that he was mentioned (tagged) on a post- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidfeedText- the liked feed text or a portion of itcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyLikedFeed
@Deprecated boolean notifyLikedFeed(String userIdToNotify, String postid, String postText)
Deprecated.use notifyLikedPostuse to notify a user he got one of his post liked- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of it- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyLikedPost
boolean notifyLikedPost(String userIdToNotify, String postid, String postText)
use to notify a user he got one of his post liked- Parameters:
userIdToNotify- the user you want to notifypostid- the liked postidpostText- the liked post text or a portion of it- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyJobStatus
boolean notifyJobStatus(String userIdToNotify, org.gcube.portal.databook.shared.RunningJob job)
use to notify a user he got one of his job finished- Parameters:
userIdToNotify- the user you want to notify- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyTDMTabularResourceSharing
boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception
Deprecated.no longer supported- Throws:
Exception
-
-