com.atlassian.bamboo.notification
Interface SystemNotificationService

All Known Implementing Classes:
SystemNotificationServiceImpl

public interface SystemNotificationService


Method Summary
 NotificationRule doesSystemNotificationSetContainRule(NotificationRule rule)
          Checks if a identical system notification already exists (for validation purposes).
 java.util.List<NotificationRule> getSystemNotificationRules()
          Get a copy of all system notification rules.
 void removeSystemNotificationRule(long id)
          Remove an individual system notification
 void saveSystemNotificationRule(NotificationRule notificationRule)
          Save an individual system notification rule.
 

Method Detail

doesSystemNotificationSetContainRule

@Nullable
NotificationRule doesSystemNotificationSetContainRule(@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
                                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
java.util.List<NotificationRule> getSystemNotificationRules()
Get a copy of all system notification rules.

Returns:
lists of all system notification rules, sorted.


Copyright © 2010 Atlassian. All Rights Reserved.