public class ApplicationNotificationsManager extends SocialPortalBridge implements NotificationsManager
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_MESSAGES_FRIENDLY_URL |
static String |
USER_NOTIFICATION_FRIENDLY_URL |
static String |
USER_WORKSPACE_FRIENDLY_URL |
applicationProfile, currGroupName, currScope, currUser| Constructor and Description |
|---|
ApplicationNotificationsManager(SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser)
Use this constructor if you do not need notifications to point back to your applications
|
ApplicationNotificationsManager(SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser,
String portletClassName)
Use this constructor if you do need notifications to point back to your applications,
make sure you create your application profile on the infrastructure.
|
ApplicationNotificationsManager(org.gcube.vomanagement.usermanagement.UserManager userManager,
SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser)
Use this constructor if your artifact is not deployed on the portal and do not need notifications to point back to your applications
|
ApplicationNotificationsManager(org.gcube.vomanagement.usermanagement.UserManager userManager,
SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser,
String portletClassName)
Use this constructor if your artifact is not deployed on the portal and you do need notifications to point back to your applications,
make sure you create your application profile on the infrastructure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
notifyAddedItem(String userIdToNotify,
SocialFileItem item,
SocialSharedFolder sharedFolder)
use to notify a user he got a workspace item new in some of his workspace shared folder
|
boolean |
notifyAddedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
boolean |
notifyAdministratorDowngrade(String userIdToNotify,
SocialSharedFolder sharedFolder)
use to notify a user he got downgraded from Administrator of a folder shared
|
boolean |
notifyAdministratorDowngrade(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
boolean |
notifyAdministratorUpgrade(String userIdToNotify,
SocialSharedFolder sharedFolder)
use to notify a user he got upgraded to Administrator of a folder shared
|
boolean |
notifyAdministratorUpgrade(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
boolean |
notifyCommentOnFavorite(String userIdToNotify,
String postId,
String commentText,
String commentKey) |
boolean |
notifyCommentOnLike(String userIdToNotify,
String postId,
String commentText,
String commentKey) |
boolean |
notifyCommentReply(String userIdToNotify,
String postId,
String commentText,
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,
SocialSharedFolder sharedFolder,
String newAddedUserId)
use to notify a user that a new user was added in on of his workspace shared folder
|
boolean |
notifyFolderAddedUser(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder,
String newAddedUserId)
Deprecated.
|
boolean |
notifyFolderAddedUsers(String userIdToNotify,
SocialSharedFolder sharedFolder,
List<String> newAddedUserIds)
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)
Deprecated.
|
boolean |
notifyFolderRemovedUser(String userIdToNotify,
SocialSharedFolder sharedFolder)
use to notify a user that an existing user was removed from one of his workspace shared folder
|
boolean |
notifyFolderRemovedUser(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
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,
SocialSharedFolder sharedFolder)
use to notify a user he got a workspace folder shared
|
boolean |
notifyFolderSharing(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
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,
SocialFileItem renamedItem,
SocialSharedFolder rootSharedFolder)
use to notify a user he got a workspace item renamed
|
boolean |
notifyItemRenaming(String userIdToNotify,
String previousName,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem renamedItem,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder rootSharedFolder)
Deprecated.
|
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 postId,
String postText)
Deprecated.
|
boolean |
notifyLikedPost(String userIdToNotify,
String postId,
String postText)
use to notify a user he got one of his post liked
|
boolean |
notifyMessageReceived(String userIdToNotify,
String messageId,
String subject,
String messageText,
String... otherRecipientsFullNames) |
boolean |
notifyMovedItem(String userIdToNotify,
SocialFileItem item,
SocialSharedFolder sharedFolder)
use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
boolean |
notifyMovedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
boolean |
notifyNewCalendarEvent(String userIdToNotify,
String eventTitle,
String eventType,
Date startDate,
Date endingDate) |
boolean |
notifyOwnCommentReply(String userIdToNotify,
String postId,
String postText,
String commentKey)
use to notify a user that someone commented on his post
|
boolean |
notifyPost(String userIdToNotify,
String postId,
String postText,
Set<String> mentionedVREGroups,
Set<String> hashtags)
use to notify a user that someone created this post
|
boolean |
notifyPost(String userIdToNotify,
String postId,
String postText,
String... hashtags)
use to notify a user that someone created this post
|
boolean |
notifyRemovedItem(String userIdToNotify,
String itemName,
SocialSharedFolder sharedFolder)
use to notify a user he got a workspace item deleted from one of his workspace shared folder
|
boolean |
notifyRemovedItem(String userIdToNotify,
String itemName,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
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,
SocialFileItem item,
SocialSharedFolder sharedFolder)
use to notify a user he got a workspace item updated from one of his workspace shared folder
|
boolean |
notifyUpdatedItem(String userIdToNotify,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem item,
org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder)
Deprecated.
|
boolean |
notifyUserTag(String userIdToNotify,
String postId,
String postText,
String commentKey)
use to notify a user that he was mentioned (tagged) on a post
|
escapeHtml, getApplicationProfile, getStoreInstancepublic static final String USER_WORKSPACE_FRIENDLY_URL
public static final String USER_MESSAGES_FRIENDLY_URL
public static final String USER_NOTIFICATION_FRIENDLY_URL
public ApplicationNotificationsManager(SocialNetworkingSite site, String scope, SocialNetworkingUser currUser)
Use this constructor if you do not need notifications to point back to your applications
scope - the current scopecurrUser - an instance of SocialNetworkingUser filled with the required user datasite - an instance of SocialNetworkingSite filled with the required datapublic ApplicationNotificationsManager(org.gcube.vomanagement.usermanagement.UserManager userManager,
SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser)
Use this constructor if your artifact is not deployed on the portal and do not need notifications to point back to your applications
userManager - a remote implementation of UserManager,see LiferayWSUserManagersite - an instance of SocialNetworkingSite filled with the required datascope - the current scopecurrUser - an instance of SocialNetworkingUser filled with the required user datapublic ApplicationNotificationsManager(SocialNetworkingSite site, String scope, SocialNetworkingUser currUser, String portletClassName)
Use this constructor if you do need notifications to point back to your applications, make sure you create your application profile on the infrastructure.
scope - the current scopecurrUser - an instance of SocialNetworkingUser filled with the required user datasite - an instance of SocialNetworkingSite filled with the required dataportletClassName - your portlet class name will be used ad unique identifier for your applicationProfilehttp://wiki.gcube-system.org/gcube/index.php/Social_Networking_Library#Create_Your_Application_Profilepublic ApplicationNotificationsManager(org.gcube.vomanagement.usermanagement.UserManager userManager,
SocialNetworkingSite site,
String scope,
SocialNetworkingUser currUser,
String portletClassName)
Use this constructor if your artifact is not deployed on the portal and you do need notifications to point back to your applications, make sure you create your application profile on the infrastructure.
userManager - a remote implementation of UserManager,see LiferayWSUserManagerscope - the current scopecurrUser - an instance of SocialNetworkingUser filled with the required user datasite - an instance of SocialNetworkingSite filled with the required dataportletClassName - your portlet class name will be used ad unique identifier for your applicationProfilehttp://wiki.gcube-system.org/gcube/index.php/Social_Networking_Library#Create_Your_Application_Profile@Deprecated public boolean notifyFolderSharing(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyFolderSharing in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyFolderSharing(String userIdToNotify, SocialSharedFolder sharedFolder)
notifyFolderSharing in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolder instanceorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) throws Exception
notifyFolderUnsharing in interface NotificationsManageruserIdToNotify - the user you want to notifyunsharedFolderId - the unshared folder idunsharedFolderName - the unshared folder nameException@Deprecated public boolean notifyAdministratorUpgrade(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
notifyAdministratorUpgrade in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionpublic boolean notifyAdministratorUpgrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
notifyAdministratorUpgrade in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolder instanceException@Deprecated public boolean notifyAdministratorDowngrade(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws Exception
notifyAdministratorDowngrade in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderExceptionpublic boolean notifyAdministratorDowngrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
notifyAdministratorDowngrade in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolderExceptionpublic boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyFolderRenaming in interface NotificationsManageruserIdToNotify - the user you want to notifypreviousName - the previous name of the foldernewName - the new name of the folderrenamedFolderId - the folderIdorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyFolderAddedUser(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder, String newAddedUserId) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderAddedUser in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFoldernewAddedUserId - the new user that was addedorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderAddedUser in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolder instancenewAddedUserId - the new user that was addedorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyFolderAddedUsers(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder, List<String> newAddedUserIds) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderAddedUsers in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFoldernewAddedUserIds - List of new users that were addedorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderAddedUsers in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolder instancenewAddedUserIds - List of new users that were addedorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyFolderRemovedUser(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderRemovedUser in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared WorkspaceSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionpublic boolean notifyFolderRemovedUser(String userIdToNotify, SocialSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
notifyFolderRemovedUser in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared SocialSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalException@Deprecated public boolean notifyAddedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyAddedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder WorkspaceSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyAddedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyAddedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder SocialSharedFolder instanceorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyMovedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyMovedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder WorkspaceSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyMovedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyMovedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder SocialSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyRemovedItem(String userIdToNotify, String itemName, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyRemovedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder WorkspaceSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyRemovedItem(String userIdToNotify, String itemName, SocialSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyRemovedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder SocialSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyUpdatedItem(String userIdToNotify, org.gcube.common.homelibrary.home.workspace.WorkspaceItem item, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyUpdatedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder WorkspaceFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyUpdatedItem(String userIdToNotify, SocialFileItem item, SocialSharedFolder sharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyUpdatedItem in interface NotificationsManageruserIdToNotify - the user you want to notifysharedFolder - the shared folder SocialSharedFolderorg.gcube.common.homelibrary.home.exceptions.InternalErrorException@Deprecated public boolean notifyItemRenaming(String userIdToNotify, String previousName, org.gcube.common.homelibrary.home.workspace.WorkspaceItem renamedItem, org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder rootSharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyItemRenaming in interface NotificationsManageruserIdToNotify - the user you want to notifypreviousName - the previous name of the folderrenamedItem - the renamed WorkspaceItemrootSharedFolder - the root shared WorkspaceSharedFolder of the WorkspaceItemorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyItemRenaming(String userIdToNotify, String previousName, SocialFileItem renamedItem, SocialSharedFolder rootSharedFolder) throws org.gcube.common.homelibrary.home.exceptions.InternalErrorException
notifyItemRenaming in interface NotificationsManageruserIdToNotify - the user you want to notifypreviousName - the previous name of the folderrenamedItem - the renamed SocialFileItemrootSharedFolder - the root shared SocialSharedFolder of the SocialFileItemorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic boolean notifyMessageReceived(String userIdToNotify, String messageId, String subject, String messageText, String... otherRecipientsFullNames)
notifyMessageReceived in interface NotificationsManageruserIdToNotify - the user you want to notifymessageId - 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 anypublic boolean notifyPost(String userIdToNotify, String postId, String postText, String... hashtags)
notifyPost in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidpostText - the liked post text or a portion of itpublic boolean notifyPost(String userIdToNotify, String postId, String postText, Set<String> mentionedVREGroups, Set<String> hashtags)
NotificationsManagernotifyPost in interface NotificationsManageruserIdToNotify - 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 anypublic boolean notifyOwnCommentReply(String userIdToNotify, String postId, String postText, String commentKey)
notifyOwnCommentReply in interface NotificationsManageruserIdToNotify - 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 commentpublic boolean notifyCommentReply(String userIdToNotify, String postId, String commentText, String feedOwnerFullName, String feedOwnerId, String commentKey)
notifyCommentReply in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidcommentText - the liked post text or a portion of itfeedOwnerFullName - the full name of the user who created the postfeedOwnerId - the username of the user who created the postcommentKey - when sending email, stop the shown discussion at that commentpublic boolean notifyCommentOnFavorite(String userIdToNotify, String postId, String commentText, String commentKey)
notifyCommentOnFavorite in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidcommentText - the commentTextcommentKey - when sending email, stop the shown discussion at that commentpublic boolean notifyCommentOnLike(String userIdToNotify, String postId, String commentText, String commentKey)
notifyCommentOnLike in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidcommentText - the commentTextcommentKey - when sending email, stop the shown discussion at that commentpublic boolean notifyUserTag(String userIdToNotify, String postId, String postText, String commentKey)
notifyUserTag in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidcommentKey - when sending email, stop the shown discussion at that comment@Deprecated public boolean notifyLikedFeed(String userIdToNotify, String postId, String postText)
notifyLikedFeed in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidpostText - the liked post text or a portion of itpublic boolean notifyLikedPost(String userIdToNotify, String postId, String postText)
notifyLikedPost in interface NotificationsManageruserIdToNotify - the user you want to notifypostId - the liked postidpostText - the liked post text or a portion of itpublic boolean notifyJobStatus(String userIdToNotify, org.gcube.portal.databook.shared.RunningJob job)
notifyJobStatus in interface NotificationsManageruserIdToNotify - the user you want to notifypublic boolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
notifyNewCalendarEvent in interface NotificationsManageruserIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending datepublic boolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
notifyEditedCalendarEvent in interface NotificationsManageruserIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending datepublic boolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
notifyDeletedCalendarEvent in interface NotificationsManageruserIdToNotify - the user you want to notifyeventTitle - the title of the eventeventType - the type of the eventstartDate - staring dateendingDate - ending datepublic boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception
notifyTDMTabularResourceSharing in interface NotificationsManagerExceptionpublic boolean notifyTDMObjectSharing(String userIdToNotify, org.gcube.portal.databook.shared.NotificationType type, String tdmObjectName, String encodedTabularResourceParams) throws Exception
notifyTDMObjectSharing in interface NotificationsManageruserIdToNotify - 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 © 2019. All Rights Reserved.