|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.notification.NotificationManagerImpl
public class NotificationManagerImpl
Constructor Summary | |
---|---|
NotificationManagerImpl()
|
Method Summary | |
---|---|
NotificationSet |
cloneNotificationSet(NotificationSet oldSet)
Clone notification set and rules for use when cloning build |
NotificationRule |
createNotificationRule(NotificationSet notificationSet,
java.lang.String conditionKey,
java.lang.String conditionData,
java.lang.String recipientString,
java.lang.String recipientType)
Create notification rule and provide required managers. |
java.util.List<NotificationCondition> |
getAllConditions()
Deprecated. |
java.util.List<NotificationRecipient> |
getAllNotificationRecipients()
Returns a list of all enabled NotificationRecipient plugin modules |
java.util.List<NotificationType> |
getAllNotificationTypes()
Returns a list of all enabled NotificationType plugin modules |
NotificationCondition |
getConditionFromKey(java.lang.String key)
Deprecated. |
NotificationRecipient |
getNotificationRecipientFromKey(java.lang.String notificationRecipientKey)
Retrieve a specific NotificationRecipient plugin module based on the given key. |
java.util.Set<NotificationRule> |
getNotificationRules(Build build)
Extract notification rules. |
java.util.List<UsersNotification> |
getNotificationRulesForUser(BambooUser user)
Retrieves all notification rules associated with a given user searches for notification rules: * assigned to the user * assigned to a group the user belongs to * assigned to the user's email or user's im address * assigned to watchers of a build the user has marked as their favourite |
NotificationType |
getNotificationTypeFromKey(java.lang.String key)
Retrieve a specific NotificationType plugin module based on the given key. |
java.util.Set<java.lang.String> |
getRecipientsFromString(java.lang.String recipientType,
java.lang.String recipientString)
|
boolean |
isRecipientUserBase(NotificationRule notificationRule)
Determines whether or not a notification rule recipient evaluates to a bamboo user and therefore comply with the users notification preference. |
void |
saveNotificationSet(NotificationSet nSet)
Saves a notification set without requiring a build. |
void |
setBambooUserManager(BambooUserManager bambooUserManager)
|
void |
setLabelManager(LabelManager labelManager)
|
void |
setNotificationDao(NotificationDao notificationRuleDao)
|
void |
setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationManagerImpl()
Method Detail |
---|
public void saveNotificationSet(NotificationSet nSet)
NotificationManager
saveNotificationSet
in interface NotificationManager
public NotificationRule createNotificationRule(NotificationSet notificationSet, java.lang.String conditionKey, java.lang.String conditionData, java.lang.String recipientString, java.lang.String recipientType)
NotificationManager
createNotificationRule
in interface NotificationManager
notificationSet
- - the set the rule will belong to
public java.util.Set<java.lang.String> getRecipientsFromString(java.lang.String recipientType, java.lang.String recipientString)
@Nullable public java.util.Set<NotificationRule> getNotificationRules(Build build)
NotificationManager
build
however in future this may change
to accomodate non build related rules.
getNotificationRules
in interface NotificationManager
public NotificationSet cloneNotificationSet(NotificationSet oldSet)
NotificationManager
build
cloneNotificationSet
in interface NotificationManager
@Deprecated public java.util.List<NotificationCondition> getAllConditions()
NotificationManager
NotificationCondition
plugin modules.
This is deprecated and is only used to keep backward compatability for plugins.
Use NotificationType
instead.
getAllConditions
in interface NotificationManager
public java.util.List<NotificationType> getAllNotificationTypes()
NotificationManager
NotificationType
plugin modules
getAllNotificationTypes
in interface NotificationManager
public java.util.List<NotificationRecipient> getAllNotificationRecipients()
NotificationManager
NotificationRecipient
plugin modules
getAllNotificationRecipients
in interface NotificationManager
public NotificationRecipient getNotificationRecipientFromKey(java.lang.String notificationRecipientKey)
NotificationManager
NotificationRecipient
plugin module based on the given key.
getNotificationRecipientFromKey
in interface NotificationManager
@Deprecated @Nullable public NotificationCondition getConditionFromKey(java.lang.String key)
NotificationManager
NotificationCondition
plugin module based on the given key.
This is deprecated and is only used to keep backward compatability for plugins.
Use NotificationType
instead.
getConditionFromKey
in interface NotificationManager
key
- - full plugin key for the module to be retrieved
@Nullable public NotificationType getNotificationTypeFromKey(java.lang.String key)
NotificationManager
NotificationType
plugin module based on the given key.
getNotificationTypeFromKey
in interface NotificationManager
@NotNull public java.util.List<UsersNotification> getNotificationRulesForUser(@NotNull BambooUser user)
NotificationManager
getNotificationRulesForUser
in interface NotificationManager
public boolean isRecipientUserBase(NotificationRule notificationRule)
NotificationManager
isRecipientUserBase
in interface NotificationManager
public void setNotificationDao(NotificationDao notificationRuleDao)
public void setPluginManager(com.atlassian.plugin.PluginManager pluginManager)
public void setBambooUserManager(BambooUserManager bambooUserManager)
public void setLabelManager(LabelManager labelManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |