public interface NotificationsManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
notifyAddedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got a workspace item new in some of his workspace shared folder
|
boolean |
notifyAdministratorDowngrade(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got downgraded from Administrator of a folder shared
|
boolean |
notifyAdministratorUpgrade(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got upgraded to Administrator of a folder shared
|
boolean |
notifyCommentOnFavorite(String userIdToNotify,
String feedid,
String commentText,
String commentKey)
Deprecated.
use notifyCommentOnLike
use to notify a user that someone commented on one of his liked posts
|
boolean |
notifyCommentOnLike(String userIdToNotify,
String feedid,
String commentText,
String commentKey) |
boolean |
notifyCommentReply(String userIdToNotify,
String feedid,
String feedText,
String feedOwnerFullName,
String feedOwnerId,
String commentKey)
use to notify a user that commented on a post (Not his) that someone commented too
|
boolean |
notifyDeletedCalendarEvent(String userIdToNotify,
String eventTitle,
String eventType,
Date startDate,
Date endingDate) |
boolean |
notifyEditedCalendarEvent(String userIdToNotify,
String eventTitle,
String eventType,
Date startDate,
Date endingDate) |
boolean |
notifyFolderAddedUser(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder,
String newAddedUserId)
use to notify a user that a new user was added in on of his workspace shared folder
|
boolean |
notifyFolderAddedUsers(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder,
List<String> newAddedUserIds)
use to notify a user that a new user was added in on of his workspace shared folder
|
boolean |
notifyFolderRemovedUser(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user that an existing user was removed from one of his workspace shared folder
|
boolean |
notifyFolderRenaming(String userIdToNotify,
String previousName,
String newName,
String renamedFolderId)
use to notify a user he got a workspace folder renamed
|
boolean |
notifyFolderSharing(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got a workspace folder shared
|
boolean |
notifyFolderUnsharing(String userIdToNotify,
String unsharedFolderId,
String unsharedFolderName)
use to notify a user he got a workspace folder shared
|
boolean |
notifyItemRenaming(String userIdToNotify,
String previousName,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem renamedItem,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder rootSharedFolder)
use to notify a user he got a workspace item renamed
|
boolean |
notifyJobStatus(String userIdToNotify,
org.gcube.portal.databook.shared.RunningJob job)
use to notify a user he got one of his job finished
|
boolean |
notifyLikedFeed(String userIdToNotify,
String feedid,
String feedText)
use to notify a user he got one of his post liked
|
boolean |
notifyMessageReceived(String userIdToNotify,
String messageUniqueIdentifier,
String subject,
String messageText,
String... otherRecipientsFullNames) |
boolean |
notifyMovedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
boolean |
notifyNewCalendarEvent(String userIdToNotify,
String eventTitle,
String eventType,
Date startDate,
Date endingDate) |
boolean |
notifyOwnCommentReply(String userIdToNotify,
String feedid,
String feedText,
String commentKey)
use to notify a user that someone commented on his post
|
boolean |
notifyPost(String userIdToNotify,
String feedid,
String feedText,
Set<String> mentionedVREGroups,
Set<String> hashtags)
use to notify a user that someone created this post
|
boolean |
notifyPost(String userIdToNotify,
String feedid,
String feedText,
String... hashtags)
Deprecated.
|
boolean |
notifyRemovedItem(String userIdToNotify,
String item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
boolean |
notifyTDMObjectSharing(String userIdToNotify,
org.gcube.portal.databook.shared.NotificationType type,
String tdmObjectName,
String encodedTabularResourceParams)
use to notify a user he got a Tabular Data Resource shared
|
boolean |
notifyTDMTabularResourceSharing(String userIdToNotify,
String tabularResourceName,
String encodedTabularResourceParams) |
boolean |
notifyUpdatedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
use to notify a user he got a workspace item updated from one of his workspace shared folder
|
boolean |
notifyUserTag(String userIdToNotify,
String feedid,
String commentText,
String commentKey)
use to notify a user that he was mentioned (tagged) on a post
|
boolean notifyFolderSharing(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionboolean notifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) throws Exception
userIdToNotify - the user you want to notifyunsharedFolderId - the unshared folder idunsharedFolderName - the unshared folder nameExceptionboolean notifyAdministratorUpgrade(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionboolean notifyAdministratorDowngrade(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionboolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws Exception
userIdToNotify - the user you want to notifypreviousName - the previous name of the foldernewName - the new name of the folderrenamedFolderId - the folderIdExceptionboolean notifyFolderAddedUser(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder, String newAddedUserId) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFoldernewAddedUserId - the new user that was addedExceptionboolean notifyFolderAddedUsers(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder, List<String> newAddedUserIds) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFoldernewAddedUserIds - List of new users that were addedExceptionboolean notifyFolderRemovedUser(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionboolean notifyAddedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifynewItem - the new shared WorkspaceItemsharedFolder - the shared folder WorkspaceSharedFolderExceptionboolean notifyMovedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifyremovedItem - the removed WorkspaceItemsharedFolder - the shared folder WorkspaceSharedFolderExceptionboolean notifyRemovedItem(String userIdToNotify, String item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifyremovedItem - the removed WorkspaceItemsharedFolder - the shared folder WorkspaceSharedFolderExceptionboolean notifyUpdatedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
userIdToNotify - the user you want to notifyupdatedItem - the updated shared WorkspaceItemsharedFolder - the shared folder WorkspaceFolderExceptionboolean notifyItemRenaming(String userIdToNotify, String previousName, org.gcube.common.homelibrary.home.workspace.WorkspaceItem renamedItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder rootSharedFolder) throws Exception
userIdToNotify - the user you want to notifypreviousName - the previous name of the folderrenamedItem - the renamed WorkspaceItemrootSharedFolder - the root shared WorkspaceSharedFolder of the WorkspaceItemExceptionboolean notifyMessageReceived(String userIdToNotify, String messageUniqueIdentifier, String subject, String messageText, String... otherRecipientsFullNames)
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 anyboolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
userIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending dateboolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
userIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending dateboolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
userIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending date@Deprecated boolean notifyPost(String userIdToNotify, String feedid, String feedText, String... hashtags)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itboolean notifyPost(String userIdToNotify, String feedid, String feedText, Set<String> mentionedVREGroups, Set<String> hashtags)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itmentionedVREGroups - the names of the mentioned vre's groups, if anyhashtags - the set of hashtags in the post, if anyboolean notifyOwnCommentReply(String userIdToNotify, String feedid, String feedText, String commentKey)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itcommentKey - when sending email, stop the shown discussion at that commentboolean notifyCommentReply(String userIdToNotify, String feedid, String feedText, String feedOwnerFullName, String feedOwnerId, String commentKey)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itfeedOwnerFullName - the full name of the user who created this postcommentKey - when sending email, stop the shown discussion at that commentboolean notifyCommentOnFavorite(String userIdToNotify, String feedid, String commentText, String commentKey)
userIdToNotify - the user you want to notifyfeedid - the liked feedidcommentText - the commentTextcommentKey - when sending email, stop the shown discussion at that commentboolean notifyCommentOnLike(String userIdToNotify, String feedid, String commentText, String commentKey)
userIdToNotify - the user you want to notifyfeedid - the liked feedidcommentText - the commentTextcommentKey - when sending email, stop the shown discussion at that commentboolean notifyUserTag(String userIdToNotify, String feedid, String commentText, String commentKey)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itcommentKey - when sending email, stop the shown discussion at that commentboolean notifyLikedFeed(String userIdToNotify, String feedid, String feedText)
userIdToNotify - the user you want to notifyfeedid - the liked feedidfeedText - the liked feed text or a portion of itboolean notifyJobStatus(String userIdToNotify, org.gcube.portal.databook.shared.RunningJob job)
userIdToNotify - the user you want to notifyboolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception
Exceptionboolean notifyTDMObjectSharing(String userIdToNotify, org.gcube.portal.databook.shared.NotificationType type, String tdmObjectName, String encodedTabularResourceParams) throws Exception
userIdToNotify - the user you want to notifytype - type of the shared tdm object (TDM Rule or TDM Template at the moment)tdmObjectName - the nameencodedTabularResourceParams - the parameters to be placed in the HTTP GET Request (must be encoded)ExceptionCopyright © 2017. All Rights Reserved.