|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package org.gcube.applicationsupportlayer.social;
|
|
|
|
|
|
|
|
|
|
import java.net.URL;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Set;
|
|
|
|
@ -148,33 +149,26 @@ public interface NotificationsManager {
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyMessageReceived(String userIdToNotify, String messageUniqueIdentifier, String subject, String messageText, String ... otherRecipientsFullNames);
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* use to notify a catalogue moderators someone submitted an item for consideration
|
|
|
|
|
* @param type the notification type
|
|
|
|
|
* @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
|
|
|
|
|
* @param itemId the item unique identifier
|
|
|
|
|
* @param notifyText the text of the notification
|
|
|
|
|
* @param the resolver URL pointing to the item
|
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyCatalogueEvent(NotificationType type, String userIdToNotify, String itemId, String notifyText, URL url) throws Exception;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated no longer supported
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyNewCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @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
|
|
|
|
|
* @deprecated no longer supported
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyEditedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @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
|
|
|
|
|
* @deprecated no longer supported
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyDeletedCalendarEvent(String userIdToNotify, String eventTitle, String eventType, Date startDate, Date endingDate);
|
|
|
|
|
|
|
|
|
@ -280,16 +274,12 @@ public interface NotificationsManager {
|
|
|
|
|
* @return true if the notification is correctly delivered, false otherwise
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyJobStatus(String userIdToNotify, RunningJob job);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @deprecated no longer supported
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams) throws Exception;
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
* @deprecated no longer supported
|
|
|
|
|
*/
|
|
|
|
|
boolean notifyTDMObjectSharing(String userIdToNotify, NotificationType type, String tdmObjectName, String encodedTabularResourceParams) throws Exception;
|
|
|
|
|
|
|
|
|
|