2012-12-07 15:06:26 +01:00
|
|
|
package org.gcube.applicationsupportlayer.social;
|
|
|
|
|
2013-07-11 17:25:21 +02:00
|
|
|
import java.util.Date;
|
2013-03-25 12:08:25 +01:00
|
|
|
import java.util.List;
|
2017-01-20 14:45:53 +01:00
|
|
|
import java.util.Set;
|
2013-03-25 12:08:25 +01:00
|
|
|
|
2013-09-30 15:43:29 +02:00
|
|
|
import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder;
|
|
|
|
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
2014-05-15 19:28:05 +02:00
|
|
|
import org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder;
|
2018-06-19 18:57:22 +02:00
|
|
|
import org.gcube.common.storagehub.model.items.Item;
|
|
|
|
import org.gcube.common.storagehub.model.items.SharedFolder;
|
2015-06-11 14:08:50 +02:00
|
|
|
import org.gcube.portal.databook.shared.NotificationType;
|
2014-09-30 12:36:37 +02:00
|
|
|
import org.gcube.portal.databook.shared.RunningJob;
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR
|
|
|
|
*
|
|
|
|
*/
|
2013-01-03 16:28:36 +01:00
|
|
|
public interface NotificationsManager {
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyFolderSharing(String userIdToNotify, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder} instance
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderSharing(String userIdToNotify, SharedFolder sharedFolder) throws Exception;
|
2014-09-29 18:47:23 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param unsharedFolderId the unshared folder id
|
|
|
|
* @param unsharedFolderName the unshared folder name
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) throws Exception;
|
2014-09-30 12:36:37 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got upgraded to Administrator of a folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2014-09-30 12:36:37 +02:00
|
|
|
*/
|
|
|
|
boolean notifyAdministratorUpgrade(String userIdToNotify, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got upgraded to Administrator of a folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder} instance
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
boolean notifyAdministratorUpgrade(String userIdToNotify, SharedFolder sharedFolder) throws Exception;
|
2014-09-30 12:36:37 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got downgraded from Administrator of a folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2014-09-30 12:36:37 +02:00
|
|
|
*/
|
|
|
|
boolean notifyAdministratorDowngrade(String userIdToNotify, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got downgraded from Administrator of a folder shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyAdministratorDowngrade(String userIdToNotify, SharedFolder sharedFolder) throws Exception;
|
2013-03-20 15:45:06 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace folder renamed
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param previousName the previous name of the folder
|
|
|
|
* @param newName the new name of the folder
|
|
|
|
* @param renamedFolderId the folderId
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws Exception;
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user that a new user was added in on of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
2012-12-07 15:06:26 +01:00
|
|
|
* @param newAddedUserId the new user that was added
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyFolderAddedUser(String userIdToNotify, WorkspaceSharedFolder sharedFolder, String newAddedUserId) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user that a new user was added in on of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder} instance
|
|
|
|
* @param newAddedUserId the new user that was added
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderAddedUser(String userIdToNotify, SharedFolder sharedFolder, String newAddedUserId) throws Exception;
|
2013-03-25 12:08:25 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user that a new user was added in on of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
2013-03-25 12:08:25 +01:00
|
|
|
* @param newAddedUserIds List of new users that were added
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2013-03-25 12:08:25 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyFolderAddedUsers(String userIdToNotify, WorkspaceSharedFolder sharedFolder, List<String> newAddedUserIds) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user that a new user was added in on of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder} instance
|
|
|
|
* @param newAddedUserIds List of new users that were added
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderAddedUsers(String userIdToNotify, SharedFolder sharedFolder, List<String> newAddedUserIds) throws Exception;
|
|
|
|
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user that an existing user was removed from one of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared {@link WorkspaceSharedFolder}
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyFolderRemovedUser(String userIdToNotify, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user that an existing user was removed from one of his workspace shared folder
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param sharedFolder the shared {@link SharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyFolderRemovedUser(String userIdToNotify, SharedFolder sharedFolder) throws Exception;
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item new in some of his workspace shared folder
|
2012-12-07 16:29:09 +01:00
|
|
|
* @param userIdToNotify the user you want to notify
|
2012-12-07 15:06:26 +01:00
|
|
|
* @param newItem the new shared {@link WorkspaceItem}
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared folder {@link WorkspaceSharedFolder}
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder} and {@link Item}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyAddedItem(String userIdToNotify, WorkspaceItem item, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item new in some of his workspace shared folder
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param newItem the new shared {@link Item} instance
|
|
|
|
* @param sharedFolder the shared folder {@link SharedFolder} instance
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyAddedItem(String userIdToNotify, Item item, SharedFolder sharedFolder) throws Exception;
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
2012-12-07 16:29:09 +01:00
|
|
|
* @param userIdToNotify the user you want to notify
|
2012-12-07 15:06:26 +01:00
|
|
|
* @param removedItem the removed {@link WorkspaceItem}
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared folder {@link WorkspaceSharedFolder}
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder} and {@link Item}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyMovedItem(String userIdToNotify, WorkspaceItem item, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param removedItem the removed {@link Item}
|
|
|
|
* @param sharedFolder the shared folder {@link haredFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyMovedItem(String userIdToNotify, Item item, SharedFolder sharedFolder) throws Exception;
|
2013-06-14 15:24:42 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param removedItem the removed {@link WorkspaceItem}
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param sharedFolder the shared folder {@link WorkspaceSharedFolder}
|
2013-06-14 15:24:42 +02:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder}
|
2013-06-14 15:24:42 +02:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyRemovedItem(String userIdToNotify, String item, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param removedItem the removed {@link WorkspaceItem}
|
|
|
|
* @param sharedFolder the shared folder {@link WorkspaceSharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyRemovedItem(String userIdToNotify, String item, SharedFolder sharedFolder) throws Exception;
|
2012-12-07 15:06:26 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item updated from one of his workspace shared folder
|
2012-12-07 16:29:09 +01:00
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param updatedItem the updated shared {@link WorkspaceItem}
|
2013-03-16 02:40:56 +01:00
|
|
|
* @param sharedFolder the shared folder {@link WorkspaceFolder}
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder} and {@link Item}
|
2012-12-07 15:06:26 +01:00
|
|
|
*/
|
2014-05-15 19:28:05 +02:00
|
|
|
boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem item, WorkspaceSharedFolder sharedFolder) throws Exception;
|
2018-06-19 18:57:22 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item updated from one of his workspace shared folder
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param updatedItem the updated shared {@link Item}
|
|
|
|
* @param sharedFolder the shared folder {@link SharedFolder}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyUpdatedItem(String userIdToNotify, Item item, SharedFolder sharedFolder) throws Exception;
|
2013-03-25 14:38:14 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item renamed
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param previousName the previous name of the folder
|
2014-05-14 12:54:04 +02:00
|
|
|
* @param renamedItem the renamed {@link WorkspaceItem}
|
2014-05-15 19:28:05 +02:00
|
|
|
* @param rootSharedFolder the root shared {@link WorkspaceSharedFolder} of the {@link WorkspaceItem}
|
2013-03-25 14:38:14 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2018-06-19 18:57:22 +02:00
|
|
|
* @deprecated use {@link SharedFolder} and {@link Item}
|
|
|
|
*/
|
|
|
|
boolean notifyItemRenaming(String userIdToNotify, String previousName, WorkspaceItem renamedItem, WorkspaceSharedFolder rootSharedFolder) throws Exception;
|
|
|
|
/**
|
|
|
|
* use to notify a user he got a workspace item renamed
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param previousName the previous name of the folder
|
|
|
|
* @param renamedItem the renamed {@link Item}
|
|
|
|
* @param rootSharedFolder the root shared {@link SharedFolder} of the {@link Item}
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2013-03-25 14:38:14 +01:00
|
|
|
*/
|
2018-06-19 18:57:22 +02:00
|
|
|
boolean notifyItemRenaming(String userIdToNotify, String previousName,Item renamedItem, SharedFolder rootSharedFolder) throws Exception;
|
2012-12-07 16:29:09 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2015-10-09 10:02:47 +02:00
|
|
|
* @param messageUniqueIdentifier the unique identifier of the message
|
2013-01-09 17:47:22 +01:00
|
|
|
* @param subject the subject of the message sent
|
2015-10-09 10:02:47 +02:00
|
|
|
* @param messageText the text of the message (text/plain)
|
2015-10-14 17:27:13 +02:00
|
|
|
* @param otherRecipientsFullNames the Full Names of the other recipients. if any
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2015-10-14 17:27:13 +02:00
|
|
|
boolean notifyMessageReceived(String userIdToNotify, String messageUniqueIdentifier, String subject, String messageText, String ... otherRecipientsFullNames);
|
2013-07-11 17:25:21 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param eventTitle the title of the event
|
|
|
|
* @param eventType the type of the event
|
|
|
|
* @param startDate staring date
|
|
|
|
* @param endingDate ending date
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
2013-07-12 16:59:26 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param eventTitle the title of the event
|
|
|
|
* @param eventType the type of the event
|
|
|
|
* @param startDate staring date
|
|
|
|
* @param endingDate ending date
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
2013-07-12 17:06:34 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param eventTitle the title of the event
|
|
|
|
* @param eventType the type of the event
|
|
|
|
* @param startDate staring date
|
|
|
|
* @param endingDate ending date
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
2017-01-20 14:45:53 +01:00
|
|
|
|
2014-03-05 00:40:14 +01:00
|
|
|
/**
|
|
|
|
* use to notify a user that someone created this post
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2017-01-20 14:45:53 +01:00
|
|
|
@Deprecated
|
2014-11-03 19:31:09 +01:00
|
|
|
boolean notifyPost(String userIdToNotify, String feedid, String feedText, String ... hashtags);
|
2017-01-20 14:45:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* use to notify a user that someone created this post
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
|
|
|
* @param mentionedVREGroups the names of the mentioned vre's groups, if any
|
|
|
|
* @param hashtags the set of hashtags in the post, if any
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyPost(String userIdToNotify, String feedid, String feedText, Set<String> mentionedVREGroups, Set<String> hashtags);
|
|
|
|
|
2012-12-07 16:29:09 +01:00
|
|
|
/**
|
2013-01-11 12:36:44 +01:00
|
|
|
* use to notify a user that someone commented on his post
|
2012-12-07 16:29:09 +01:00
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2013-01-11 12:36:44 +01:00
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
2016-02-17 18:27:46 +01:00
|
|
|
* @param commentKey when sending email, stop the shown discussion at that comment
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2016-02-17 18:27:46 +01:00
|
|
|
boolean notifyOwnCommentReply(String userIdToNotify, String feedid, String feedText, String commentKey);
|
2012-12-07 16:29:09 +01:00
|
|
|
/**
|
2013-01-11 12:36:44 +01:00
|
|
|
* use to notify a user that commented on a post (Not his) that someone commented too
|
2012-12-07 16:29:09 +01:00
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2013-01-11 12:36:44 +01:00
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
2013-04-18 16:34:07 +02:00
|
|
|
* @param feedOwnerFullName the full name of the user who created this post
|
2016-02-17 18:27:46 +01:00
|
|
|
* @param commentKey when sending email, stop the shown discussion at that comment
|
2012-12-07 16:29:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2016-02-17 18:27:46 +01:00
|
|
|
boolean notifyCommentReply(String userIdToNotify, String feedid, String feedText, String feedOwnerFullName, String feedOwnerId, String commentKey);
|
2013-04-18 16:34:07 +02:00
|
|
|
/**
|
2016-09-26 12:14:27 +02:00
|
|
|
* @deprecated use notifyCommentOnLike
|
|
|
|
* use to notify a user that someone commented on one of his liked posts
|
2013-04-18 16:34:07 +02:00
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param feedid the liked feedid
|
2013-04-18 17:32:04 +02:00
|
|
|
* @param commentText the commentText
|
2016-02-17 18:27:46 +01:00
|
|
|
* @param commentKey when sending email, stop the shown discussion at that comment
|
2013-04-18 16:34:07 +02:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2016-02-17 18:27:46 +01:00
|
|
|
boolean notifyCommentOnFavorite(String userIdToNotify, String feedid, String commentText, String commentKey);
|
2016-09-26 12:14:27 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param commentText the commentText
|
|
|
|
* @param commentKey when sending email, stop the shown discussion at that comment
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
|
|
|
boolean notifyCommentOnLike(String userIdToNotify, String feedid, String commentText, String commentKey);
|
2013-04-18 11:21:31 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user that he was mentioned (tagged) on a post
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
2016-02-17 18:27:46 +01:00
|
|
|
* @param commentKey when sending email, stop the shown discussion at that comment
|
2013-04-18 11:21:31 +02:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2016-02-17 18:27:46 +01:00
|
|
|
boolean notifyUserTag(String userIdToNotify, String feedid, String commentText, String commentKey);
|
2012-12-07 16:29:09 +01:00
|
|
|
/**
|
2013-01-11 12:36:44 +01:00
|
|
|
* use to notify a user he got one of his post liked
|
2012-12-07 16:29:09 +01:00
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
2013-01-11 12:36:44 +01:00
|
|
|
* @param feedid the liked feedid
|
|
|
|
* @param feedText the liked feed text or a portion of it
|
2012-12-07 16:30:09 +01:00
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
2012-12-07 16:29:09 +01:00
|
|
|
*/
|
2013-01-11 12:36:44 +01:00
|
|
|
boolean notifyLikedFeed(String userIdToNotify, String feedid, String feedText);
|
2013-01-03 16:28:36 +01:00
|
|
|
/**
|
2013-01-11 12:36:44 +01:00
|
|
|
* use to notify a user he got one of his job finished
|
2013-01-03 16:28:36 +01:00
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2017-01-20 14:45:53 +01:00
|
|
|
boolean notifyJobStatus(String userIdToNotify, RunningJob job);
|
2016-09-26 12:14:27 +02:00
|
|
|
|
2015-06-11 14:56:34 +02:00
|
|
|
boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception;
|
2015-06-11 14:08:50 +02:00
|
|
|
/**
|
|
|
|
* use to notify a user he got a Tabular Data Resource shared
|
|
|
|
*
|
|
|
|
* @param userIdToNotify the user you want to notify
|
|
|
|
* @param type type of the shared tdm object (TDM Rule or TDM Template at the moment)
|
|
|
|
* @param tdmObjectName the name
|
|
|
|
* @param encodedTabularResourceParams the parameters to be placed in the HTTP GET Request (must be encoded)
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
*/
|
2015-06-11 14:56:34 +02:00
|
|
|
boolean notifyTDMObjectSharing(String userIdToNotify, NotificationType type, String tdmObjectName, String encodedTabularResourceParams) throws Exception;
|
2013-01-29 16:24:44 +01:00
|
|
|
|
2012-12-07 15:06:26 +01:00
|
|
|
}
|