Class SystemNotificationServiceImpl
java.lang.Object
com.atlassian.bamboo.notification.SystemNotificationServiceImpl
- All Implemented Interfaces:
SystemNotificationService
Class to provide access to system notifications
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable NotificationRuledoesSystemNotificationSetContainRule(@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.voidremoveSystemNotificationRule(long id) Remove an individual system notificationvoidsaveSystemNotificationRule(@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:SystemNotificationServiceChecks 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:
doesSystemNotificationSetContainRulein interfaceSystemNotificationService- Parameters:
rule- to compare with.- Returns:
- existing rule if exists, that is the same as the provided rule
-
saveSystemNotificationRule
Description copied from interface:SystemNotificationServiceSave an individual system notification rule.- Specified by:
saveSystemNotificationRulein interfaceSystemNotificationService- Parameters:
notificationRule- to be added
-
removeSystemNotificationRule
public void removeSystemNotificationRule(long id) Description copied from interface:SystemNotificationServiceRemove an individual system notification- Specified by:
removeSystemNotificationRulein interfaceSystemNotificationService- Parameters:
id- of the notification to be removed
-
getSystemNotificationRules
Description copied from interface:SystemNotificationServiceGet a copy of all system notification rules.- Specified by:
getSystemNotificationRulesin interfaceSystemNotificationService- Returns:
- lists of all system notification rules, sorted.
-