public class NotificationClient extends BaseClient
| Constructor and Description |
|---|
NotificationClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUnreadMessagesNotificationsLib(String userid) |
boolean |
checkUnreadNotificationsLib(String userid) |
List<org.gcube.portal.databook.shared.Notification> |
getAllNotificationByUserLib(String userid,
int limit) |
List<org.gcube.portal.databook.shared.Notification> |
getNotifications(int from,
int quantity)
Get range notifications
|
List<org.gcube.portal.databook.shared.Notification> |
getRangeNotificationsByUserLib(String userid,
int from,
int quantity) |
List<org.gcube.portal.databook.shared.Notification> |
getUnreadNotificationsByUserLib(String userid) |
List<org.gcube.portal.databook.shared.NotificationChannelType> |
getUserNotificationChannelsLib(String userid,
org.gcube.portal.databook.shared.NotificationType notificationType) |
Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> |
getUserNotificationPreferencesLib(String userid) |
org.gcube.portal.databook.shared.Notification |
readNotificationLib(String notificationid) |
boolean |
saveNotificationLib(org.gcube.portal.databook.shared.Notification n) |
void |
sendCatalogueEvent(org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent event)
Notify a catalogue event, types availeble see
CatalogueEventType |
void |
sendJobNotification(org.gcube.social_networking.socialnetworking.model.beans.JobNotificationBean notification)
Notify job status
|
void |
sendWorkspaceEvent(org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEvent event)
Notify a catalogue event, types available see
WorkspaceEventType |
boolean |
setAllNotificationReadByUserLib(String userid) |
boolean |
setNotificationReadLib(String notificationid) |
boolean |
setUserNotificationPreferencesLib(String userid,
Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels) |
getServiceEndpointpublic List<org.gcube.portal.databook.shared.Notification> getNotifications(int from, int quantity)
from - greater or equal to onequantity - public void sendJobNotification(org.gcube.social_networking.socialnetworking.model.beans.JobNotificationBean notification)
notification - public void sendWorkspaceEvent(org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEvent event)
WorkspaceEventTypeevent - an instance of WorkspaceEventpublic void sendCatalogueEvent(org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent event)
CatalogueEventTypeevent - an instance of CatalogueEventpublic boolean saveNotificationLib(org.gcube.portal.databook.shared.Notification n)
public org.gcube.portal.databook.shared.Notification readNotificationLib(String notificationid)
public boolean setNotificationReadLib(String notificationid)
public List<org.gcube.portal.databook.shared.Notification> getAllNotificationByUserLib(String userid, int limit)
public List<org.gcube.portal.databook.shared.Notification> getUnreadNotificationsByUserLib(String userid)
public List<org.gcube.portal.databook.shared.Notification> getRangeNotificationsByUserLib(String userid, int from, int quantity)
public boolean setAllNotificationReadByUserLib(String userid)
public boolean checkUnreadNotificationsLib(String userid)
public boolean checkUnreadMessagesNotificationsLib(String userid)
public List<org.gcube.portal.databook.shared.NotificationChannelType> getUserNotificationChannelsLib(String userid, org.gcube.portal.databook.shared.NotificationType notificationType)
public boolean setUserNotificationPreferencesLib(String userid, Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels)
Copyright © 2023. All rights reserved.