public class SetAssigneeSender extends ChangeEmail
Modifier and Type | Class and Description |
---|---|
static interface |
SetAssigneeSender.Factory |
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, stars, timestamp
branch
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
Constructor and Description |
---|
SetAssigneeSender(EmailArguments ea,
Project.NameKey project,
Change.Id id,
Account.Id assignee) |
Modifier and Type | Method and Description |
---|---|
protected void |
formatChange()
Format the message body by calling
OutgoingEmail.appendText(String) . |
java.lang.String |
getAssigneeName() |
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, 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, setAccountsToNotify, setHeader, setHeader, setNotify, shouldSendMessage, soyHtmlTemplate, textTemplate, useHtml
@Inject public SetAssigneeSender(EmailArguments ea, Project.NameKey project, Change.Id id, Account.Id assignee) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
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.lang.String getAssigneeName()
protected void setupSoyContext()
setupSoyContext
in class ChangeEmail
protected boolean supportsHtml()
OutgoingEmail
supportsHtml
in class OutgoingEmail