public class

SoyMailMessageRequest

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.mail.SoyMailMessageRequest

Summary

Nested Classes
class SoyMailMessageRequest.Builder  
Public Methods
@Nonnull Map<String, Object> getContext()
@Nonnull String getCssModuleKey()
@Nonnull Function<MailMessage.BuilderMailMessage.Builder> getMessageEffector()
Can be passed that will be given the opportunity to add to the MailMessage.Builder, returning a new Builder to use for the MailMessage.
@Nonnull Iterable<ApplicationUser> getRecipients()
@Nonnull String getSoyTemplateModuleKey()
@Nonnull String getSoyTemplateName()
@Nullable I18nKey getSubjectKey()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public Map<String, Object> getContext ()

@Nonnull public String getCssModuleKey ()

Returns
  • the key of the css module to inline into the mail message

@Nonnull public Function<MailMessage.BuilderMailMessage.Builder> getMessageEffector ()

Can be passed that will be given the opportunity to add to the MailMessage.Builder, returning a new Builder to use for the MailMessage. The SoyMailer will set the text, to, subject etc, so these can be over-ridden or used to set headers.

@Nonnull public Iterable<ApplicationUser> getRecipients ()

Returns
  • the list of users to be sent the mail

@Nonnull public String getSoyTemplateModuleKey ()

Returns
  • the key of the module containing the soy template

@Nonnull public String getSoyTemplateName ()

Returns
  • the name of the soy template to render

@Nullable public I18nKey getSubjectKey ()

Returns
  • the i18n key of the mail subject line