Class OrderMailActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.action.OrderMailActionServiceImpl
- All Implemented Interfaces:
OrderMailActionService
-
Constructor Summary
ConstructorDescriptionOrderMailActionServiceImpl
(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EntityExplorerActionSelectionService selectionService, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkSelection
(EntityExplorerActionSelection selection) checks if a mail should be sent based on the selectionvoid
sendEmail
(EntityExplorerActionSelection selection, String templateName, String reason) calls sendEmail(EntityExplorerActionSelection selection, String templateName, String reason, String target) with empty string for targetvoid
sendEmail
(EntityExplorerActionSelection selection, String templateName, String reason, String target) send a mail with a specified template with a special attribute set
-
Constructor Details
-
OrderMailActionServiceImpl
public OrderMailActionServiceImpl(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EntityExplorerActionSelectionService selectionService, PrincipalService principalService)
-
-
Method Details
-
checkSelection
public boolean checkSelection(EntityExplorerActionSelection selection) throws RpcExecutionException, PersistException Description copied from interface:OrderMailActionService
checks if a mail should be sent based on the selection- Specified by:
checkSelection
in interfaceOrderMailActionService
- Parameters:
selection
- selection to check- Throws:
RpcExecutionException
PersistException
-
sendEmail
public void sendEmail(EntityExplorerActionSelection selection, String templateName, String reason) throws UnsupportedEncodingException, PersistException, jakarta.mail.internet.AddressException, MailException, RpcExecutionException Description copied from interface:OrderMailActionService
calls sendEmail(EntityExplorerActionSelection selection, String templateName, String reason, String target) with empty string for target- Specified by:
sendEmail
in interfaceOrderMailActionService
- Throws:
UnsupportedEncodingException
PersistException
jakarta.mail.internet.AddressException
MailException
RpcExecutionException
-
sendEmail
public void sendEmail(EntityExplorerActionSelection selection, String templateName, String reason, String target) throws UnsupportedEncodingException, PersistException, jakarta.mail.internet.AddressException, MailException, RpcExecutionException Description copied from interface:OrderMailActionService
send a mail with a specified template with a special attribute set- Specified by:
sendEmail
in interfaceOrderMailActionService
- Parameters:
templateName
- template to sendreason
- attribute to be settarget
- attribute to be set- Throws:
UnsupportedEncodingException
PersistException
jakarta.mail.internet.AddressException
MailException
RpcExecutionException
-