public abstract class ReminderMailHelper<T extends ICalendarElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
ReminderMailHelper() |
Modifier and Type | Method and Description |
---|---|
protected void |
addICalendarelementDataToMap(T entity,
ICalendarElement.VAlarm valarm,
java.util.Map<java.lang.String,java.lang.Object> data)
Extract
VEvent data |
org.apache.james.mime4j.message.BodyPart |
buildBody(java.lang.String templateName,
java.lang.String locale,
MessagesResolver messagesResolver,
java.util.Map<java.lang.String,java.lang.Object> data) |
java.lang.String |
buildSubject(java.lang.String templateName,
java.lang.String locale,
MessagesResolver messagesResolver,
java.util.Map<java.lang.String,java.lang.Object> data) |
org.apache.james.mime4j.message.BodyPart |
createTextPart(java.lang.String text) |
protected abstract freemarker.template.Template |
getTemplate(java.lang.String templateName,
java.util.Locale locale) |
protected abstract freemarker.template.Template getTemplate(java.lang.String templateName, java.util.Locale locale) throws java.io.IOException
java.io.IOException
public org.apache.james.mime4j.message.BodyPart createTextPart(java.lang.String text)
text
- public java.lang.String buildSubject(java.lang.String templateName, java.lang.String locale, MessagesResolver messagesResolver, java.util.Map<java.lang.String,java.lang.Object> data)
templateName
- locale
- data
- public org.apache.james.mime4j.message.BodyPart buildBody(java.lang.String templateName, java.lang.String locale, MessagesResolver messagesResolver, java.util.Map<java.lang.String,java.lang.Object> data) throws java.io.IOException, freemarker.template.TemplateException
templateName
- locale
- data
- java.io.IOException
freemarker.template.TemplateException
protected void addICalendarelementDataToMap(T entity, ICalendarElement.VAlarm valarm, java.util.Map<java.lang.String,java.lang.Object> data)
VEvent
dataentity
- the VEvent
to extractCopyright © 2021. All Rights Reserved.