@Service @Transactional(propagation=REQUIRED) public class ConfirmationServiceImpl extends CoreBaseService<ConfirmationServiceMetric<ConfirmationServiceContext>,ConfirmationServiceContext> implements ConfirmationService
构造器和说明 |
---|
ConfirmationServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
sendConfirmation(ConfirmationInfo confirmationInfo)
This sends "confirmations" (a.k.a Bestaetigung) emails.
|
boolean |
sendMessage(MailMessage message)
Business decisions:
1. send email to only one recipient at a time, 2. if message.hasCC()==true send only one cc: a message with same recipient and sender. |
public boolean sendConfirmation(ConfirmationInfo confirmationInfo)
ConfirmationService
sendConfirmation
在接口中 ConfirmationService
public boolean sendMessage(MailMessage message) throws InvalidAddressException
message.hasCC()==true
send only one cc: a message with same recipient and sender.sendMessage
在接口中 ConfirmationService
InvalidAddressException