Package org.bgerp.plugin.msg.email.message

# Class MessageContent

java.lang.Object
org.bgerp.plugin.msg.email.message.MessageContent

public class MessageContent extends Object
Email content creator.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected Pair<Integer,List<Message>>`
  `getHistory(Localizer l, StringBuilder text, int processId, Message msg)`
  `protected Process`
  `getProcess(int processId)`
  `protected jakarta.mail.internet.MimeBodyPart`
  `history(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 Details

  - ### history

    protected jakarta.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

    protected Process getProcess(int processId) throws SQLException
    Throws:
      `SQLException`