public interface INotificationDAO
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Notification notification) |
int |
deleteAll(Date maxAge,
PushState... statesToDelete)
Delete all notifications with pushDate older than maxAge and with the
given PushState.
|
Notification |
getByConfirmationKey(String key) |
Notification |
getNext() |
List<Notification> |
getRecent(String userId,
Set<Notification.Type> types,
int first,
int count) |
void |
save(Notification notification) |
void |
update(Notification notification) |
void save(@Nonnull Notification notification)
void update(@Nonnull Notification notification)
void delete(@Nonnull Notification notification)
int deleteAll(Date maxAge, PushState... statesToDelete)
maxAge - statesToDelete - states to delete, omit to delete all statesNotification getNext()
@Nonnull List<Notification> getRecent(@Nonnull String userId, @Nonnull Set<Notification.Type> types, @Nonnegative int first, @Nonnegative int count)
Notification getByConfirmationKey(String key)
Copyright © 2015 Molindo GmbH. All Rights Reserved.