Interface SystemNotificationService
-
- All Known Implementing Classes:
SystemNotificationServiceImpl
public interface SystemNotificationService
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
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
void saveSystemNotificationRule(@NotNull @NotNull NotificationRule notificationRule)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
@NotNull @NotNull List<NotificationRule> getSystemNotificationRules()
Get a copy of all system notification rules.- Returns:
- lists of all system notification rules, sorted.
-
-