|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.notification.transports.TextEmailTransport
@ThreadSafe public class TextEmailTransport
Knows how to send text emails to the given email address.
Constructor Summary | |
---|---|
TextEmailTransport(java.lang.String emailAddress,
com.atlassian.event.api.EventPublisher eventPublisher,
AdministrationConfigurationManager administrationConfigurationManager)
|
Method Summary | |
---|---|
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(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextEmailTransport(java.lang.String emailAddress, com.atlassian.event.api.EventPublisher eventPublisher, AdministrationConfigurationManager administrationConfigurationManager)
Method Detail |
---|
public void sendNotification(@NotNull Notification notification)
NotificationTransport
notification
- object (used to generate notification content)public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object obj)
protected com.atlassian.mail.Email beginEmail(@NotNull Notification notification) throws java.lang.Exception
Email
object with information that is common
to all e-mail notifications.
notification
- the notification to be sent to the transport
java.lang.Exception
- 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 transport
protected void send(com.atlassian.mail.Email email)
email
- the completed e-mail to be sentpublic java.lang.String getEmailAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |