public class AddKeySender extends OutgoingEmail
| Modifier and Type | Class and Description |
|---|---|
static interface |
AddKeySender.Factory |
args, fromId, messageClass, velocityContext| Constructor and Description |
|---|
AddKeySender(EmailArguments ea,
IdentifiedUser callingUser,
IdentifiedUser user,
com.google.gerrit.reviewdb.client.AccountSshKey sshKey) |
AddKeySender(EmailArguments ea,
IdentifiedUser callingUser,
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 boolean |
shouldSendMessage() |
add, add, add, add, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, isVisibleTo, joinStrings, joinStrings, send, setFrom, setHeader, setHeader, setupVelocityContext, setVHeader, velocify, velocifyFilepublic AddKeySender(EmailArguments ea, IdentifiedUser callingUser, IdentifiedUser user, com.google.gerrit.reviewdb.client.AccountSshKey sshKey)
public AddKeySender(EmailArguments ea, IdentifiedUser callingUser, IdentifiedUser user, List<String> gpgKeys)
protected void init()
throws com.google.gerrit.common.errors.EmailException
OutgoingEmailinit in class OutgoingEmailcom.google.gerrit.common.errors.EmailException - if an error occurred.protected boolean shouldSendMessage()
shouldSendMessage in class OutgoingEmailprotected void format()
throws com.google.gerrit.common.errors.EmailException
OutgoingEmailOutgoingEmail.appendText(String).format in class OutgoingEmailcom.google.gerrit.common.errors.EmailExceptionpublic String getEmail()
public String getUserNameEmail()
public String getKeyType()
public String getSshKey()
public String getGpgKeys()