Package org.ametys.web.mail
Class ReportActivitiesMailBodyHelper
java.lang.Object
org.ametys.web.mail.ReportActivitiesMailBodyHelper
- All Implemented Interfaces:
Initializable
,Contextualizable
,Serviceable
public class ReportActivitiesMailBodyHelper
extends Object
implements Contextualizable, Serviceable, Initializable
Component to build wrapped HTML mail body for report activities
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implements the builder pattern for creating and sending emails. -
Field Summary
-
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
-
_context
The avalon context
-
-
Constructor Details
-
ReportActivitiesMailBodyHelper
public ReportActivitiesMailBodyHelper()
-
-
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
ReportActivitiesMailBodyHelper.MailBodyBuilder
.
-