Class MailArchive.MailArchiveEntry
java.lang.Object
ch.tocco.nice2.messaging.mail.api.MailArchive.MailArchiveEntry
- Enclosing interface:
MailArchive
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
org.joda.time.LocalDate
boolean
boolean
setAttachmentIds
(List<MailArchive.AttachmentId> attachmentIds) setContactCategory
(Entity contactCategory) setEmailTemplateEntity
(Entity emailTemplateEntity) setExpiryDate
(org.joda.time.LocalDate expiryDate) setIncomeMail
(IncomeMail incomeMail) Set the income mail.setOutboundMail
(boolean outboundMail) Sets whether this mail is an outgoing (`true`) or incoming (`false`) mail.setRecipientEntity
(Entity recipientEntity) setSingleCopyMail
(boolean singleCopyMail) setSourceEntities
(Set<Entity> sourceEntities) setTaskUuid
(UUID taskUuid) Set theUUID
which is needed to group the mails sent from the same tasktoString()
-
Constructor Details
-
MailArchiveEntry
public MailArchiveEntry()
-
-
Method Details
-
setIncomeMail
Set the income mail. Caution: Make sure you set the mail without attachments. Creating multiple MailArchiveEntry objects with IncomeMails *with* attachments might consume too much memory. Therefore, the attachments have to be added to the archive before the mail itself is added (usingMailArchive.addAttachment(UUID, Attachment)
) and in thisMailArchive.MailArchiveEntry
only the IDs of the attachments have to be provided (seesetAttachmentIds(List)
).- Parameters:
incomeMail
- The mail (without attachments)
-
setAttachmentIds
- Parameters:
attachmentIds
- The IDs of the attachments (which have already been added to the archive usingMailArchive.addAttachment(UUID, Attachment)
).
-
setSourceEntities
-
setContactCategory
-
setRecipientEntity
-
setSender
-
setExpiryDate
-
setSingleCopyMail
-
setEmailTemplateEntity
-
setOutboundMail
Sets whether this mail is an outgoing (`true`) or incoming (`false`) mail. -
setTaskUuid
Set theUUID
which is needed to group the mails sent from the same task- Parameters:
taskUuid
- a random uuid copied fromMail
-
isOutboundMail
public boolean isOutboundMail() -
getIncomeMail
-
getAttachmentIds
-
getSourceEntities
-
getContactCategory
-
getRecipientEntity
-
getSender
-
getExpiryDate
public org.joda.time.LocalDate getExpiryDate() -
isSingleCopyMail
public boolean isSingleCopyMail() -
getEmailTemplateEntity
-
getTaskUuid
-
toString
-