public class CommentSender extends ReplyToChangeSender
| Modifier and Type | Class and Description |
|---|---|
static interface |
CommentSender.Factory |
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, timestampbranchargs, fromId, messageClass, notify, velocityContext| Constructor and Description |
|---|
CommentSender(EmailArguments ea,
PatchLineCommentsUtil plcUtil,
com.google.gerrit.reviewdb.client.Project.NameKey project,
com.google.gerrit.reviewdb.client.Change.Id id) |
| Modifier and Type | Method and Description |
|---|---|
void |
formatChange()
Format the message body by calling
OutgoingEmail.appendText(String). |
void |
formatFooter()
Format the message footer by calling
OutgoingEmail.appendText(String). |
String |
getInlineComments() |
String |
getInlineComments(int lines) |
boolean |
hasInlineComments() |
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
void |
setPatchLineComments(List<com.google.gerrit.reviewdb.client.PatchLineComment> plc) |
add, bccStarredBy, ccAllApprovals, ccExistingReviewers, format, formatChangeDetail, formatCoverLetter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getProjectOwners, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, setChangeMessage, setChangeMessage, setFrom, setPatchSet, setPatchSet, setupVelocityContextadd, getListId, getSshHost, includeWatchersadd, add, add, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, joinStrings, joinStrings, removeUser, send, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, velocify, velocifyFile@Inject public CommentSender(EmailArguments ea, PatchLineCommentsUtil plcUtil, 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.OrmExceptionpublic void setPatchLineComments(List<com.google.gerrit.reviewdb.client.PatchLineComment> plc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmExceptionprotected void init()
throws com.google.gerrit.common.errors.EmailException
ChangeEmailinit in class ReplyToChangeSendercom.google.gerrit.common.errors.EmailException - if an error occurred.public void formatChange()
throws com.google.gerrit.common.errors.EmailException
ChangeEmailOutgoingEmail.appendText(String).formatChange in class ChangeEmailcom.google.gerrit.common.errors.EmailExceptionpublic void formatFooter()
throws com.google.gerrit.common.errors.EmailException
ChangeEmailOutgoingEmail.appendText(String).formatFooter in class ChangeEmailcom.google.gerrit.common.errors.EmailException - if an error occurred.public boolean hasInlineComments()
public String getInlineComments()
public String getInlineComments(int lines)