Class MailBuilderImpl
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.MailBuilderImpl
- All Implemented Interfaces:
MailBuilder
-
Constructor Summary
ConstructorDescriptionMailBuilderImpl
(TemplateEngine templateEngine, MailFactory mailFactory, MailProviderManager mailProviderManager, QueryBuilderFactory queryBuilderFactory, Context context, L10N l10N, MultiUploadService multiUploadService, PrincipalService principalService, CssInline cssInline) -
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment
(String id, jakarta.activation.MimeType mimeType) createAttachment
(String id, String fileName, Binary binary) getMail
(MailActionService.MailInfo mailinfo, EntityList selectionList, @Nullable org.joda.time.LocalDate expiryDate, Locale locale, @Nullable Entity sender, MailReceiver receiver, UUID taskUuid, boolean withAttachments) void
setBuilderAddons
(List<MailBuilderAddon> builderAddons)
-
Constructor Details
-
MailBuilderImpl
public MailBuilderImpl(@Lazy TemplateEngine templateEngine, MailFactory mailFactory, MailProviderManager mailProviderManager, QueryBuilderFactory queryBuilderFactory, Context context, L10N l10N, MultiUploadService multiUploadService, PrincipalService principalService, CssInline cssInline)
-
-
Method Details
-
setBuilderAddons
-
getMail
public Mail getMail(MailActionService.MailInfo mailinfo, EntityList selectionList, @Nullable @Nullable org.joda.time.LocalDate expiryDate, Locale locale, @Nullable @Nullable Entity sender, MailReceiver receiver, UUID taskUuid, boolean withAttachments) throws PersistException, TemplateException, jakarta.mail.internet.AddressException, MailException - Specified by:
getMail
in interfaceMailBuilder
- Throws:
PersistException
TemplateException
jakarta.mail.internet.AddressException
MailException
-
createAttachment
- Specified by:
createAttachment
in interfaceMailBuilder
-
createAttachment
- Specified by:
createAttachment
in interfaceMailBuilder
-