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 NotificationRule
doesSystemNotificationSetContainRule(@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.void
removeSystemNotificationRule(long id)
Remove an individual system notificationvoid
saveSystemNotificationRule(@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: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
public void saveSystemNotificationRule(@NotNull @NotNull NotificationRule notificationRule)
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
@NotNull public @NotNull List<NotificationRule> 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.
-
-