Class MailFactoryImpl
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.MailFactoryImpl
- All Implemented Interfaces:
MailFactory
-
Constructor Summary
ConstructorsConstructorDescriptionMailFactoryImpl(L10N l10N, BusinessUnitEmailService businessUnitEmailService, RequestService requestService, MailProviderManager mailProviderManager, EmailTemplateAttachmentService emailTemplateAttachmentService, MailArchive mailArchive) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMailListener(Mail.MailListener listener) createLocalizedMailFromTemplate(EmailTemplate template, Locale locale) createLocalizedMailFromTemplate(EmailTemplate template, Locale locale, MailProvider mailProvider) creates a mail using all non empty values from the given templateEntityand with the givenLocaleusing a specificMailProvidercreateMail(String subject) creates an empty mail with the given subjectcreateMail(String subject, MailProvider mailProvider) creates an empty mail with the given subject using a specificMailProvidercreateMailFromTemplate(EmailTemplate template) creates a mail using all non empty values from the given template Note: this method creates the mail using the current localecreateMailFromTemplate(EmailTemplate template, MailProvider mailProvider) creates a mail using all non empty values from the given template using a specificMailProviderNote: this method creates the mail using the current localevoidremoveMailListener(Mail.MailListener listener)
-
Constructor Details
-
MailFactoryImpl
public MailFactoryImpl(L10N l10N, BusinessUnitEmailService businessUnitEmailService, RequestService requestService, MailProviderManager mailProviderManager, EmailTemplateAttachmentService emailTemplateAttachmentService, MailArchive mailArchive)
-
-
Method Details
-
addMailListener
- Specified by:
addMailListenerin interfaceMailFactory
-
removeMailListener
- Specified by:
removeMailListenerin interfaceMailFactory
-
createMail
Description copied from interface:MailFactorycreates an empty mail with the given subject- Specified by:
createMailin interfaceMailFactory
-
createMail
Description copied from interface:MailFactorycreates an empty mail with the given subject using a specificMailProvider- Specified by:
createMailin interfaceMailFactory
-
createLocalizedMailFromTemplate
Description copied from interface:MailFactory- Specified by:
createLocalizedMailFromTemplatein interfaceMailFactory
-
createLocalizedMailFromTemplate
public Mail createLocalizedMailFromTemplate(EmailTemplate template, Locale locale, MailProvider mailProvider) Description copied from interface:MailFactorycreates a mail using all non empty values from the given templateEntityand with the givenLocaleusing a specificMailProvider- Specified by:
createLocalizedMailFromTemplatein interfaceMailFactory
-
createMailFromTemplate
Description copied from interface:MailFactorycreates a mail using all non empty values from the given template Note: this method creates the mail using the current locale- Specified by:
createMailFromTemplatein interfaceMailFactory
-
createMailFromTemplate
Description copied from interface:MailFactorycreates a mail using all non empty values from the given template using a specificMailProviderNote: this method creates the mail using the current locale- Specified by:
createMailFromTemplatein interfaceMailFactory
-