@ThreadSafe public class TextEmailTransport extends Object
Constructor and Description |
---|
TextEmailTransport(String emailAddress,
com.atlassian.event.api.EventPublisher eventPublisher,
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. |
int |
compareTo(Object obj) |
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 TextEmailTransport(String emailAddress, com.atlassian.event.api.EventPublisher eventPublisher, AdministrationConfigurationAccessor administrationConfigurationAccessor)
public void sendNotification(@NotNull Notification notification)
NotificationTransport
notification
- object (used to generate notification content)public int compareTo(Object obj)
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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.