public class NotificationsServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements NotificationsService
| Constructor and Description |
|---|
NotificationsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.gcube.portal.databook.shared.UserInfo |
getUserInfo() |
LinkedHashMap<String,ArrayList<NotificationPreference>> |
getUserNotificationPreferences() |
HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> |
getUserNotifications()
returns the notifications separated per days
|
void |
init()
connect to cassandra at startup
|
boolean |
setAllUserNotificationsRead()
this sets all the notifications for this user read
|
boolean |
setUserNotificationPreferences(Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
init in class javax.servlet.GenericServletpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic org.gcube.portal.databook.shared.UserInfo getUserInfo()
getUserInfo in interface NotificationsServicepublic HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> getUserNotifications()
getUserNotifications in interface NotificationsServicepublic boolean setAllUserNotificationsRead()
setAllUserNotificationsRead in interface NotificationsServicepublic LinkedHashMap<String,ArrayList<NotificationPreference>> getUserNotificationPreferences()
getUserNotificationPreferences in interface NotificationsServicepublic boolean setUserNotificationPreferences(Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels)
setUserNotificationPreferences in interface NotificationsServiceCopyright © 2014. All Rights Reserved.