public abstract class NewChangeSender extends ChangeEmail
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, stars, timestamp
branch
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
Modifier | Constructor and Description |
---|---|
protected |
NewChangeSender(EmailArguments ea,
ChangeData cd) |
Modifier and Type | Method and Description |
---|---|
void |
addExtraCC(java.util.Collection<Account.Id> cc) |
void |
addExtraCCByEmail(java.util.Collection<com.google.gerrit.mail.Address> cc) |
void |
addReviewers(java.util.Collection<Account.Id> cc) |
void |
addReviewersByEmail(java.util.Collection<com.google.gerrit.mail.Address> cc) |
protected void |
formatChange()
Format the message body by calling
OutgoingEmail.appendText(String) . |
java.util.List<java.lang.String> |
getReviewerNames() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
protected void |
setupSoyContext() |
protected boolean |
supportsHtml()
Override this method to enable HTML in a subclass.
|
add, bccStarredBy, ccAllApprovals, ccExistingReviewers, format, formatFooter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getPatchList, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, removeUsersThatIgnoredTheChange, setChangeMessage, setFrom, setPatchSet, setPatchSet
add, getInstanceAndProjectName, getShortProjectName, getSshHost, includeWatchers, includeWatchers
add, add, add, add, add, add, add, addByEmail, addByEmail, appendHtml, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, removeHeader, removeUser, send, setHeader, setHeader, setNotify, shouldSendMessage, soyHtmlTemplate, textTemplate, useHtml
protected NewChangeSender(EmailArguments ea, ChangeData cd)
public void addReviewers(java.util.Collection<Account.Id> cc)
public void addReviewersByEmail(java.util.Collection<com.google.gerrit.mail.Address> cc)
public void addExtraCC(java.util.Collection<Account.Id> cc)
public void addExtraCCByEmail(java.util.Collection<com.google.gerrit.mail.Address> cc)
protected void init() throws com.google.gerrit.exceptions.EmailException
ChangeEmail
init
in class ChangeEmail
com.google.gerrit.exceptions.EmailException
- if an error occurred.protected void formatChange() throws com.google.gerrit.exceptions.EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatChange
in class ChangeEmail
com.google.gerrit.exceptions.EmailException
public java.util.List<java.lang.String> getReviewerNames()
protected void setupSoyContext()
setupSoyContext
in class ChangeEmail
protected boolean supportsHtml()
OutgoingEmail
supportsHtml
in class OutgoingEmail