Class MailFactoryImpl
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.MailFactoryImpl
- All Implemented Interfaces:
MailFactory
-
Constructor Summary
ConstructorDescriptionMailFactoryImpl
(L10N l10N, BusinessUnitEmailService businessUnitEmailService, RequestService requestService, MailProviderManager mailProviderManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMailListener
(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 templateEntity
and with the givenLocale
using a specificMailProvider
createMail
(String subject) creates an empty mail with the given subjectcreateMail
(String subject, MailProvider mailProvider) creates an empty mail with the given subject using a specificMailProvider
createMailFromTemplate
(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 specificMailProvider
Note: this method creates the mail using the current localevoid
removeMailListener
(Mail.MailListener listener)
-
Constructor Details
-
MailFactoryImpl
public MailFactoryImpl(L10N l10N, BusinessUnitEmailService businessUnitEmailService, RequestService requestService, MailProviderManager mailProviderManager)
-
-
Method Details
-
addMailListener
- Specified by:
addMailListener
in interfaceMailFactory
-
removeMailListener
- Specified by:
removeMailListener
in interfaceMailFactory
-
createMail
Description copied from interface:MailFactory
creates an empty mail with the given subject- Specified by:
createMail
in interfaceMailFactory
-
createMail
Description copied from interface:MailFactory
creates an empty mail with the given subject using a specificMailProvider
- Specified by:
createMail
in interfaceMailFactory
-
createLocalizedMailFromTemplate
Description copied from interface:MailFactory
- Specified by:
createLocalizedMailFromTemplate
in interfaceMailFactory
-
createLocalizedMailFromTemplate
public Mail createLocalizedMailFromTemplate(EmailTemplate template, Locale locale, MailProvider mailProvider) Description copied from interface:MailFactory
creates a mail using all non empty values from the given templateEntity
and with the givenLocale
using a specificMailProvider
- Specified by:
createLocalizedMailFromTemplate
in interfaceMailFactory
-
createMailFromTemplate
Description copied from interface:MailFactory
creates a mail using all non empty values from the given template Note: this method creates the mail using the current locale- Specified by:
createMailFromTemplate
in interfaceMailFactory
-
createMailFromTemplate
Description copied from interface:MailFactory
creates a mail using all non empty values from the given template using a specificMailProvider
Note: this method creates the mail using the current locale- Specified by:
createMailFromTemplate
in interfaceMailFactory
-