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
Nested ClassesModifier and TypeClassDescriptionstatic classImplements the builder pattern for creating and sending emails. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static ContextThe avalon contextprotected static UserHelperThe user helperstatic final I18nizableTextI18n text for autogenerated email text with do not answerstatic final I18nizableTextI18n text for autogenerated email text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) Get the URI to resolve wrapped HTML email bodyvoidCreates a new mail body builder.voidservice(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:
contextualizein interfaceContextualizable
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
service
- Specified by:
servicein 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.
-