public class ReplacePatchSetSender extends ReplyToChangeSender
Modifier and Type | Class and Description |
---|---|
static interface |
ReplacePatchSetSender.Factory |
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, timestamp
branch
args, fromId, messageClass, notify, velocityContext
Constructor and Description |
---|
ReplacePatchSetSender(EmailArguments ea,
com.google.gerrit.reviewdb.client.Project.NameKey project,
com.google.gerrit.reviewdb.client.Change.Id id) |
Modifier and Type | Method and Description |
---|---|
void |
addExtraCC(Collection<com.google.gerrit.reviewdb.client.Account.Id> cc) |
void |
addReviewers(Collection<com.google.gerrit.reviewdb.client.Account.Id> cc) |
protected void |
formatChange()
Format the message body by calling
OutgoingEmail.appendText(String) . |
List<String> |
getReviewerNames() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
add, bccStarredBy, ccAllApprovals, ccExistingReviewers, format, formatChangeDetail, formatCoverLetter, formatFooter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getProjectOwners, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, setChangeMessage, setChangeMessage, setFrom, setPatchSet, setPatchSet, setupVelocityContext
add, getListId, getSshHost, includeWatchers
add, add, add, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, joinStrings, joinStrings, removeUser, send, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, velocify, velocifyFile
@Inject public ReplacePatchSetSender(EmailArguments ea, com.google.gerrit.reviewdb.client.Project.NameKey project, com.google.gerrit.reviewdb.client.Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void addReviewers(Collection<com.google.gerrit.reviewdb.client.Account.Id> cc)
public void addExtraCC(Collection<com.google.gerrit.reviewdb.client.Account.Id> cc)
protected void init() throws com.google.gerrit.common.errors.EmailException
ChangeEmail
init
in class ReplyToChangeSender
com.google.gerrit.common.errors.EmailException
- if an error occurred.protected void formatChange() throws com.google.gerrit.common.errors.EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatChange
in class ChangeEmail
com.google.gerrit.common.errors.EmailException