Class ApplicationNotificationsManager
- java.lang.Object
-
- org.gcube.applicationsupportlayer.social.SocialPortalBridge
-
- org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager
-
- All Implemented Interfaces:
NotificationsManager
public class ApplicationNotificationsManager extends SocialPortalBridge implements NotificationsManager
- Author:
- Massimiliano Assante, ISTI-CNR use to notify users from within your application
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_MESSAGES_FRIENDLY_URLstatic StringUSER_NOTIFICATION_FRIENDLY_URLstatic StringUSER_WORKSPACE_FRIENDLY_URL-
Fields inherited from class org.gcube.applicationsupportlayer.social.SocialPortalBridge
applicationProfile, currGroupName, currScope, currUser
-
-
Constructor Summary
Constructors Constructor Description ApplicationNotificationsManager(SocialNetworkingSite site, String scope, SocialNetworkingUser currUser)Use this constructor if you do not need notifications to point back to your applicationsApplicationNotificationsManager(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 applicationsApplicationNotificationsManager(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.
-
Method Summary
All Methods Instance Methods Concrete 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)booleannotifyCommentOnLike(String userIdToNotify, String postId, String commentText, String commentKey)booleannotifyCommentReply(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 toobooleannotifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)Deprecated.booleannotifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)Deprecated.booleannotifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId)Deprecated.booleannotifyFolderAddedUser(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.booleannotifyFolderAddedUsers(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.booleannotifyLikedPost(String userIdToNotify, String postId, String postText)use to notify a user he got one of his post likedbooleannotifyMessageReceived(String userIdToNotify, String messageId, 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.booleannotifyOwnCommentReply(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)use to notify a user that someone created this postbooleannotifyPost(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 itemName, 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.booleannotifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams)Deprecated.booleannotifyUpdatedItem(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 postText, String commentKey)use to notify a user that he was mentioned (tagged) on a post-
Methods inherited from class org.gcube.applicationsupportlayer.social.SocialPortalBridge
escapeHtml, getApplicationProfile, getStoreInstance
-
-
-
-
Field Detail
-
USER_WORKSPACE_FRIENDLY_URL
public static final String USER_WORKSPACE_FRIENDLY_URL
- See Also:
- Constant Field Values
-
USER_MESSAGES_FRIENDLY_URL
public static final String USER_MESSAGES_FRIENDLY_URL
- See Also:
- Constant Field Values
-
USER_NOTIFICATION_FRIENDLY_URL
public static final String USER_NOTIFICATION_FRIENDLY_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplicationNotificationsManager
public ApplicationNotificationsManager(SocialNetworkingSite site, String scope, SocialNetworkingUser currUser)
Use this constructor if you do not need notifications to point back to your applications
- Parameters:
scope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user datasite- an instance ofSocialNetworkingSitefilled with the required data
-
ApplicationNotificationsManager
public 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
- Parameters:
userManager- a remote implementation ofUserManager,seeLiferayWSUserManagersite- an instance ofSocialNetworkingSitefilled with the required datascope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user data
-
ApplicationNotificationsManager
public 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.
- Parameters:
scope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user datasite- an instance ofSocialNetworkingSitefilled with the required dataportletClassName- your portlet class name will be used ad unique identifier for your applicationProfile
-
ApplicationNotificationsManager
public 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.
- Parameters:
userManager- a remote implementation ofUserManager,seeLiferayWSUserManagerscope- the current scopecurrUser- an instance ofSocialNetworkingUserfilled with the required user datasite- an instance ofSocialNetworkingSitefilled with the required dataportletClassName- your portlet class name will be used ad unique identifier for your applicationProfile
-
-
Method Detail
-
notifyFolderSharing
public boolean notifyFolderSharing(String userIdToNotify, SocialSharedFolder sharedFolder)
use to notify a user he got a workspace folder shared- Specified by:
notifyFolderSharingin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
InternalErrorException
-
notifyFolderUnsharing
public boolean notifyFolderUnsharing(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) throws Exception
use to notify a user he got a workspace folder shared- Specified by:
notifyFolderUnsharingin interfaceNotificationsManager- 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
public boolean notifyAdministratorUpgrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
use to notify a user he got upgraded to Administrator of a folder shared- Specified by:
notifyAdministratorUpgradein interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyAdministratorDowngrade
public boolean notifyAdministratorDowngrade(String userIdToNotify, SocialSharedFolder sharedFolder) throws Exception
use to notify a user he got downgraded from Administrator of a folder shared- Specified by:
notifyAdministratorDowngradein interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
notifyFolderRenaming
public boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId)
use to notify a user he got a workspace folder renamed- Specified by:
notifyFolderRenamingin interfaceNotificationsManager- 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:
InternalErrorException
-
notifyFolderAddedUser
@Deprecated public boolean notifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId) throws org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
Deprecated.- Specified by:
notifyFolderAddedUserin interfaceNotificationsManager- Throws:
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
-
notifyFolderAddedUser
public boolean notifyFolderAddedUser(String userIdToNotify, SocialSharedFolder sharedFolder, String newAddedUserId, org.gcube.vomanagement.usermanagement.UserManager um) throws org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
use to notify a user that a new user was added in on of his workspace shared folder- Specified by:
notifyFolderAddedUserin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstancenewAddedUserId- the new user that was added- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
org.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
-
notifyFolderAddedUsers
@Deprecated public boolean notifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds) throws org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
Deprecated.- Specified by:
notifyFolderAddedUsersin interfaceNotificationsManager- Throws:
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
-
notifyFolderAddedUsers
public boolean notifyFolderAddedUsers(String userIdToNotify, SocialSharedFolder sharedFolder, List<String> newAddedUserIds, org.gcube.vomanagement.usermanagement.UserManager um) throws org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
use to notify a user that a new user was added in on of his workspace shared folder- Specified by:
notifyFolderAddedUsersin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolderinstancenewAddedUserIds- List of new users that were added- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
org.gcube.vomanagement.usermanagement.exception.UserManagementPortalExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
-
notifyFolderRemovedUser
public boolean notifyFolderRemovedUser(String userIdToNotify, SocialSharedFolder sharedFolder) throws org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
use to notify a user that an existing user was removed from one of his workspace shared folder- Specified by:
notifyFolderRemovedUserin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the sharedSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultorg.gcube.vomanagement.usermanagement.exception.UserManagementPortalException
-
notifyAddedItem
public 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- Specified by:
notifyAddedItemin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the shared folderSocialSharedFolderinstance- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
InternalErrorException
-
notifyMovedItem
public 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- Specified by:
notifyMovedItemin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
InternalErrorException
-
notifyRemovedItem
public 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- Specified by:
notifyRemovedItemin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
InternalErrorException
-
notifyUpdatedItem
public 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- Specified by:
notifyUpdatedItemin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifysharedFolder- the shared folderSocialSharedFolder- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
InternalErrorException
-
notifyItemRenaming
public boolean notifyItemRenaming(String userIdToNotify, String previousName, SocialFileItem renamedItem, SocialSharedFolder rootSharedFolder)
use to notify a user he got a workspace item renamed- Specified by:
notifyItemRenamingin interfaceNotificationsManager- 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:
InternalErrorException
-
notifyMessageReceived
public boolean notifyMessageReceived(String userIdToNotify, String messageId, String subject, String messageText, String... otherRecipientsFullNames)
- Specified by:
notifyMessageReceivedin interfaceNotificationsManager- Parameters:
userIdToNotify- 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 any- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyPost
public boolean notifyPost(String userIdToNotify, String postId, String postText, String... hashtags)
use to notify a user that someone created this post- Specified by:
notifyPostin interfaceNotificationsManager- 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
public boolean notifyPost(String userIdToNotify, String postId, String postText, Set<String> mentionedVREGroups, Set<String> hashtags)
Description copied from interface:NotificationsManageruse to notify a user that someone created this post- Specified by:
notifyPostin interfaceNotificationsManager- 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
public boolean notifyOwnCommentReply(String userIdToNotify, String postId, String postText, String commentKey)
use to notify a user that someone commented on his post- Specified by:
notifyOwnCommentReplyin interfaceNotificationsManager- 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
public 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- Specified by:
notifyCommentReplyin interfaceNotificationsManager- Parameters:
userIdToNotify- 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 comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyCommentOnFavorite
public boolean notifyCommentOnFavorite(String userIdToNotify, String postId, String commentText, String commentKey)
- Specified by:
notifyCommentOnFavoritein interfaceNotificationsManager- 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
public boolean notifyCommentOnLike(String userIdToNotify, String postId, String commentText, String commentKey)
- Specified by:
notifyCommentOnLikein interfaceNotificationsManager- 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
public boolean notifyUserTag(String userIdToNotify, String postId, String postText, String commentKey)
use to notify a user that he was mentioned (tagged) on a post- Specified by:
notifyUserTagin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notifypostId- the liked postidcommentKey- when sending email, stop the shown discussion at that comment- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyLikedFeed
@Deprecated public boolean notifyLikedFeed(String userIdToNotify, String postId, String postText)
Deprecated.use to notify a user he got one of his post liked- Specified by:
notifyLikedFeedin interfaceNotificationsManager- 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
public boolean notifyLikedPost(String userIdToNotify, String postId, String postText)
use to notify a user he got one of his post liked- Specified by:
notifyLikedPostin interfaceNotificationsManager- 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
public boolean notifyJobStatus(String userIdToNotify, org.gcube.portal.databook.shared.RunningJob job)
use to notify a user he got one of his job finished- Specified by:
notifyJobStatusin interfaceNotificationsManager- Parameters:
userIdToNotify- the user you want to notify- Returns:
- true if the notification is correctly delivered, false otherwise
-
notifyNewCalendarEvent
@Deprecated public boolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.- Specified by:
notifyNewCalendarEventin interfaceNotificationsManager
-
notifyEditedCalendarEvent
@Deprecated public boolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.- Specified by:
notifyEditedCalendarEventin interfaceNotificationsManager
-
notifyDeletedCalendarEvent
@Deprecated public boolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate)
Deprecated.- Specified by:
notifyDeletedCalendarEventin interfaceNotificationsManager
-
notifyTDMTabularResourceSharing
@Deprecated public boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception
Deprecated.- Specified by:
notifyTDMTabularResourceSharingin interfaceNotificationsManager- Throws:
Exception
-
notifyTDMObjectSharing
@Deprecated public boolean notifyTDMObjectSharing(String userIdToNotify, org.gcube.portal.databook.shared.NotificationType type, String tdmObjectName, String encodedTabularResourceParams) throws Exception
Deprecated.- Specified by:
notifyTDMObjectSharingin interfaceNotificationsManager- Throws:
Exception
-
notifyCatalogueEvent
public boolean notifyCatalogueEvent(org.gcube.portal.databook.shared.NotificationType type, String userIdToNotify, String itemId, String notifyText, URL url) throws ExceptionDescription copied from interface:NotificationsManageruse to notify a catalogue moderators someone submitted an item for consideration- Specified by:
notifyCatalogueEventin interfaceNotificationsManager- Parameters:
type- the notification typeuserIdToNotify- the user you want to notifyitemId- the item unique identifiernotifyText- the text of the notification- Returns:
- true if the notification is correctly delivered, false otherwise
- Throws:
Exception
-
-