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
|
void |
saveNotificationSet(NotificationSet notificationSet)
Save new/existing notification set.
|
findById
void deleteNotification(NotificationRule rule)
rule
- Complete NotificationRule Objectvoid saveNotificationRule(NotificationRule newRule)
newRule
- New or Existing NotificationRule Objectvoid saveNotificationSet(@NotNull NotificationSet notificationSet)
notificationSet
- New or existing notification set. Must be an instance of EntityObject
.IllegalArgumentException
- If the given notification set is not an instance of EntityObject
@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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.