public interface NotificationStore
Modifier and Type | Method and Description |
---|---|
void |
clearPersistentNotifications()
Removes all notifications from the store.
|
java.util.Date |
getLastServerUpdate()
Loads the date when the notifications was updated from the server the last time.
|
java.util.Set<PersistentNotification> |
getPersistentNotifications()
Loads all saved
PersistentNotification s. |
void |
replacePersistentNotifications(java.util.Set<PersistentNotification> persistentNotifications)
Replaces the currently stored
PersistentNotification s by the passed ones. |
void |
saveLastServerUpdate(java.util.Date date)
Saves the date when the notifications was updated from the server the last time.
|
void |
updatePersistentNotification(java.util.Set<PersistentNotification> updatePersistentNotifications)
Updates the
PersistentNotification in the NotificationStore with the given
updatePersistentNotifications . |
java.util.Date getLastServerUpdate()
void saveLastServerUpdate(java.util.Date date)
date
- The last update date.java.util.Set<PersistentNotification> getPersistentNotifications()
PersistentNotification
s.PersistentNotification
svoid updatePersistentNotification(java.util.Set<PersistentNotification> updatePersistentNotifications)
PersistentNotification
in the NotificationStore
with the given
updatePersistentNotifications
. The notifications to update are identified by their hashCode/equals
methods.updatePersistentNotifications
- The PersistentNotification
to update.void replacePersistentNotifications(java.util.Set<PersistentNotification> persistentNotifications)
PersistentNotification
s by the passed ones.persistentNotifications
- The PersistentNotification
s to store.void clearPersistentNotifications()