com.atlassian.bamboo.notification
Class SystemNotificationServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.notification.SystemNotificationServiceImpl
All Implemented Interfaces:
SystemNotificationService

public class SystemNotificationServiceImpl
extends java.lang.Object
implements SystemNotificationService

Class to provide access to system notifications


Constructor Summary
SystemNotificationServiceImpl(NotificationManager notificationManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemNotificationServiceImpl

public SystemNotificationServiceImpl(NotificationManager notificationManager)
Method Detail

doesSystemNotificationSetContainRule

@Nullable
public NotificationRule doesSystemNotificationSetContainRule(@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 interface SystemNotificationService
Parameters:
rule - to compare with.
Returns:
existing rule if exists, that is the same as the provided rule

saveSystemNotificationRule

public void saveSystemNotificationRule(@NotNull
                                       NotificationRule notificationRule)
Description copied from interface: SystemNotificationService
Save an individual system notification rule.

Specified by:
saveSystemNotificationRule in interface SystemNotificationService
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 interface SystemNotificationService
Parameters:
id - of the notification to be removed

getSystemNotificationRules

@NotNull
public java.util.List<NotificationRule> getSystemNotificationRules()
Description copied from interface: SystemNotificationService
Get a copy of all system notification rules.

Specified by:
getSystemNotificationRules in interface SystemNotificationService
Returns:
lists of all system notification rules, sorted.


Copyright © 2011 Atlassian. All Rights Reserved.