Package org.openmetadata.service.util
Class EmailUtil
- java.lang.Object
-
- org.openmetadata.service.util.EmailUtil
-
public class EmailUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCOUNT_STATUS_TEMPLATE_FILEstatic StringACTION_KEYstatic StringACTION_STATUS_KEYstatic StringAPPLICATION_LOGIN_LINKstatic StringCHANGE_EVENT_TEMPLATEstatic StringDATA_INSIGHT_REPORT_TEMPLATEstatic StringDEFAULT_EXPIRATION_TIMEstatic StringEMAIL_TEMPLATE_BASEPATHstatic StringEMAIL_VERIFICATION_LINKKEYstatic StringEMAIL_VERIFICATION_TEMPLATE_PATHstatic StringENTITYstatic StringEXPIRATION_TIME_KEYstatic StringINVITE_CREATE_PWDstatic StringINVITE_RANDOM_PWDstatic StringPASSWORDstatic StringPASSWORD_RESET_LINKKEYstatic StringPASSWORD_RESET_TEMPLATE_FILEstatic StringSUPPORT_URLstatic StringTASK_NOTIFICATION_TEMPLATEstatic StringUSERNAME
-
Method Summary
-
-
-
Field Detail
-
USERNAME
public static final String USERNAME
- See Also:
- Constant Field Values
-
ENTITY
public static final String ENTITY
- See Also:
- Constant Field Values
-
SUPPORT_URL
public static final String SUPPORT_URL
- See Also:
- Constant Field Values
-
EMAIL_TEMPLATE_BASEPATH
public static final String EMAIL_TEMPLATE_BASEPATH
- See Also:
- Constant Field Values
-
EMAIL_VERIFICATION_LINKKEY
public static final String EMAIL_VERIFICATION_LINKKEY
- See Also:
- Constant Field Values
-
EMAIL_VERIFICATION_TEMPLATE_PATH
public static final String EMAIL_VERIFICATION_TEMPLATE_PATH
- See Also:
- Constant Field Values
-
PASSWORD_RESET_LINKKEY
public static final String PASSWORD_RESET_LINKKEY
- See Also:
- Constant Field Values
-
EXPIRATION_TIME_KEY
public static final String EXPIRATION_TIME_KEY
- See Also:
- Constant Field Values
-
DEFAULT_EXPIRATION_TIME
public static final String DEFAULT_EXPIRATION_TIME
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
APPLICATION_LOGIN_LINK
public static final String APPLICATION_LOGIN_LINK
- See Also:
- Constant Field Values
-
PASSWORD_RESET_TEMPLATE_FILE
public static final String PASSWORD_RESET_TEMPLATE_FILE
- See Also:
- Constant Field Values
-
ACTION_KEY
public static final String ACTION_KEY
- See Also:
- Constant Field Values
-
ACTION_STATUS_KEY
public static final String ACTION_STATUS_KEY
- See Also:
- Constant Field Values
-
ACCOUNT_STATUS_TEMPLATE_FILE
public static final String ACCOUNT_STATUS_TEMPLATE_FILE
- See Also:
- Constant Field Values
-
INVITE_RANDOM_PWD
public static final String INVITE_RANDOM_PWD
- See Also:
- Constant Field Values
-
CHANGE_EVENT_TEMPLATE
public static final String CHANGE_EVENT_TEMPLATE
- See Also:
- Constant Field Values
-
INVITE_CREATE_PWD
public static final String INVITE_CREATE_PWD
- See Also:
- Constant Field Values
-
TASK_NOTIFICATION_TEMPLATE
public static final String TASK_NOTIFICATION_TEMPLATE
- See Also:
- Constant Field Values
-
DATA_INSIGHT_REPORT_TEMPLATE
public static final String DATA_INSIGHT_REPORT_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendAccountStatus
public static void sendAccountStatus(User user, String action, String status) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendEmailVerification
public static void sendEmailVerification(String emailVerificationLink, User user) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendPasswordResetLink
public static void sendPasswordResetLink(String passwordResetLink, User user, String subject, String templateFilePath) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendTaskAssignmentNotificationToUser
public static void sendTaskAssignmentNotificationToUser(String assigneeName, String email, String taskLink, Thread thread, String subject, String templateFilePath) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendMail
public static void sendMail(String subject, Map<String,Object> model, String to, String baseTemplatePackage, String templatePath) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendMailToMultiple
public static void sendMailToMultiple(String subject, Map<String,Object> model, Set<String> to, String baseTemplatePackage, String templatePath) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
sendMail
public static void sendMail(org.simplejavamail.api.email.Email email)
-
sendChangeEventMail
public static void sendChangeEventMail(String receiverMail, EmailMessage emailMessaged)
-
sendDataInsightEmailNotificationToUser
public static void sendDataInsightEmailNotificationToUser(Set<String> emails, DataInsightTotalAssetTemplate totalAssetObj, DataInsightDescriptionAndOwnerTemplate descriptionObj, DataInsightDescriptionAndOwnerTemplate ownerShipObj, DataInsightDescriptionAndOwnerTemplate tierObj, String subject, String templateFilePath) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.template.TemplateException
-
testConnection
public static void testConnection()
-
getPasswordResetSubject
public static String getPasswordResetSubject()
-
getEmailInviteSubject
public static String getEmailInviteSubject()
-
getChangeEventTemplate
public static String getChangeEventTemplate()
-
getTaskAssignmentSubject
public static String getTaskAssignmentSubject()
-
getDataInsightReportSubject
public static String getDataInsightReportSubject()
-
getEmailingEntity
public static String getEmailingEntity()
-
getSupportUrl
public static String getSupportUrl()
-
getOMUrl
public static String getOMUrl()
-
-