public interface EmailService
| Modifier and Type | Method and Description |
|---|---|
void |
sendActivationToken(Token token,
String apiHost)
Send an activation link to a new user account
|
void |
sendApiKeys(ApiKey apiKey)
Send API keys to new api registration
|
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 |
sendNewPasswordToken(Token token,
String apiHost,
String salutation) |
void |
sendPasswordResetConfirmation(User user,
String salutation) |
void sendActivationToken(Token token, String apiHost) throws EmailServiceException
token - The token to send to the userapiHost - The api host url for the activation method in APIEmailServiceExceptionvoid sendApiKeys(ApiKey apiKey) throws EmailServiceException
apiKey - ApiKey object containing the new keys and email addressEmailServiceExceptionvoid sendNewPasswordToken(Token token, String apiHost, String salutation) throws EmailServiceException
token - The token to send to the userapiHost - The api host url for the activation method in APIEmailServiceExceptionvoid sendPasswordResetConfirmation(User user, String salutation) throws EmailServiceException
user - to whom the confirmation is sentEmailServiceExceptionvoid sendForgotPassword(User user, String url) throws EmailServiceException
user - The user objecturl - The URL of the password reset pageEmailServiceExceptionvoid sendForgotPassword(String email, String url) throws EmailServiceException
email - The user objecturl - The URL of the password reset pageEmailServiceExceptionvoid sendFeedback(String email, String feedback) throws EmailServiceException
email - The user's email addressfeedback - The user's feedbackEmailServiceExceptionvoid sendException(String subject, String body) throws EmailServiceException
EmailServiceExceptionCopyright © 2017 Europeana Foundation. All rights reserved.