Class MailItem
- java.lang.Object
-
- fr.paris.lutece.portal.service.mail.MailItem
-
- All Implemented Interfaces:
java.io.Serializable
public class MailItem extends java.lang.Object implements java.io.SerializableMailIem- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_CALENDARstatic intFORMAT_HTMLstatic intFORMAT_MULTIPART_HTMLstatic intFORMAT_MULTIPART_TEXTstatic intFORMAT_TEXT
-
Constructor Summary
Constructors Constructor Description MailItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCalendarMessage()Returns the calendar messagebooleangetCreateEvent()Check if the calendar event of this mail item should be created or removedjava.util.List<FileAttachment>getFilesAttachement()Returns a collection of files attachementintgetFormat()Returns the Formatjava.lang.StringgetMessage()Returns the Messagejava.lang.StringgetRecipientsBcc()Returns the Recipientjava.lang.StringgetRecipientsCc()Returns the Recipientjava.lang.StringgetRecipientsTo()Returns the Recipientjava.lang.StringgetSenderEmail()Returns the SenderEmailjava.lang.StringgetSenderName()Returns the SenderNamejava.lang.StringgetSubject()Returns the Subjectjava.util.List<UrlAttachment>getUrlsAttachement()return the list of urls attachementbooleanisUniqueRecipientTo()voidsetCalendarMessage(java.lang.String strCalendarMessage)Sets the calendar messagevoidsetCreateEvent(boolean bCreateEvent)Create or remove the event of this mail itemvoidsetFilesAttachement(java.util.List<FileAttachment> fileAttachements)Set a collection of files attachementvoidsetFormat(int nFormat)Sets the FormatvoidsetMessage(java.lang.String strMessage)Sets the MessagevoidsetRecipientsBcc(java.lang.String strRecipient)Sets the RecipientvoidsetRecipientsCc(java.lang.String strRecipient)Sets the RecipientvoidsetRecipientsTo(java.lang.String strRecipient)Sets the RecipientvoidsetSenderEmail(java.lang.String strSenderEmail)Sets the SenderEmailvoidsetSenderName(java.lang.String strSenderName)Sets the SenderNamevoidsetSubject(java.lang.String strSubject)Sets the SubjectvoidsetUniqueRecipientTo(boolean bUniqueRecipient)set true if the mail must be send unitarily for each recipientvoidsetUrlsAttachement(java.util.List<UrlAttachment> urlsAttachement)set the list of urls attachement
-
-
-
Field Detail
-
FORMAT_HTML
public static final int FORMAT_HTML
- See Also:
- Constant Field Values
-
FORMAT_TEXT
public static final int FORMAT_TEXT
- See Also:
- Constant Field Values
-
FORMAT_MULTIPART_HTML
public static final int FORMAT_MULTIPART_HTML
- See Also:
- Constant Field Values
-
FORMAT_MULTIPART_TEXT
public static final int FORMAT_MULTIPART_TEXT
- See Also:
- Constant Field Values
-
FORMAT_CALENDAR
public static final int FORMAT_CALENDAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecipientsTo
public java.lang.String getRecipientsTo()
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsTo
public void setRecipientsTo(java.lang.String strRecipient)
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getRecipientsCc
public java.lang.String getRecipientsCc()
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsCc
public void setRecipientsCc(java.lang.String strRecipient)
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getRecipientsBcc
public java.lang.String getRecipientsBcc()
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsBcc
public void setRecipientsBcc(java.lang.String strRecipient)
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getSenderName
public java.lang.String getSenderName()
Returns the SenderName- Returns:
- The SenderName
-
setSenderName
public void setSenderName(java.lang.String strSenderName)
Sets the SenderName- Parameters:
strSenderName- The SenderName
-
getSenderEmail
public java.lang.String getSenderEmail()
Returns the SenderEmail- Returns:
- The SenderEmail
-
setSenderEmail
public void setSenderEmail(java.lang.String strSenderEmail)
Sets the SenderEmail- Parameters:
strSenderEmail- The SenderEmail
-
getSubject
public java.lang.String getSubject()
Returns the Subject- Returns:
- The Subject
-
setSubject
public void setSubject(java.lang.String strSubject)
Sets the Subject- Parameters:
strSubject- The Subject
-
getMessage
public java.lang.String getMessage()
Returns the Message- Returns:
- The Message
-
setMessage
public void setMessage(java.lang.String strMessage)
Sets the Message- Parameters:
strMessage- The Message
-
getCalendarMessage
public java.lang.String getCalendarMessage()
Returns the calendar message- Returns:
- The calendar message
-
setCalendarMessage
public void setCalendarMessage(java.lang.String strCalendarMessage)
Sets the calendar message- Parameters:
strCalendarMessage- The calendar message
-
getCreateEvent
public boolean getCreateEvent()
Check if the calendar event of this mail item should be created or removed- Returns:
- True if the event should be created, false if it should be removed
-
setCreateEvent
public void setCreateEvent(boolean bCreateEvent)
Create or remove the event of this mail item- Parameters:
bCreateEvent- True to create the event, false otherwise
-
getFormat
public int getFormat()
Returns the Format- Returns:
- The Format
-
setFormat
public void setFormat(int nFormat)
Sets the Format- Parameters:
nFormat- The Format
-
getFilesAttachement
public java.util.List<FileAttachment> getFilesAttachement()
Returns a collection of files attachement- Returns:
- The Attachements Map
-
setFilesAttachement
public void setFilesAttachement(java.util.List<FileAttachment> fileAttachements)
Set a collection of files attachement- Parameters:
fileAttachements- The collection of files attachement
-
getUrlsAttachement
public java.util.List<UrlAttachment> getUrlsAttachement()
return the list of urls attachement- Returns:
- the list of urls attachement
-
setUrlsAttachement
public void setUrlsAttachement(java.util.List<UrlAttachment> urlsAttachement)
set the list of urls attachement- Parameters:
urlsAttachement- the list of urls attachement
-
setUniqueRecipientTo
public void setUniqueRecipientTo(boolean bUniqueRecipient)
set true if the mail must be send unitarily for each recipient- Parameters:
bUniqueRecipient- true if the mail must be send unitarily for each recipient
-
isUniqueRecipientTo
public boolean isUniqueRecipientTo()
- Returns:
- if the mail must be send unitarily for each recipient
-
-