public abstract class NotificationEmail extends OutgoingEmail
| Modifier and Type | Field and Description |
|---|---|
protected Branch.NameKey |
branch |
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData, velocityContext| Modifier | Constructor and Description |
|---|---|
protected |
NotificationEmail(EmailArguments ea,
String mc,
Branch.NameKey branch) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(RecipientType type,
com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list)
Add users or email addresses to the TO, CC, or BCC list.
|
String |
getListId() |
String |
getSshHost() |
protected abstract ProjectWatch.Watchers |
getWatchers(WatchConfig.NotifyType type,
boolean includeWatchersFromNotifyConfig)
Returns all watchers that are relevant
|
protected void |
includeWatchers(WatchConfig.NotifyType type)
Include users and groups that want notification of events.
|
protected void |
includeWatchers(WatchConfig.NotifyType type,
boolean includeWatchersFromNotifyConfig)
Include users and groups that want notification of events.
|
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
protected void |
setupSoyContext() |
protected void |
setupVelocityContext() |
add, add, add, add, appendHtml, appendText, format, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, joinStrings, joinStrings, removeHeader, removeUser, send, setAccountsToNotify, setFrom, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, soyHtmlTemplate, soyTextTemplate, supportsHtml, textTemplate, useHtml, velocify, velocifyFileprotected Branch.NameKey branch
protected NotificationEmail(EmailArguments ea, String mc, Branch.NameKey branch)
protected void init()
throws EmailException
OutgoingEmailinit in class OutgoingEmailEmailException - if an error occurred.public String getListId() throws EmailException
EmailExceptionprotected void includeWatchers(WatchConfig.NotifyType type)
protected void includeWatchers(WatchConfig.NotifyType type, boolean includeWatchersFromNotifyConfig)
protected abstract ProjectWatch.Watchers getWatchers(WatchConfig.NotifyType type, boolean includeWatchersFromNotifyConfig) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionprotected void add(RecipientType type, com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list)
public String getSshHost()
protected void setupVelocityContext()
setupVelocityContext in class OutgoingEmailprotected void setupSoyContext()
setupSoyContext in class OutgoingEmail