public class CommentSender extends ReplyToChangeSender
Modifier and Type | Class and Description |
---|---|
static interface |
CommentSender.Factory |
authors, change, changeData, changeMessage, emailOnlyAuthors, patchSet, patchSetInfo, projectState, stars, timestamp
branch
args, footers, fromId, messageClass, notify, soyContext, soyContextEmailData, velocityContext
Constructor and Description |
---|
CommentSender(EmailArguments ea,
CommentsUtil commentsUtil,
org.eclipse.jgit.lib.Config cfg,
Project.NameKey project,
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()
Deprecated.
|
String |
getInlineComments(int lines)
Deprecated.
|
boolean |
hasInlineComments()
Deprecated.
|
protected void |
init()
Setup the message headers and envelope (TO, CC, BCC).
|
void |
setComments(List<Comment> comments) |
void |
setLabels(List<LabelVote> labels) |
void |
setPatchSetComment(String comment) |
protected void |
setupSoyContext() |
protected boolean |
supportsHtml()
Override this method to enable HTML in a subclass.
|
add, bccStarredBy, ccAllApprovals, ccExistingReviewers, format, formatChangeDetail, formatCoverLetter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getProjectOwners, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, removeUsersThatIgnoredTheChange, setChangeMessage, setChangeMessage, setFrom, setPatchSet, setPatchSet, setupVelocityContext
add, getListId, getSshHost, includeWatchers, includeWatchers
add, add, add, appendHtml, appendText, getFromLine, getGerritHost, getGerritUrl, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, joinStrings, joinStrings, removeHeader, removeUser, send, setAccountsToNotify, setHeader, setHeader, setNotify, setVHeader, shouldSendMessage, soyHtmlTemplate, soyTextTemplate, textTemplate, useHtml, velocify, velocifyFile
@Inject public CommentSender(EmailArguments ea, CommentsUtil commentsUtil, org.eclipse.jgit.lib.Config cfg, Project.NameKey project, Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setComments(List<Comment> comments) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public void setPatchSetComment(String comment)
protected void init() throws EmailException
ChangeEmail
init
in class ReplyToChangeSender
EmailException
- if an error occurred.public void formatChange() throws EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatChange
in class ChangeEmail
EmailException
public void formatFooter() throws EmailException
ChangeEmail
OutgoingEmail.appendText(String)
.formatFooter
in class ChangeEmail
EmailException
- if an error occurred.@Deprecated public boolean hasInlineComments()
@Deprecated public String getInlineComments()
@Deprecated public String getInlineComments(int lines)
protected void setupSoyContext()
setupSoyContext
in class ChangeEmail
protected boolean supportsHtml()
OutgoingEmail
supportsHtml
in class OutgoingEmail