public class AddKeySender extends OutgoingEmail
Modifier and Type | Class and Description |
---|---|
static interface |
AddKeySender.Factory |
args, fromId, messageClass, notify, 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,
java.util.List<java.lang.String> gpgKeys) |
Modifier and Type | Method and Description |
---|---|
protected void |
format()
Format the message body by calling
OutgoingEmail.appendText(String) . |
java.lang.String |
getEmail() |
java.lang.String |
getGpgKeys() |
java.lang.String |
getKeyType() |
java.lang.String |
getSshKey() |
java.lang.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, removeUser, send, setFrom, setHeader, setHeader, setNotify, setupVelocityContext, setVHeader, velocify, velocifyFile
public AddKeySender(EmailArguments ea, IdentifiedUser callingUser, IdentifiedUser user, com.google.gerrit.reviewdb.client.AccountSshKey sshKey)
public AddKeySender(EmailArguments ea, IdentifiedUser callingUser, IdentifiedUser user, java.util.List<java.lang.String> gpgKeys)
protected void init() throws com.google.gerrit.common.errors.EmailException
OutgoingEmail
init
in class OutgoingEmail
com.google.gerrit.common.errors.EmailException
- if an error occurred.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 java.lang.String getEmail()
public java.lang.String getUserNameEmail()
public java.lang.String getKeyType()
public java.lang.String getSshKey()
public java.lang.String getGpgKeys()