Package com.plannaplan.services
Class EmailService
java.lang.Object
com.plannaplan.services.EmailService
@Service
public class EmailService
extends java.lang.Object
Service to send emails
-
Constructor Summary
Constructors Constructor Description EmailService()
-
Method Summary
Modifier and Type Method Description void
sendAcceptationResult(User user, EmailAcceptedData data)
sends email with infromation about accepted groupsvoid
sendExchangesResults(EmailExchangesData data)
method to send email for students whose groups were swapedvoid
sendMail(java.lang.String destination, java.lang.String message)
send simple text email
-
Constructor Details
-
EmailService
public EmailService()
-
-
Method Details
-
sendMail
public void sendMail(java.lang.String destination, java.lang.String message)send simple text email- Parameters:
destination
- destitnaion mailmessage
- text to be send
-
sendAcceptationResult
sends email with infromation about accepted groups- Parameters:
user
- user to send a maildata
- EmailAcceptedData instance containing informations about accepted and removed groups
-
sendExchangesResults
method to send email for students whose groups were swaped- Parameters:
data
- EmailExchangesData instance that contains pair of datas user and list of performed exhanges
-