Class MailItem
java.lang.Object
fr.paris.lutece.portal.service.mail.MailItem
- All Implemented Interfaces:
Serializable
MailIem
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the calendar messagebooleanCheck if the calendar event of this mail item should be created or removedReturns a collection of files attachementintReturns the FormatReturns the MessageReturns the RecipientReturns the RecipientReturns the RecipientReturns the Reply-To email addressReturns the SenderEmailReturns the SenderNameReturns the Subjectreturn the list of urls attachementbooleanvoidsetCalendarMessage(String strCalendarMessage) Sets the calendar messagevoidsetCreateEvent(boolean bCreateEvent) Create or remove the event of this mail itemvoidsetFilesAttachement(List<FileAttachment> fileAttachements) Set a collection of files attachementvoidsetFormat(int nFormat) Sets the FormatvoidsetMessage(String strMessage) Sets the MessagevoidsetRecipientsBcc(String strRecipient) Sets the RecipientvoidsetRecipientsCc(String strRecipient) Sets the RecipientvoidsetRecipientsTo(String strRecipient) Sets the RecipientvoidsetReplyTo(String strReplyTo) Sets the Reply-To email addressvoidsetSenderEmail(String strSenderEmail) Sets the SenderEmailvoidsetSenderName(String strSenderName) Sets the SenderNamevoidsetSubject(String strSubject) Sets the SubjectvoidsetUniqueRecipientTo(boolean bUniqueRecipient) set true if the mail must be send unitarily for each recipientvoidsetUrlsAttachement(List<UrlAttachment> urlsAttachement) set the list of urls attachement
-
Field Details
-
FORMAT_HTML
public static final int FORMAT_HTML- See Also:
-
FORMAT_TEXT
public static final int FORMAT_TEXT- See Also:
-
FORMAT_MULTIPART_HTML
public static final int FORMAT_MULTIPART_HTML- See Also:
-
FORMAT_MULTIPART_TEXT
public static final int FORMAT_MULTIPART_TEXT- See Also:
-
FORMAT_CALENDAR
public static final int FORMAT_CALENDAR- See Also:
-
-
Constructor Details
-
MailItem
public MailItem()
-
-
Method Details
-
getRecipientsTo
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsTo
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getRecipientsCc
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsCc
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getRecipientsBcc
Returns the Recipient- Returns:
- The Recipient
-
setRecipientsBcc
Sets the Recipient- Parameters:
strRecipient- The Recipient
-
getSenderName
Returns the SenderName- Returns:
- The SenderName
-
setSenderName
Sets the SenderName- Parameters:
strSenderName- The SenderName
-
getSenderEmail
Returns the SenderEmail- Returns:
- The SenderEmail
-
setSenderEmail
Sets the SenderEmail- Parameters:
strSenderEmail- The SenderEmail
-
getSubject
Returns the Subject- Returns:
- The Subject
-
setSubject
Sets the Subject- Parameters:
strSubject- The Subject
-
getMessage
Returns the Message- Returns:
- The Message
-
setMessage
Sets the Message- Parameters:
strMessage- The Message
-
getCalendarMessage
Returns the calendar message- Returns:
- The calendar message
-
setCalendarMessage
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
Returns a collection of files attachement- Returns:
- The Attachements Map
-
setFilesAttachement
Set a collection of files attachement- Parameters:
fileAttachements- The collection of files attachement
-
getUrlsAttachement
return the list of urls attachement- Returns:
- the list of urls attachement
-
setUrlsAttachement
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
-
getReplyTo
Returns the Reply-To email address- Returns:
- The Reply-To email address
-
setReplyTo
Sets the Reply-To email address- Parameters:
strReplyTo- The Reply-To email address
-