Class EmailModelBuilder
java.lang.Object
io.meeds.portal.mail.model.EmailModelBuilder
Builds an
EmailModel: what an email says, apart from how it looks-
Method Summary
Modifier and TypeMethodDescriptionA last remark in small print, after the closing wordsbuild()The action of the email; the link must be http, https or mailtoA value the reader may need to keep, such as a login, set apart from the textfallbackLabel(String fallbackLabel) The sentence that introduces the plain address shown under the buttonThe language of the reader, as a BCP 47 tag; it sets the lang of the documentThe sentence that introduces the buttonA short remark under the button, such as how long the link lastsA paragraph of the message, in plain textThe preview a mail client shows next to the subjectThe closing words; a blank line starts a new paragraphThe headline, shown in the header band, and the subject of the documenttrustedHtml(String trustedHtml) HTML the caller has already sanitized; inserted as is after the paragraphs
-
Method Details
-
lang
The language of the reader, as a BCP 47 tag; it sets the lang of the document -
title
The headline, shown in the header band, and the subject of the document -
preheader
The preview a mail client shows next to the subject -
paragraph
A paragraph of the message, in plain text -
trustedHtml
HTML the caller has already sanitized; inserted as is after the paragraphs -
fact
A value the reader may need to keep, such as a login, set apart from the text -
lead
The sentence that introduces the button -
button
The action of the email; the link must be http, https or mailto -
note
A short remark under the button, such as how long the link lasts -
signoff
The closing words; a blank line starts a new paragraph -
aside
A last remark in small print, after the closing words -
fallbackLabel
The sentence that introduces the plain address shown under the button -
build
-