JavaScript is disabled on your browser.
Nested Class Summary
Nested Classes
Method Summary
All Methods Instance Methods Abstract Methods
Add the address from a User entity to "bcc".
Add addresses from User entities to "bcc".
Add the address from a User entity to "cc".
Add addresses from User entities to "cc".
void
Add a receiver to "to", evaluating the right value according to the
MailReceiver
^s configuration.
Add the address from a User entity to "to".
Add addresses from User entities to "to".
boolean
org.joda.time.LocalDate
Get the value of a template attribute.
Get an unmodifiable map of all template attributes.
boolean
boolean
void
void
only relevant for the GUI MailAction (defaults to false), won't link the resulting MailArchive entity to the
recipient but the User(s) with the email address in
BaseMail.getCc()
.
Set the
UUID
which is needed to group the mails sent from the same task
Set a template attribute.
Set an entity template attribute
Set an entity list template attribute
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.BaseMail
addAttachment , addBcc , addBcc , addBcc , addCc , addCc , addCc , addReplyTo , addReplyTo , addReplyTo , addTo , addTo , addTo , clearAttachments , clearBcc , clearCc , clearReplyTo , clearTo , createAttachment , createAttachment , createAttachment , getAttachments , getBcc , getCc , getFrom , getHtml , getReplyTo , getSubject , getText , getTo , setFrom , setHtml , setSubject , setText
Method Details
getSourceEntity
@Nullable
@Nullable Entity getSourceEntity ()
setSourceEntity
Mail setSourceEntity (@Nullable
@Nullable Entity sourceEntity)
addSourceEntity
Mail addSourceEntity (@Nullable
@Nullable Entity sourceEntity)
getRecipientEntity
@Nullable
@Nullable Entity getRecipientEntity ()
setRecipientEntity
Mail setRecipientEntity (@Nullable
@Nullable Entity recipientEntity)
addTo
Add a receiver to "to", evaluating the right value according to the
MailReceiver
^s configuration.
Parameters:
receiver
- the receiver
Throws:
jakarta.mail.MessagingException
addTo
Mail addTo (Entity userEntity)
throws jakarta.mail.MessagingException
Add the address from a User entity to "to".
Parameters:
userEntity
- Entity of type User
Throws:
jakarta.mail.MessagingException
addTo
Mail addTo (EntityList userEntities)
throws jakarta.mail.MessagingException
Add addresses from User entities to "to".
Parameters:
userEntities
- EntityList with entities of type User
Throws:
jakarta.mail.MessagingException
addCc
Mail addCc (Entity userEntity)
throws jakarta.mail.MessagingException
Add the address from a User entity to "cc".
Parameters:
userEntity
- Entity of type User
Throws:
jakarta.mail.MessagingException
addCc
Mail addCc (EntityList userEntities)
throws jakarta.mail.MessagingException
Add addresses from User entities to "cc".
Parameters:
userEntities
- EntityList with entities of type User
Throws:
jakarta.mail.MessagingException
addBcc
Mail addBcc (Entity userEntity)
throws jakarta.mail.MessagingException
Add the address from a User entity to "bcc".
Parameters:
userEntity
- Entity of type User
Throws:
jakarta.mail.MessagingException
addBcc
Mail addBcc (EntityList userEntities)
throws jakarta.mail.MessagingException
Add addresses from User entities to "bcc".
Parameters:
userEntities
- EntityList with entities of type User
Throws:
jakarta.mail.MessagingException
getTemplateEntity
@Nullable
@Nullable Entity getTemplateEntity ()
setTemplateEntity
Mail setTemplateEntity (@Nullable
@Nullable Entity templateEntity)
preventFromArchive
Mail preventFromArchive (boolean preventFromArchive)
setTemplateAttribute
Parameters:
name
- The name for the attribute.
value
- The value.
setTemplateEntityData
Set an entity template attribute
Parameters:
name
- the name for the attribute
entity
- the entity
setTemplateEntityListData
Set an entity list template attribute
Parameters:
name
- the name for the attribute
entityList
- the entity list
getTemplateAttribute
Get the value of a template attribute.
Parameters:
name
- The name of the attribute to get.
Returns:
the value or Optional.empty()
if it's not set.
getTemplateAttributes
Get an unmodifiable map of all template attributes.
Returns:
an unmodifiable map of all attributes.
setFrom
Mail setFrom (Entity from)
throws jakarta.mail.MessagingException
Throws:
jakarta.mail.MessagingException
setSingleCopyMail
Mail setSingleCopyMail (boolean singleCopyMail)
only relevant for the GUI MailAction (defaults to false), won't link the resulting MailArchive entity to the
recipient but the User(s) with the email address in
BaseMail.getCc()
.
Parameters:
singleCopyMail
- true / false
isSingleCopyMail
boolean isSingleCopyMail ()
getExpiryDate
org.joda.time.LocalDate getExpiryDate ()
setExpiryDate
Mail setExpiryDate (org.joda.time.LocalDate expiryDate)
setTaskUuid
Set the
UUID
which is needed to group the mails sent from the same task
Parameters:
taskUuid
- a random uuid given from the task which sends the mail
getBody
Throws:
MailException
getMimeMessageFrom
Throws:
jakarta.mail.MessagingException
MailException