|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationManager
Provide methods to manage notifications.
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. |
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. |
Method Detail |
---|
NotificationRule createNotificationRule(NotificationSet notificationSet, java.lang.String conditionKey, java.lang.String conditionData, java.lang.String recipientString, java.lang.String recipientType)
notificationSet
- - the set the rule will belong toconditionKey
- conditionData
- recipientString
- recipientType
-
java.util.Set<NotificationRule> getNotificationRules(Build build)
build
however in future this may change
to accomodate non build related rules.
build
-
NotificationSet cloneNotificationSet(NotificationSet oldSet)
build
oldSet
-
@Deprecated java.util.List<NotificationCondition> getAllConditions()
NotificationCondition
plugin modules.
This is deprecated and is only used to keep backward compatability for plugins.
Use NotificationType
instead.
@Deprecated NotificationCondition getConditionFromKey(java.lang.String key)
NotificationCondition
plugin module based on the given key.
This is deprecated and is only used to keep backward compatability for plugins.
Use NotificationType
instead.
key
- - full plugin key for the module to be retrieved
java.util.List<NotificationType> getAllNotificationTypes()
NotificationType
plugin modules
NotificationType getNotificationTypeFromKey(java.lang.String key)
NotificationType
plugin module based on the given key.
key
-
java.util.List<NotificationRecipient> getAllNotificationRecipients()
NotificationRecipient
plugin modules
NotificationRecipient getNotificationRecipientFromKey(java.lang.String notificationRecipientKey)
NotificationRecipient
plugin module based on the given key.
key
-
void saveNotificationSet(NotificationSet nSet)
nSet
- @NotNull java.util.List<UsersNotification> getNotificationRulesForUser(@NotNull BambooUser user)
user
-
boolean isRecipientUserBase(NotificationRule notificationRule)
notificationRule
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |