public class SystemNotificationServiceImpl extends Object implements SystemNotificationService
Constructor and Description |
---|
SystemNotificationServiceImpl(NotificationManager notificationManager) |
Modifier and Type | Method and Description |
---|---|
NotificationRule |
doesSystemNotificationSetContainRule(NotificationRule rule)
Checks if a identical system notification already exists (for validation purposes).
|
List<NotificationRule> |
getSystemNotificationRules()
Get a copy of all system notification rules.
|
void |
removeSystemNotificationRule(long id)
Remove an individual system notification
|
void |
saveSystemNotificationRule(NotificationRule notificationRule)
Save an individual system notification rule.
|
public SystemNotificationServiceImpl(NotificationManager notificationManager)
@Nullable public NotificationRule doesSystemNotificationSetContainRule(@NotNull NotificationRule rule)
SystemNotificationService
doesSystemNotificationSetContainRule
in interface SystemNotificationService
rule
- to compare with.public void saveSystemNotificationRule(@NotNull NotificationRule notificationRule)
SystemNotificationService
saveSystemNotificationRule
in interface SystemNotificationService
notificationRule
- to be addedpublic void removeSystemNotificationRule(long id)
SystemNotificationService
removeSystemNotificationRule
in interface SystemNotificationService
id
- of the notification to be removed@NotNull public List<NotificationRule> getSystemNotificationRules()
SystemNotificationService
getSystemNotificationRules
in interface SystemNotificationService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.