public class RegisterNewEmailSender extends OutgoingEmail
Modifier and Type | Class and Description |
---|---|
static interface |
RegisterNewEmailSender.Factory |
args, fromId, messageClass, velocityContext
Constructor and Description |
---|
RegisterNewEmailSender(EmailArguments ea,
EmailTokenVerifier etv,
IdentifiedUser callingUser,
String address) |
Modifier and Type | Method and Description |
---|---|
protected void |
format()
Format the message body by calling
OutgoingEmail.appendText(String) . |
String |
getEmailRegistrationToken() |
String |
getUserNameEmail() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
protected boolean |
shouldSendMessage() |
add, add, add, add, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, isVisibleTo, joinStrings, joinStrings, send, setFrom, setHeader, setHeader, setupVelocityContext, setVHeader, velocify, velocifyFile
@Inject public RegisterNewEmailSender(EmailArguments ea, EmailTokenVerifier etv, IdentifiedUser callingUser, String address)
protected void init() throws com.google.gerrit.common.errors.EmailException
OutgoingEmail
init
in class OutgoingEmail
com.google.gerrit.common.errors.EmailException
protected boolean shouldSendMessage()
shouldSendMessage
in class OutgoingEmail
protected void format() throws com.google.gerrit.common.errors.EmailException
OutgoingEmail
OutgoingEmail.appendText(String)
.format
in class OutgoingEmail
com.google.gerrit.common.errors.EmailException
public String getUserNameEmail()
public String getEmailRegistrationToken()