Class SystemNotificationServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.notification.SystemNotificationServiceImpl
-
- All Implemented Interfaces:
SystemNotificationService
public class SystemNotificationServiceImpl extends Object implements SystemNotificationService
Class to provide access to system notifications
-
-
Constructor Summary
Constructors Constructor Description SystemNotificationServiceImpl(NotificationManager notificationManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable NotificationRuledoesSystemNotificationSetContainRule(@NotNull NotificationRule rule)Checks if a identical system notification already exists (for validation purposes).@NotNull List<NotificationRule>getSystemNotificationRules()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 Detail
-
SystemNotificationServiceImpl
public SystemNotificationServiceImpl(NotificationManager notificationManager)
-
-
Method Detail
-
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
public void saveSystemNotificationRule(@NotNull @NotNull NotificationRule notificationRule)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
@NotNull public @NotNull List<NotificationRule> 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.
-
-