public interface NotificationDao extends BambooObjectDao
| 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.
|
void |
saveNotificationRule(NotificationRule newRule)
Save new/existing notification rule
|
findByIdvoid deleteNotification(NotificationRule rule)
rule - Complete NotificationRule Objectvoid saveNotificationRule(NotificationRule newRule)
newRule - New or Existing NotificationRule Object@NotNull List<UsersNotification> getNotificationRulesForRecipients(@NotNull String recipientType, @NotNull Collection<String> recipients)
recipientType - the key of the recipient type to search forrecipients - a list of values to match (eg email addresses, usernames etc)@NotNull List<UsersNotification> getNotificationRulesForRecipientType(String recipientType)
recipientType - @NotNull List<NotificationSet> getNotificationSetsForType(NotificationSet.NotificationSetType type)
type - to be retrievedCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.