|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Notification
Represents a Notification ready to be sent.
| Method Summary | |
|---|---|
void |
addRecipient(NotificationRecipient recipient)
Add a singular recipient to this notification |
void |
excludeRecipient(NotificationRecipient recipient)
Exclude a singular recipient from this notification. |
java.lang.String |
getDescription()
Text describing this notification object - used for logging/debugging purposes. |
java.lang.String |
getEmailSubject()
Retrieves the subject for the notification. |
com.atlassian.event.Event |
getEvent()
Retrieves the event object that triggered this notification |
java.util.Set<NotificationRecipient> |
getExcludedNotificationRecipients()
Returns the excluded recipients of this Notification |
java.lang.String |
getHtmlEmailContent()
Generates the html for the html part of an email notification. |
java.lang.String |
getIMContent()
Retrieves the content for the IM notification |
java.util.Set<NotificationRecipient> |
getNotificationRecipients()
Returns the recipients of this Notification |
java.lang.String |
getTextEmailContent()
Generates the text email content for the notifications |
void |
setEvent(com.atlassian.event.Event event)
Sets the event object that triggered this notification |
void |
setExcludedNotificationRecipients(java.util.Set<NotificationRecipient> recipients)
Sets the excluded recipients for this Notification |
void |
setNotificationRecipients(java.util.Set<NotificationRecipient> recipients)
Sets the recipients for this Notification |
| Method Detail |
|---|
@NotNull java.lang.String getDescription()
@Nullable
java.lang.String getTextEmailContent()
throws java.lang.Exception
java.lang.Exception - if there is a problem preventing production of the e-mail content.
@Nullable
java.lang.String getHtmlEmailContent()
throws java.lang.Exception
java.lang.Exception - if there is a problem preventing production of the e-mail content.
@Nullable
java.lang.String getEmailSubject()
throws java.lang.Exception
java.lang.Exception - if there is a problem preventing production of the e-mail subject.@Nullable java.lang.String getIMContent()
void setEvent(@Nullable
com.atlassian.event.Event event)
event - Event object that triggered this notification@Nullable com.atlassian.event.Event getEvent()
@NotNull java.util.Set<NotificationRecipient> getNotificationRecipients()
@NotNull java.util.Set<NotificationRecipient> getExcludedNotificationRecipients()
void setNotificationRecipients(@NotNull
java.util.Set<NotificationRecipient> recipients)
recipients - Set of notification recipients
void setExcludedNotificationRecipients(@NotNull
java.util.Set<NotificationRecipient> recipients)
recipients - Set of excluded notification recipients
void addRecipient(@NotNull
NotificationRecipient recipient)
recipient - Recipient to be added to notification
void excludeRecipient(@NotNull
NotificationRecipient recipient)
recipient - Recipient to be excluded from notification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||