public class RegisterNewEmailSender extends OutgoingEmail
Modifier and Type | Class and Description |
---|---|
static interface |
RegisterNewEmailSender.Factory |
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
Constructor and Description |
---|
RegisterNewEmailSender(EmailArguments ea,
EmailTokenVerifier etv,
IdentifiedUser callingUser,
java.lang.String address) |
Modifier and Type | Method and Description |
---|---|
protected void |
format()
Format the message body by calling
OutgoingEmail.appendText(String) . |
java.lang.String |
getEmailRegistrationToken() |
java.lang.String |
getUserNameEmail() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
boolean |
isAllowed() |
protected void |
setupSoyContext() |
add, add, add, add, add, add, add, add, addByEmail, addByEmail, appendHtml, appendText, getFromLine, getGerritHost, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, removeHeader, removeUser, send, setFrom, setHeader, setHeader, setNotify, shouldSendMessage, soyHtmlTemplate, supportsHtml, textTemplate, useHtml
@Inject public RegisterNewEmailSender(EmailArguments ea, EmailTokenVerifier etv, IdentifiedUser callingUser, java.lang.String address)
protected void init() throws com.google.gerrit.exceptions.EmailException
OutgoingEmail
init
in class OutgoingEmail
com.google.gerrit.exceptions.EmailException
- if an error occurred.protected void format() throws com.google.gerrit.exceptions.EmailException
OutgoingEmail
OutgoingEmail.appendText(String)
.format
in class OutgoingEmail
com.google.gerrit.exceptions.EmailException
public java.lang.String getUserNameEmail()
public java.lang.String getEmailRegistrationToken()
public boolean isAllowed()
protected void setupSoyContext()
setupSoyContext
in class OutgoingEmail