Class SetAssigneeSender
- java.lang.Object
- 
- com.google.gerrit.server.mail.send.OutgoingEmail
- 
- com.google.gerrit.server.mail.send.NotificationEmail
- 
- com.google.gerrit.server.mail.send.ChangeEmail
- 
- com.google.gerrit.server.mail.send.SetAssigneeSender
 
 
 
 
- 
 public class SetAssigneeSender extends ChangeEmail Sender that informs a user by email that they were set as assignee on a change.In contrast to other change emails this email is not sent to the change authors (owner, patch set uploader, author). This is why this class extends ChangeEmaildirectly, instead of extendingReplyToChangeSender.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceSetAssigneeSender.Factory
 - 
Field Summary- 
Fields inherited from class com.google.gerrit.server.mail.send.ChangeEmailauthors, change, changeData, changeMessage, emailOnlyAttentionSetIfEnabled, emailOnlyAuthors, patchSet, patchSetInfo, projectState, stars, timestamp
 - 
Fields inherited from class com.google.gerrit.server.mail.send.NotificationEmailbranch
 - 
Fields inherited from class com.google.gerrit.server.mail.send.OutgoingEmailargs, footers, fromId, messageClass, notify, soyContext, soyContextEmailData
 
- 
 - 
Constructor SummaryConstructors Constructor Description SetAssigneeSender(EmailArguments args, Project.NameKey project, Change.Id changeId, Account.Id assignee)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidformatChange()Format the message body by callingOutgoingEmail.appendText(String).protected voidinit()Setup the message headers and envelope (TO, CC, BCC).protected voidsetupSoyContext()- 
Methods inherited from class com.google.gerrit.server.mail.send.ChangeEmailadd, bccStarredBy, ccAllApprovals, ccExistingReviewers, format, formatFooter, getAuthors, getChangeDetail, getChangeMessageThreadId, getChangeUrl, getCoverLetter, getIncludeDiff, getPatchList, getPatchList, getProjectState, getUnifiedDiff, getWatchers, isVisibleTo, newChangeData, rcptToAuthors, removeUsersThatIgnoredTheChange, setChangeMessage, setFrom, setPatchSet, setPatchSet
 - 
Methods inherited from class com.google.gerrit.server.mail.send.NotificationEmailadd, getInstanceAndProjectName, getShortProjectName, getSshHost, includeWatchers, includeWatchers
 - 
Methods inherited from class com.google.gerrit.server.mail.send.OutgoingEmailadd, add, add, addByEmail, addByEmail, appendHtml, appendText, getFromLine, getGerritHost, getNameEmailFor, getNameFor, getSettingsUrl, getUserNameEmailFor, removeHeader, removeUser, send, setHeader, setHeader, setMessageId, setNotify, shouldSendMessage, soyHtmlTemplate, textTemplate, useHtml
 
- 
 
- 
- 
- 
Constructor Detail- 
SetAssigneeSender@Inject public SetAssigneeSender(EmailArguments args, Project.NameKey project, Change.Id changeId, Account.Id assignee) 
 
- 
 - 
Method Detail- 
initprotected void init() throws com.google.gerrit.exceptions.EmailExceptionDescription copied from class:ChangeEmailSetup the message headers and envelope (TO, CC, BCC).- Overrides:
- initin class- ChangeEmail
- Throws:
- com.google.gerrit.exceptions.EmailException- if an error occurred.
 
 - 
formatChangeprotected void formatChange() throws com.google.gerrit.exceptions.EmailExceptionDescription copied from class:ChangeEmailFormat the message body by callingOutgoingEmail.appendText(String).- Specified by:
- formatChangein class- ChangeEmail
- Throws:
- com.google.gerrit.exceptions.EmailException
 
 - 
setupSoyContextprotected void setupSoyContext() - Overrides:
- setupSoyContextin class- ChangeEmail
 
 
- 
 
-