public abstract class EmailServiceImpl extends Object implements EmailService
EmailService| Constructor and Description |
|---|
EmailServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract EmailBuilder |
createEmailBuilder()
This method will be handled by Spring Framework.
|
void |
sendApiToken(Token token,
String url)
Sends a token to user as part of registration confirmation
|
void |
sendException(String subject,
String body)
Sends exception to the site admin
|
void |
sendFeedback(String email,
String feedback)
Sends the user's feedback to the site admin, and sends an thanking email to the user
|
void |
sendForgotPassword(String email,
String url)
Sends and email to user in case of forgotting password.
|
void |
sendForgotPassword(User user,
String url)
Sends and email to user in case of forgotting password.
|
void |
sendRegisterApiNotifyAdmin(User user)
Sends email to the site administrator about an API registration
|
void |
sendRegisterApiNotifyUser(ApiKey apiKey,
Locale locale)
Sends email to the user about the details of API registration
|
void |
sendRegisterNotify(User user)
Sends a token to user as part of registration confirmation
|
void |
sendToken(Token token,
String url)
Sends a token to user as part of registration confirmation
|
public void sendToken(Token token, String url) throws EmailServiceException
sendToken in interface EmailServicetoken - The token to send to the userurl - The URL of registration confirm pageEmailServiceExceptionpublic void sendApiToken(Token token, String url) throws EmailServiceException
sendApiToken in interface EmailServicetoken - The token to send to the userurl - The URL of registration confirm pageEmailServiceExceptionpublic void sendRegisterNotify(User user) throws EmailServiceException
sendRegisterNotify in interface EmailServiceuser - The user to send register notifcation toEmailServiceExceptionpublic void sendRegisterApiNotifyAdmin(User user) throws EmailServiceException
sendRegisterApiNotifyAdmin in interface EmailServiceEmailServiceExceptionpublic void sendRegisterApiNotifyUser(ApiKey apiKey, Locale locale) throws EmailServiceException
sendRegisterApiNotifyUser in interface EmailServiceEmailServiceExceptionpublic void sendForgotPassword(User user, String url) throws EmailServiceException
sendForgotPassword in interface EmailServiceuser - The user objecturl - The URL of the password reset pageEmailServiceExceptionpublic void sendForgotPassword(String email, String url) throws EmailServiceException
sendForgotPassword in interface EmailServiceemail - The user objecturl - The URL of the password reset pageEmailServiceExceptionpublic void sendFeedback(String email, String feedback) throws EmailServiceException
sendFeedback in interface EmailServiceemail - The user's email addressfeedback - The user's feedbackEmailServiceExceptionpublic void sendException(String subject, String body) throws EmailServiceException
sendException in interface EmailServiceEmailServiceExceptionprotected abstract EmailBuilder createEmailBuilder()
Copyright © 2015 Europeana Foundation. All rights reserved.