public class NotificationHibernateDao extends BambooHibernateObjectDao implements NotificationDao
| Constructor and Description |
|---|
NotificationHibernateDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNotification(NotificationRule rule)
Used to remove a notification from db.
|
List<UsersNotification> |
getNotificationRulesForRecipients(String recipientType,
Collection<String> recipients)
Retrieve all notification rules of a specific type matching the given list of recipient values.
|
List<UsersNotification> |
getNotificationRulesForRecipientType(String recipientType)
Retrieve All notification rules with a specific recipient type (useful for retrieveing watchers and committers)
|
List<NotificationSet> |
getNotificationSetsForType(NotificationSet.NotificationSetType type)
Retrieve notification sets belonging to a specific type.
|
Class |
getPersistentClass() |
void |
saveNotificationRule(NotificationRule newRule)
Save new/existing notification rule
|
void |
saveNotificationSet(NotificationSet notificationSet)
Save new/existing notification set.
|
executeReturnLong, findById, findByIdfindAll, 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, updateModificationDatacheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByIdpublic Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDaopublic void deleteNotification(NotificationRule rule)
NotificationDaodeleteNotification in interface NotificationDaorule - Complete NotificationRule Objectpublic void saveNotificationRule(NotificationRule newRule)
NotificationDaosaveNotificationRule in interface NotificationDaonewRule - New or Existing NotificationRule Objectpublic void saveNotificationSet(@NotNull
NotificationSet notificationSet)
NotificationDaosaveNotificationSet in interface NotificationDaonotificationSet - New or existing notification set. Must be an instance of EntityObject.@NotNull public List<UsersNotification> getNotificationRulesForRecipients(@NotNull String recipientType, @NotNull Collection<String> recipients)
NotificationDaogetNotificationRulesForRecipients 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 List<UsersNotification> getNotificationRulesForRecipientType(String recipientType)
NotificationDaogetNotificationRulesForRecipientType in interface NotificationDao@NotNull public List<NotificationSet> getNotificationSetsForType(NotificationSet.NotificationSetType type)
NotificationDaogetNotificationSetsForType in interface NotificationDaotype - to be retrievedCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.