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, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, 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 String getDevelopmentUser()
public 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 HashMap<Date,ArrayList<org.gcube.portal.databook.shared.Notification>> getUserNotificationsByRange(int from, int quantity)
getUserNotificationsByRange 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 © 2016. All Rights Reserved.