public class AddKeySender extends OutgoingEmail
| Modifier and Type | Class and Description |
|---|---|
static interface |
AddKeySender.Factory |
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData, velocityContext| Constructor and Description |
|---|
AddKeySender(EmailArguments ea,
IdentifiedUser user,
AccountSshKey sshKey) |
AddKeySender(EmailArguments ea,
IdentifiedUser user,
List<String> gpgKeys) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
format()
Format the message body by calling
OutgoingEmail.appendText(String). |
String |
getEmail() |
String |
getGpgKeys() |
String |
getKeyType() |
String |
getSshKey() |
String |
getUserNameEmail() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
protected void |
setupSoyContext() |
protected boolean |
shouldSendMessage() |
protected boolean |
supportsHtml()
Override this method to enable HTML in a subclass.
|
add, add, add, add, add, add, add, add, addByEmail, addByEmail, appendHtml, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, removeHeader, removeUser, send, setAccountsToNotify, setFrom, setHeader, setHeader, setNotify, setupVelocityContext, setVHeader, soyHtmlTemplate, soyTextTemplate, textTemplate, useHtml, velocify, velocifyFilepublic AddKeySender(EmailArguments ea, IdentifiedUser user, AccountSshKey sshKey)
public AddKeySender(EmailArguments ea, IdentifiedUser user, List<String> gpgKeys)
protected void init()
throws EmailException
OutgoingEmailinit in class OutgoingEmailEmailException - if an error occurred.protected boolean shouldSendMessage()
shouldSendMessage in class OutgoingEmailprotected void format()
throws EmailException
OutgoingEmailOutgoingEmail.appendText(String).format in class OutgoingEmailEmailExceptionpublic String getEmail()
public String getUserNameEmail()
public String getKeyType()
public String getSshKey()
public String getGpgKeys()
protected void setupSoyContext()
setupSoyContext in class OutgoingEmailprotected boolean supportsHtml()
OutgoingEmailsupportsHtml in class OutgoingEmail