com.atlassian.confluence.mail.notification.persistence
Interface NotificationDao

All Superinterfaces:
ObjectDao
All Known Implementing Classes:
HibernateNotificationDao

public interface NotificationDao
extends ObjectDao

Data Access Object interface for dealing with notifications.


Method Summary
 List findAllDailyReportNotifications()
          Find all daily report notifications.
 Notification findDailyReportNotification(String username)
          Find the specified users daily report notification.
 Notification findNotificationByUserAndPage(User user, AbstractPage page)
           
 Notification findNotificationByUserAndSpace(User user, String spaceKey)
           
 List findNotificationsByPage(AbstractPage Page)
          Find the notifications linked to the specified content.
 List findNotificationsBySpace(Space space)
          Find the notifications links to the specified space.
 List findNotificationsByUser(User user)
          Find the space and page notifications owned by the specified user.
 void removeAllNotificationsForUser(User user)
           
 void removeDailyReportNotificationForUser(String username)
           
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Method Detail

findNotificationsByUser

public List findNotificationsByUser(User user)
Find the space and page notifications owned by the specified user.

Parameters:
user -
Returns:
a list of Notifcation objects.

findNotificationsByPage

public List findNotificationsByPage(AbstractPage Page)
Find the notifications linked to the specified content.

Parameters:
Page -
Returns:
a list of Notification objects.

findNotificationsBySpace

public List findNotificationsBySpace(Space space)
Find the notifications links to the specified space.

Parameters:
space -
Returns:
a list of Notification objects.

findNotificationByUserAndPage

public Notification findNotificationByUserAndPage(User user,
                                                  AbstractPage page)

findNotificationByUserAndSpace

public Notification findNotificationByUserAndSpace(User user,
                                                   String spaceKey)

removeAllNotificationsForUser

public void removeAllNotificationsForUser(User user)

removeDailyReportNotificationForUser

public void removeDailyReportNotificationForUser(String username)

findDailyReportNotification

public Notification findDailyReportNotification(String username)
Find the specified users daily report notification.

Parameters:
username -
Returns:
a notification object or null if no daily report notification exists for the specified user.

findAllDailyReportNotifications

public List findAllDailyReportNotifications()
Find all daily report notifications. These notifications are not associated with a page OR a space.

Returns:
a list of notifications.


Confluence is developed by Atlassian.