Class EmailMessage
- java.lang.Object
-
- org.ametys.plugins.messagingconnector.EmailMessage
-
public class EmailMessage extends Object
This class represents a mail. A mail is composed by:
- a sender (name or email)
- a subject
- a summary
-
-
Constructor Summary
Constructors Constructor Description EmailMessage()
Creates a empty emailEmailMessage(String subject, String sender, String summary)
Creates a new mail message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSender()
Get the sender of the mailString
getSubject()
Get the subject of the mailString
getSummary()
Get the summary of the mailvoid
setSender(String sender)
Set the sender of the mail to a new uservoid
setSubject(String subject)
Set the subject of the mail to a new valuevoid
setSummary(String summary)
Set the content of the mail to a new summaryString
toString()
-
-
-
Constructor Detail
-
EmailMessage
public EmailMessage()
Creates a empty email
-
EmailMessage
public EmailMessage(String subject, String sender, String summary)
Creates a new mail message- Parameters:
subject
- the subject of the mailsender
- the sender of the mailsummary
- the summary/body of the mail
-
-
Method Detail
-
setSender
public void setSender(String sender)
Set the sender of the mail to a new user- Parameters:
sender
- the sender to set
-
getSubject
public String getSubject()
Get the subject of the mail- Returns:
- the subject
-
setSubject
public void setSubject(String subject)
Set the subject of the mail to a new value- Parameters:
subject
- the subject to set
-
getSummary
public String getSummary()
Get the summary of the mail- Returns:
- the summary
-
setSummary
public void setSummary(String summary)
Set the content of the mail to a new summary- Parameters:
summary
- the summary to set
-
-