|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao
com.atlassian.confluence.mail.notification.persistence.dao.hibernate.HibernateNotificationDao
public class HibernateNotificationDao
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
cacheFactory |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateNotificationDao()
|
|
| Method Summary | |
|---|---|
List<Notification> |
findAllDailyReportNotifications()
Find all daily report notifications. |
List<Notification> |
findAllNotificationsBySpace(Space space)
Find all notifications linked to the specified space regardless of type specified. |
List<Notification> |
findAllNotificationsByUser(com.atlassian.user.User user)
Find all notifications owned by the specified user, including digest etc. |
Notification |
findDailyReportNotification(String username)
Find the specified user's daily report notification. |
Notification |
findGlobalBlogWatchForUser(com.atlassian.user.User user)
Find the global blog notification for this user if they have one. |
Notification |
findNetworkNotificationByUser(com.atlassian.user.User user)
Find the Network notification for this user if they have one. |
Notification |
findNotificationByUserAndPage(com.atlassian.user.User user,
AbstractPage page)
|
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
Space space)
Find any user notification linked to the specified space regardless of type. |
Notification |
findNotificationByUserAndSpace(com.atlassian.user.User user,
String spaceKey)
Find any user notification linked to the specified space regardless of type. |
Notification |
findNotificationByUserAndSpaceAndType(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
Find the user notification linked to the specified space with a type specified - may be null if watching the whole space. |
List<Notification> |
findNotificationsByFollowing(com.atlassian.user.User user)
|
List<Notification> |
findNotificationsByPage(AbstractPage page)
Find the notifications linked to the specified content. |
List<Notification> |
findNotificationsBySpace(Space space)
Find the notifications linked to the specified space regardless of type specified. |
List<Notification> |
findNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
Find all notifications linked to the specified space for a certain type. |
List<Notification> |
findNotificationsByUser(com.atlassian.user.User user)
Find the space and page notifications owned by the specified user. |
Iterable<Long> |
findPageAndSpaceNotificationIdsFromSpace(Space space)
Retrieves ids for all notifications in a space. |
List<Notification> |
findSiteBlogNotifications()
Find the global blog notification for all users. |
Class |
getPersistentClass()
|
void |
removeAllNotificationsForUser(com.atlassian.user.User user)
Remove all the notifications for a particular user. |
void |
removeDailyReportNotificationForUser(String username)
|
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public HibernateNotificationDao()
| Method Detail |
|---|
public List<Notification> findNotificationsByUser(com.atlassian.user.User user)
NotificationDao
findNotificationsByUser in interface NotificationDaopublic List<Notification> findAllNotificationsByUser(com.atlassian.user.User user)
NotificationDao
findAllNotificationsByUser in interface NotificationDaopublic List<Notification> findNotificationsByPage(AbstractPage page)
NotificationDao
findNotificationsByPage in interface NotificationDaopublic List<Notification> findNotificationsBySpace(Space space)
NotificationDao
findNotificationsBySpace in interface NotificationDaopublic List<Notification> findAllNotificationsBySpace(Space space)
NotificationDao
findAllNotificationsBySpace in interface NotificationDaopublic Iterable<Long> findPageAndSpaceNotificationIdsFromSpace(Space space)
NotificationDao
findPageAndSpaceNotificationIdsFromSpace in interface NotificationDaospace - a space to find the notifications for
public List<Notification> findNotificationsBySpaceAndType(Space space,
ContentTypeEnum type)
NotificationDao
findNotificationsBySpaceAndType in interface NotificationDao
public Notification findNotificationByUserAndPage(com.atlassian.user.User user,
AbstractPage page)
findNotificationByUserAndPage in interface NotificationDao
public Notification findNotificationByUserAndSpace(com.atlassian.user.User user,
Space space)
NotificationDao
findNotificationByUserAndSpace in interface NotificationDao
public Notification findNotificationByUserAndSpace(com.atlassian.user.User user,
String spaceKey)
NotificationDao
findNotificationByUserAndSpace in interface NotificationDao
public Notification findNotificationByUserAndSpaceAndType(com.atlassian.user.User user,
Space space,
ContentTypeEnum type)
NotificationDao
findNotificationByUserAndSpaceAndType in interface NotificationDaopublic void removeAllNotificationsForUser(com.atlassian.user.User user)
NotificationDao
removeAllNotificationsForUser in interface NotificationDaouser - the user to remove all notifications forpublic void removeDailyReportNotificationForUser(String username)
removeDailyReportNotificationForUser in interface NotificationDaopublic Notification findDailyReportNotification(String username)
NotificationDao
findDailyReportNotification in interface NotificationDaopublic List<Notification> findAllDailyReportNotifications()
NotificationDao
findAllDailyReportNotifications in interface NotificationDaopublic Notification findGlobalBlogWatchForUser(com.atlassian.user.User user)
findGlobalBlogWatchForUser in interface NotificationDaopublic Notification findNetworkNotificationByUser(com.atlassian.user.User user)
findNetworkNotificationByUser in interface NotificationDaopublic List<Notification> findSiteBlogNotifications()
NotificationDao
findSiteBlogNotifications in interface NotificationDaopublic List<Notification> findNotificationsByFollowing(com.atlassian.user.User user)
findNotificationsByFollowing in interface NotificationDaopublic Class getPersistentClass()
getPersistentClass in interface ObjectDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||