Class EmailMessage


  • public class EmailMessage
    extends Object
    This class define define an email message.
    Since:
    3.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • EmailMessage

        public EmailMessage​(String subject,
                            String content)
        Constructor.
        Parameters:
        subject - subject of the message
        content - content of the message
      • EmailMessage

        public EmailMessage​(long id,
                            String subject,
                            String content)
        Constructor.
        Parameters:
        id - id of the email
        subject - subject of the message
        content - content of the message
      • EmailMessage

        public EmailMessage​(long id,
                            String subject,
                            String content,
                            boolean errorMessage)
        Constructor.
        Parameters:
        id - id of the email
        subject - subject of the message
        content - content of the message
    • Method Detail

      • getId

        public long getId()
        Get the id of the message.
        Returns:
        the id of the message
      • getSubject

        public String getSubject()
        Get the subject of the message.
        Returns:
        the subject of the message
      • getContent

        public String getContent()
        Get the content of the message.
        Returns:
        the content of the message
      • isNoMessage

        public boolean isNoMessage()
        Test if the message must be sent.
        Returns:
        true if the message must not be sent
      • isErrorMessage

        public boolean isErrorMessage()
        Test if the message is an error message.
        Returns:
        true if the message is an error message
      • noMessage

        public static EmailMessage noMessage()
        Create a email without message that will be sent.
        Returns:
        a email without message that will be sent