Class TokenMessageBuilder
java.lang.Object
ch.colabproject.colab.api.controller.token.TokenMessageBuilder
To build the body of the message to send for a token.
- Author:
- sandra
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringText to set as a footer to inform about the validity of the message -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalFooter(String footer) Add a message footerbuild()Build the email body to send with the tokenSet the message headingSet the message head titleSet the message additional contentSet the message link hrefSet the message link labelSet the message main picturesubheading(String subheading) Set the message sub heading
-
Field Details
-
VALIDITY_FOOTER
Text to set as a footer to inform about the validity of the message- See Also:
-
-
Constructor Details
-
TokenMessageBuilder
Constructor- Parameters:
token- the token for which we are writing a message
-
-
Method Details
-
headTitle
Set the message head title- Parameters:
headTitle- the head title to set- Returns:
- this builder
-
picture
Set the message main picture- Parameters:
picture- the main picture to set- Returns:
- this builder
-
heading
Set the message heading- Parameters:
heading- the heading to set- Returns:
- this builder
-
subheading
Set the message sub heading- Parameters:
subheading- the sub heading to set- Returns:
- this builder
-
info
Set the message additional content- Parameters:
info- the additional content to set- Returns:
- this builder
-
linkHref
Set the message link href- Parameters:
linkHref- the link href to set- Returns:
- this builder
-
linkLabel
Set the message link label- Parameters:
linkLabel- the link label to set- Returns:
- this builder
-
build
Build the email body to send with the token- Returns:
- html email body
-