Interface SystemNotificationService
- All Known Implementing Classes:
SystemNotificationServiceImpl
public interface SystemNotificationService
-
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.
-
Method Details
-
doesSystemNotificationSetContainRule
@Nullable @Nullable NotificationRule doesSystemNotificationSetContainRule(@NotNull @NotNull NotificationRule rule) 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.- Parameters:
rule
- to compare with.- Returns:
- existing rule if exists, that is the same as the provided rule
-
saveSystemNotificationRule
Save an individual system notification rule.- Parameters:
notificationRule
- to be added
-
removeSystemNotificationRule
void removeSystemNotificationRule(long id) Remove an individual system notification- Parameters:
id
- of the notification to be removed
-
getSystemNotificationRules
Get a copy of all system notification rules.- Returns:
- lists of all system notification rules, sorted.
-