public class CommentSender extends ReplyToChangeSender
Modifier and Type | Class and Description |
---|---|
static interface |
CommentSender.Factory |
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState
branch
args, fromId, messageClass, velocityContext
Constructor and Description |
---|
CommentSender(EmailArguments ea,
PatchLineCommentsUtil plcUtil,
com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify,
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, setFrom, setPatchSet, setPatchSet, setupVelocityContext
add, getListId, getSshHost, includeWatchers
add, add, add, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, joinStrings, joinStrings, send, setHeader, setHeader, setVHeader, shouldSendMessage, velocify, velocifyFile
@Inject public CommentSender(EmailArguments ea, PatchLineCommentsUtil plcUtil, com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify, com.google.gerrit.reviewdb.client.Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setPatchLineComments(List<com.google.gerrit.reviewdb.client.PatchLineComment> plc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
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.public void formatChange() throws com.google.gerrit.common.errors.EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatChange
in class ChangeEmail
com.google.gerrit.common.errors.EmailException
public void formatFooter() throws com.google.gerrit.common.errors.EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatFooter
in class ChangeEmail
com.google.gerrit.common.errors.EmailException
- if an error occurred.public boolean hasInlineComments()
public String getInlineComments()
public String getInlineComments(int lines)