Class SystemNotificationServiceImpl
java.lang.Object
com.atlassian.bamboo.notification.SystemNotificationServiceImpl
- All Implemented Interfaces:
SystemNotificationService
Class to provide access to system notifications
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable NotificationRule
doesSystemNotificationSetContainRule
(@NotNull NotificationRule rule) Checks if a identical system notification already exists (for validation purposes).@NotNull List<NotificationRule>
Get a copy of all system notification rules.void
removeSystemNotificationRule
(long id) Remove an individual system notificationvoid
saveSystemNotificationRule
(@NotNull NotificationRule notificationRule) Save an individual system notification rule.
-
Constructor Details
-
SystemNotificationServiceImpl
-
-
Method Details
-
doesSystemNotificationSetContainRule
@Nullable public @Nullable NotificationRule doesSystemNotificationSetContainRule(@NotNull @NotNull NotificationRule rule) Description copied from interface:SystemNotificationService
Checks if a identical system notification already exists (for validation purposes). If it exists it will return the existing object, otherwise it will return null.- Specified by:
doesSystemNotificationSetContainRule
in interfaceSystemNotificationService
- Parameters:
rule
- to compare with.- Returns:
- existing rule if exists, that is the same as the provided rule
-
saveSystemNotificationRule
Description copied from interface:SystemNotificationService
Save an individual system notification rule.- Specified by:
saveSystemNotificationRule
in interfaceSystemNotificationService
- Parameters:
notificationRule
- to be added
-
removeSystemNotificationRule
public void removeSystemNotificationRule(long id) Description copied from interface:SystemNotificationService
Remove an individual system notification- Specified by:
removeSystemNotificationRule
in interfaceSystemNotificationService
- Parameters:
id
- of the notification to be removed
-
getSystemNotificationRules
Description copied from interface:SystemNotificationService
Get a copy of all system notification rules.- Specified by:
getSystemNotificationRules
in interfaceSystemNotificationService
- Returns:
- lists of all system notification rules, sorted.
-