org.starhope.appius.user.notifications
Interface NotificationSetLoader

All Superinterfaces:
RecordSetLoader<NotificationSet>

public interface NotificationSetLoader
extends RecordSetLoader<NotificationSet>

Load notifications. This is just the interface... specific storage engines (e.g. SQL) will implement this interface

Author:
brpocock@star-hope.org

Method Summary
 NotificationSet loadRecordSetFor(AbstractUser whom)
          Get all (read and unread) notifications for a given user
 NotificationSet loadUnreadRecordSetFor(AbstractUser whom)
          Get unread (unhandled, not-deleted) notifications for a given user
 
Methods inherited from interface org.starhope.appius.util.RecordSetLoader
initializeStorage, loadRecordSet, loadRecordSetByIDs, saveRecordSet
 

Method Detail

loadRecordSetFor

NotificationSet loadRecordSetFor(AbstractUser whom)
Get all (read and unread) notifications for a given user

Parameters:
whom - the user whose notifications are to be loaded
Returns:
the notification set

loadUnreadRecordSetFor

NotificationSet loadUnreadRecordSetFor(AbstractUser whom)
Get unread (unhandled, not-deleted) notifications for a given user

Parameters:
whom - the user whose notifications are to be loaded
Returns:
the unread notifications for that user