Class EmailMessage
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.aozan3.EmailMessage
-
public class EmailMessage extends Object
This class define define an email message.- Since:
- 3.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description EmailMessage(long id, String subject, String content)
Constructor.EmailMessage(long id, String subject, String content, boolean errorMessage)
Constructor.EmailMessage(String subject, String content)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
Get the content of the message.long
getId()
Get the id of the message.String
getSubject()
Get the subject of the message.boolean
isErrorMessage()
Test if the message is an error message.boolean
isNoMessage()
Test if the message must be sent.static EmailMessage
noMessage()
Create a email without message that will be sent.
-
-
-
Constructor Detail
-
EmailMessage
public EmailMessage(String subject, String content)
Constructor.- Parameters:
subject
- subject of the messagecontent
- content of the message
-
EmailMessage
public EmailMessage(long id, String subject, String content)
Constructor.- Parameters:
id
- id of the emailsubject
- subject of the messagecontent
- 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
-
-