Package eu.europeana.apikey.mail
Class MailService
java.lang.Object
eu.europeana.apikey.mail.MailService
Created by luthien on 04/07/2017.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.springframework.mail.javamail.JavaMailSenderThe Email sender. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendApiKeyAndClientEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey, String clientSecret) Send api key and client email.voidsendApiKeyEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey) Send api key email.booleansendDeletedUserEmail(org.springframework.mail.SimpleMailMessage template, String today, String email, String kcDeleted, String setsDeleted, String inThirtyDays) Send deleted user email boolean.booleansendUserProblemEmail(org.springframework.mail.SimpleMailMessage template, String today, String userId, int status) Send user problem email boolean.
-
Field Details
-
emailSender
@Autowired public org.springframework.mail.javamail.JavaMailSender emailSenderThe Email sender.
-
-
Constructor Details
-
MailService
public MailService()
-
-
Method Details
-
sendApiKeyEmail
public void sendApiKeyEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey) throws SendMailException Send api key email.- Parameters:
template- the templatefirstName- the first namelastName- the last nameapiKey- the api key- Throws:
SendMailException- the send mail exception
-
sendApiKeyAndClientEmail
public void sendApiKeyAndClientEmail(org.springframework.mail.SimpleMailMessage template, String firstName, String lastName, String apiKey, String clientSecret) throws SendMailException Send api key and client email.- Parameters:
template- the templatefirstName- the first namelastName- the last nameapiKey- the api keyclientSecret- the client secret- Throws:
SendMailException- the send mail exception
-
sendDeletedUserEmail
public boolean sendDeletedUserEmail(org.springframework.mail.SimpleMailMessage template, String today, String email, String kcDeleted, String setsDeleted, String inThirtyDays) Send deleted user email boolean.- Parameters:
template- the templatetoday- the todayemail- the emailkcDeleted- the kc deletedsetsDeleted- the sets deletedinThirtyDays- the in thirty days- Returns:
- the boolean
-
sendUserProblemEmail
public boolean sendUserProblemEmail(org.springframework.mail.SimpleMailMessage template, String today, String userId, int status) Send user problem email boolean.- Parameters:
template- the templatetoday- the todayuserId- the user idstatus- the status- Returns:
- the boolean
-