Class MessageContent


  • public class MessageContent
    extends java.lang.Object
    E-Mail content creator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Pair<java.lang.Integer,​java.util.List<Message>> getHistory​(Localizer l, java.lang.StringBuilder text, int processId, Message msg)  
      protected Process getProcess​(int processId)  
      protected javax.mail.internet.MimeBodyPart history​(java.lang.StringBuilder text, Localizer l, Message msg)
      Appends text with history info and open process link.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • history

        protected javax.mail.internet.MimeBodyPart history​(java.lang.StringBuilder text,
                                                           Localizer l,
                                                           Message msg)
                                                    throws java.lang.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:
        java.lang.Exception
      • getHistory

        protected Pair<java.lang.Integer,​java.util.List<Message>> getHistory​(Localizer l,
                                                                                   java.lang.StringBuilder text,
                                                                                   int processId,
                                                                                   Message msg)
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getProcess

        protected Process getProcess​(int processId)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException