public abstract class NewChangeSender extends ChangeEmail
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, stars, timestamp
branch
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData, velocityContext
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 |
addReviewers(java.util.Collection<Account.Id> 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, formatChangeDetail, formatCoverLetter, formatFooter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getProjectOwners, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, removeUsersThatIgnoredTheChange, setChangeMessage, setChangeMessage, setFrom, setPatchSet, setPatchSet, setupVelocityContext
add, getListId, getSshHost, includeWatchers, includeWatchers
add, add, add, appendHtml, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, removeHeader, removeUser, send, setAccountsToNotify, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, soyHtmlTemplate, soyTextTemplate, textTemplate, useHtml, velocify, velocifyFile
protected NewChangeSender(EmailArguments ea, ChangeData cd) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void addReviewers(java.util.Collection<Account.Id> cc)
public void addExtraCC(java.util.Collection<Account.Id> cc)
protected void init() throws EmailException
ChangeEmail
init
in class ChangeEmail
EmailException
- if an error occurred.protected void formatChange() throws EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatChange
in class ChangeEmail
EmailException
public java.util.List<java.lang.String> getReviewerNames()
protected void setupSoyContext()
setupSoyContext
in class ChangeEmail
protected boolean supportsHtml()
OutgoingEmail
supportsHtml
in class OutgoingEmail