public interface EmailTemplateProvider extends Provider
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTITY_PROVIDER_BROKER_CONTEXT |
| Modifier and Type | Method and Description |
|---|---|
void |
send(String subjectFormatKey,
List<Object> subjectAttributes,
String bodyTemplate,
Map<String,Object> bodyAttributes)
Send formatted email
|
void |
send(String subjectFormatKey,
String bodyTemplate,
Map<String,Object> bodyAttributes)
Send formatted email
|
void |
sendConfirmIdentityBrokerLink(String link,
long expirationInMinutes)
Send to confirm that user wants to link his account with identity broker link
|
void |
sendEvent(Event event) |
void |
sendExecuteActions(String link,
long expirationInMinutes)
Change password email requested by admin
|
void |
sendPasswordReset(String link,
long expirationInMinutes)
Reset password sent from forgot password link on login
|
void |
sendSmtpTestEmail(Map<String,String> config,
UserModel user)
Test SMTP connection with current logged in user
|
void |
sendVerifyEmail(String link,
long expirationInMinutes) |
EmailTemplateProvider |
setAttribute(String name,
Object value) |
EmailTemplateProvider |
setAuthenticationSession(AuthenticationSessionModel authenticationSession) |
EmailTemplateProvider |
setRealm(RealmModel realm) |
EmailTemplateProvider |
setUser(UserModel user) |
static final String IDENTITY_PROVIDER_BROKER_CONTEXT
EmailTemplateProvider setAuthenticationSession(AuthenticationSessionModel authenticationSession)
EmailTemplateProvider setRealm(RealmModel realm)
EmailTemplateProvider setUser(UserModel user)
EmailTemplateProvider setAttribute(String name, Object value)
void sendEvent(Event event) throws EmailException
EmailExceptionvoid sendPasswordReset(String link, long expirationInMinutes) throws EmailException
link - expirationInMinutes - EmailExceptionvoid sendSmtpTestEmail(Map<String,String> config, UserModel user) throws EmailException
config - SMTP server configurationuser - SMTP recipientEmailExceptionvoid sendConfirmIdentityBrokerLink(String link, long expirationInMinutes) throws EmailException
EmailExceptionvoid sendExecuteActions(String link, long expirationInMinutes) throws EmailException
link - expirationInMinutes - EmailExceptionvoid sendVerifyEmail(String link, long expirationInMinutes) throws EmailException
EmailExceptionvoid send(String subjectFormatKey, String bodyTemplate, Map<String,Object> bodyAttributes) throws EmailException
subjectFormatKey - message property that will be used to format email subjectbodyTemplate - freemarker template filebodyAttributes - attributes used to fill templateEmailExceptionvoid send(String subjectFormatKey, List<Object> subjectAttributes, String bodyTemplate, Map<String,Object> bodyAttributes) throws EmailException
subjectFormatKey - message property that will be used to format email subjectsubjectAttributes - attributes used to fill subject format messagebodyTemplate - freemarker template filebodyAttributes - attributes used to fill templateEmailExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.