Package io.jmix.bpm.notification.impl
Class BpmMessageTemplateRendererImpl
java.lang.Object
io.jmix.bpm.notification.impl.BpmMessageTemplateRendererImpl
- All Implemented Interfaces:
BpmMessageTemplateRenderer
Default
BpmMessageTemplateRenderer implementation, delegating rendering to the Message
Templates add-on's MessageTemplatesGenerator.
It is conditional bean, see BpmMessageTemplatesAutoConfiguration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UnconstrainedDataManagerprotected MessageTemplatesGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetContentType(String templateCode) Resolves the content type declared by the template with the given code.Renders the template with the given code, substituting the passed parameters.
-
Field Details
-
messageTemplatesGenerator
-
dataManager
-
-
Constructor Details
-
BpmMessageTemplateRendererImpl
public BpmMessageTemplateRendererImpl()
-
-
Method Details
-
render
Description copied from interface:BpmMessageTemplateRendererRenders the template with the given code, substituting the passed parameters.- Specified by:
renderin interfaceBpmMessageTemplateRenderer- Parameters:
templateCode- message template codeparameters- parameters available to the template- Returns:
- rendered message text
-
getContentType
Description copied from interface:BpmMessageTemplateRendererResolves the content type declared by the template with the given code.- Specified by:
getContentTypein interfaceBpmMessageTemplateRenderer- Parameters:
templateCode- message template code- Returns:
"html"or"plain"per the template's type, ornullif the template is not found
-