Class NotificationMailTemplateToolkit
java.lang.Object
tv.hd3g.mailkit.notification.implmail.NotificationMailTemplateToolkit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NotificationEnvironmentprotected final Translate -
Constructor Summary
ConstructorsConstructorDescriptionNotificationMailTemplateToolkit(Translate translate, NotificationEnvironment env, EnvironmentVersion environmentVersion) -
Method Summary
Modifier and TypeMethodDescriptioncallerToString(StackTraceElement caller) formatLongDate(Date date, Locale locale) formatShortDate(Date date, Locale locale) formatShortTime(Date date, Locale locale) getResultStateI18n(Locale lang, SupervisableEndEvent event) voidmakeDocumentBaseStyles(List<String> listCSSEntries) voidmakeDocumentCallers(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) voidmakeDocumentContext(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) voidmakeDocumentDates(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) voidmakeDocumentEventEnv(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) voidmakeDocumentFooter(List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) voidmakeDocumentSimpleContext(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries, SendAsSimpleNotificationContextPredicate contextPredicate) voidmakeDocumentTitleError(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, boolean displayVerboseError, boolean displayFullStackTrace) voidmakeDocumentTitleWithoutResult(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) voidmakeDocumentTitleWithResult(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) processHTMLMessage(HtmlCssDocumentPayload payload) processSubject(Locale lang, SupervisableEndEvent event) voidstepsList(Locale lang, SupervisableEndEvent event, boolean verbose, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) translateMessage(Locale lang, SupervisableEndEvent event, SupervisableMessage message)
-
Field Details
-
translate
-
env
-
-
Constructor Details
-
NotificationMailTemplateToolkit
public NotificationMailTemplateToolkit(Translate translate, NotificationEnvironment env, EnvironmentVersion environmentVersion)
-
-
Method Details
-
processSubject
-
processHTMLMessage
-
getResultStateI18n
-
formatLongDate
-
formatShortDate
-
formatShortTime
-
callerToString
-
stepsList
public void stepsList(Locale lang, SupervisableEndEvent event, boolean verbose, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) -
makeDocumentBaseStyles
-
makeDocumentTitleWithoutResult
public void makeDocumentTitleWithoutResult(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) -
translateMessage
public String translateMessage(Locale lang, SupervisableEndEvent event, SupervisableMessage message) -
makeDocumentTitleWithResult
public void makeDocumentTitleWithResult(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) -
makeDocumentTitleError
public void makeDocumentTitleError(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, boolean displayVerboseError, boolean displayFullStackTrace) -
makeDocumentDates
public void makeDocumentDates(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent) -
makeDocumentSimpleContext
public void makeDocumentSimpleContext(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries, SendAsSimpleNotificationContextPredicate contextPredicate) -
makeDocumentContext
public void makeDocumentContext(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) -
makeDocumentCallers
public void makeDocumentCallers(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries) -
makeDocumentEventEnv
public void makeDocumentEventEnv(Locale lang, SupervisableEndEvent event, List<j2html.tags.DomContent> listBodyContent, List<String> listCSSEntries)
-