Class EmailMessage
java.lang.Object
org.ametys.plugins.messagingconnector.EmailMessage
This class represents a mail. A mail is composed by:
- a sender (name or email)
- a subject
- a summary
- a sender (name or email)
- a subject
- a summary
-
Constructor Summary
ConstructorDescriptionCreates a empty emailEmailMessage
(String subject, String sender, String summary) Creates a new mail message -
Method Summary
Modifier and TypeMethodDescriptionGet the sender of the mailGet the subject of the mailGet the summary of the mailvoid
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 summarytoString()
-
Constructor Details
-
EmailMessage
public EmailMessage()Creates a empty email -
EmailMessage
Creates a new mail message- Parameters:
subject
- the subject of the mailsender
- the sender of the mailsummary
- the summary/body of the mail
-
-
Method Details
-
getSender
Get the sender of the mail- Returns:
- the sender
-
setSender
Set the sender of the mail to a new user- Parameters:
sender
- the sender to set
-
getSubject
Get the subject of the mail- Returns:
- the subject
-
setSubject
Set the subject of the mail to a new value- Parameters:
subject
- the subject to set
-
getSummary
Get the summary of the mail- Returns:
- the summary
-
setSummary
Set the content of the mail to a new summary- Parameters:
summary
- the summary to set
-
toString
-