@ThreadSafe public class MultipartEmailTransport extends Object
Constructor and Description |
---|
MultipartEmailTransport(String emailAddress,
com.atlassian.event.api.EventPublisher eventPublisher,
NotificationFormatter notificationFormatter,
AdministrationConfigurationAccessor administrationConfigurationAccessor) |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.mail.Email |
beginEmail(Notification notification)
Creates a new
Email object with information that is common
to all e-mail notifications. |
boolean |
equals(Object o) |
String |
getEmailAddress() |
int |
hashCode() |
protected void |
send(com.atlassian.mail.Email email)
Publishes the e-mail event to the publishing service
|
void |
sendNotification(Notification notification)
Send off the notification of this transport type.
|
protected com.atlassian.mail.Email |
updateEmail(com.atlassian.mail.Email email,
Notification notification)
Applies notification-specific customizations to the e-mail as
provided for in the
ExtendedNotification interface. |
public MultipartEmailTransport(String emailAddress, com.atlassian.event.api.EventPublisher eventPublisher, NotificationFormatter notificationFormatter, AdministrationConfigurationAccessor administrationConfigurationAccessor)
public void sendNotification(@NotNull Notification notification)
NotificationTransport
notification
- object (used to generate notification content)protected com.atlassian.mail.Email beginEmail(@NotNull Notification notification) throws Exception
Email
object with information that is common
to all e-mail notifications.notification
- the notification to be sent to the transportException
- if Notification.getEmailSubject()
doesprotected com.atlassian.mail.Email updateEmail(@NotNull com.atlassian.mail.Email email, @NotNull Notification notification)
ExtendedNotification
interface.email
- the e-mail to be alterednotification
- the notification to be sent to the transportprotected void send(com.atlassian.mail.Email email)
email
- the completed e-mail to be sentpublic String getEmailAddress()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.