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() |
String |
getDevelopmentUser()
set the user in development mode
|
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 day
|
HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> |
getUserNotificationsByRange(int from,
int quantity)
returns the notifications in the range separated per day
|
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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init()
init
in class javax.servlet.GenericServlet
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public String getDevelopmentUser()
public org.gcube.portal.databook.shared.UserInfo getUserInfo()
getUserInfo
in interface NotificationsService
public HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> getUserNotifications()
getUserNotifications
in interface NotificationsService
public HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> getUserNotificationsByRange(int from, int quantity)
getUserNotificationsByRange
in interface NotificationsService
public boolean setAllUserNotificationsRead()
setAllUserNotificationsRead
in interface NotificationsService
public LinkedHashMap<String,ArrayList<NotificationPreference>> getUserNotificationPreferences()
getUserNotificationPreferences
in interface NotificationsService
public boolean setUserNotificationPreferences(Map<org.gcube.portal.databook.shared.NotificationType,org.gcube.portal.databook.shared.NotificationChannelType[]> enabledChannels)
setUserNotificationPreferences
in interface NotificationsService
Copyright © 2014. All Rights Reserved.