|
||||||||||
| 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.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.notification.NotificationHibernateDao
public class NotificationHibernateDao
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
NotificationHibernateDao()
|
|
| Method Summary | |
|---|---|
void |
deleteNotification(NotificationRule rule)
Used to remove a notification from db. |
java.util.List<UsersNotification> |
getNotificationRulesForRecipients(java.lang.String recipientType,
java.util.Collection<java.lang.String> recipients)
Retrieve all notification rules of a specific type matching the given list of recipient values. |
java.util.List<UsersNotification> |
getNotificationRulesForRecipientType(java.lang.String recipientType)
Retrieve All notification rules with a specific recipient type (useful for retrieveing watchers and committers) |
java.util.List<NotificationSet> |
getNotificationSetsForType(NotificationSet.NotificationSetType type)
Retrieve notification sets belonging to a specific type. |
java.lang.Class |
getPersistentClass()
|
void |
saveNotificationRule(NotificationRule newRule)
Save new/existing notification rule |
| Methods inherited from class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
|---|
executeCountQuery, executeReturnLong, findById, findById |
| Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
|---|
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, 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 com.atlassian.bamboo.persistence.BambooObjectDao |
|---|
findById |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public NotificationHibernateDao()
| Method Detail |
|---|
public java.lang.Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDaopublic void deleteNotification(NotificationRule rule)
NotificationDao
deleteNotification in interface NotificationDaorule - Complete NotificationRule Objectpublic void saveNotificationRule(NotificationRule newRule)
NotificationDao
saveNotificationRule in interface NotificationDaonewRule - New or Existing NotificationRule Object
@NotNull
public java.util.List<UsersNotification> getNotificationRulesForRecipients(@NotNull
java.lang.String recipientType,
@NotNull
java.util.Collection<java.lang.String> recipients)
NotificationDao
getNotificationRulesForRecipients in interface NotificationDaorecipientType - the key of the recipient type to search forrecipients - a list of values to match (eg email addresses, usernames etc)
@NotNull public java.util.List<UsersNotification> getNotificationRulesForRecipientType(java.lang.String recipientType)
NotificationDao
getNotificationRulesForRecipientType in interface NotificationDao@NotNull public java.util.List<NotificationSet> getNotificationSetsForType(NotificationSet.NotificationSetType type)
NotificationDao
getNotificationSetsForType in interface NotificationDaotype - to be retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||