Package org.bgerp.plugin.msg.email
Class MessageContent
java.lang.Object
org.bgerp.plugin.msg.email.MessageContent
E-Mail content creator.
-
Method Summary
Modifier and TypeMethodDescriptiongetHistory
(Localizer l, StringBuilder text, int processId, Message msg) protected Process
getProcess
(int processId) protected javax.mail.internet.MimeBodyPart
history
(StringBuilder text, Localizer l, Message msg) Appends text with history info and open process link.
-
Method Details
-
history
protected javax.mail.internet.MimeBodyPart history(StringBuilder text, Localizer l, Message msg) throws Exception Appends text with history info and open process link.- Parameters:
text
- body text, can be modified during the changes.l
- localizer with target language.msg
- message.- Returns:
- mime part with 'History.txt' or
null
if no history to attach. - Throws:
Exception
-
getHistory
protected Pair<Integer,List<Message>> getHistory(Localizer l, StringBuilder text, int processId, Message msg) throws Exception - Throws:
Exception
-
getProcess
- Throws:
SQLException
-