Package org.ametys.core.ui.mail
Class StandardMailBodyHelper
java.lang.Object
org.ametys.core.ui.mail.StandardMailBodyHelper
- All Implemented Interfaces:
Initializable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
StandardWebMailBodyHelper
public class StandardMailBodyHelper
extends Object
implements Contextualizable, Serviceable, Initializable
Helper to build standard wrapped HTML body for mail.
Components that is supported by this helper are: title, text messages, details, user actions (such as comment), a button link and footer link
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implements the builder pattern for creating and sending emails. -
Field Summary
Modifier and TypeFieldDescriptionprotected static Context
The avalon contextprotected static UserHelper
The user helperstatic final I18nizableText
I18n text for autogenerated email text with do not answerstatic final I18nizableText
I18n text for autogenerated email text -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) Get the URI to resolve wrapped HTML email bodyvoid
Creates a new mail body builder.void
service
(ServiceManager manager)
-
Field Details
-
AUTOGENERATED_MAIL_TEXT
I18n text for autogenerated email text -
AUTOGENERATED_DO_NOT_ANSWER_TEXT
I18n text for autogenerated email text with do not answer -
_context
The avalon context -
_userHelper
The user helper
-
-
Constructor Details
-
StandardMailBodyHelper
public StandardMailBodyHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getMailBodyUri
Get the URI to resolve wrapped HTML email body- Returns:
- the uri
-
newHTMLBody
Creates a new mail body builder.- Returns:
- the newly created
StandardMailBodyHelper.MailBodyBuilder
.
-