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, add, add, add, add, addByEmail, addByEmail, appendHtml, appendText, format, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, removeHeader, removeUser, send, setAccountsToNotify, setFrom, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, soyHtmlTemplate, soyTextTemplate, supportsHtml, textTemplate, useHtml, velocify, velocifyFile
protected Branch.NameKey branch
protected NotificationEmail(EmailArguments ea, String mc, Branch.NameKey branch)
protected void init() throws EmailException
OutgoingEmail
init
in class OutgoingEmail
EmailException
- if an error occurred.public String getListId() throws EmailException
EmailException
protected 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.OrmException
protected void add(RecipientType type, com.google.gerrit.server.mail.send.ProjectWatch.Watchers.List list)
public String getSshHost()
protected void setupVelocityContext()
setupVelocityContext
in class OutgoingEmail
protected void setupSoyContext()
setupSoyContext
in class OutgoingEmail