Package de.xima.fc.interfaces.mail
Interface IBaseMailData
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
IMailData
- All Known Implementing Classes:
MultipartMail,MultipartMailData,SimpleTextMail,TextMailData
public interface IBaseMailData extends Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static StringADDRESS_SPLITTER
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default javax.mail.internet.MimeMessagebuildMimeMessage(javax.mail.Session session)Deprecated.default javax.mail.internet.MimePart[]buildMimeParts(javax.mail.Session session)Deprecated.javax.mail.Address[]getBcc()List<BodyPartData>getBodyParts()javax.mail.Address[]getCc()List<FilePartData>getFileParts()javax.mail.AddressgetFrom()Map<String,String>getHeaders()default javax.mail.internet.MimeMessagegetMimeMessage(javax.mail.Session session)Deprecated.javax.mail.Address[]getReply()IMailSecurityConfiggetSecurityConfig()Gets the security configuration for this mail, which controls whether and how the mail should be encrypted and/or signed, and what to do if encryption/signing fails.default MailUsergetSender()Gets the user that is sending the mail.booleangetSendSeparateMails()Flag to indicate that mails should be send separately to the to-recipient.StringgetSubject()javax.mail.Address[]getTo()
-
-
-
Field Detail
-
ADDRESS_SPLITTER
static final String ADDRESS_SPLITTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSender
default MailUser getSender()
Gets the user that is sending the mail. Will be used for determining permissions when signing the mail. Note that this is not necessarily the same as the sender address returned bygetFrom(), which is only used for the "From" header of the mail and may be set to an arbitrary value.Important: Currently it is okay to not implement this method and return
null, but in future versions of the mail module this method will be required to return a non-null user, and if it returnsnullan exception may be thrown when sending the mail. So it is recommended to implement this method and return the user that is sending the mail.- Returns:
- the user that is sending the mail, or
nullif no user information is available - Since:
- 8.6.0
-
buildMimeMessage
@Deprecated default javax.mail.internet.MimeMessage buildMimeMessage(javax.mail.Session session) throws Exception
Deprecated.- Throws:
Exception
-
buildMimeParts
@Deprecated default javax.mail.internet.MimePart[] buildMimeParts(javax.mail.Session session) throws Exception
Deprecated.- Throws:
Exception
-
getBcc
javax.mail.Address[] getBcc()
-
getBodyParts
List<BodyPartData> getBodyParts()
-
getCc
javax.mail.Address[] getCc()
-
getFileParts
List<FilePartData> getFileParts()
-
getFrom
javax.mail.Address getFrom()
-
getMimeMessage
@Deprecated default javax.mail.internet.MimeMessage getMimeMessage(javax.mail.Session session) throws Exception
Deprecated.- Throws:
Exception
-
getReply
javax.mail.Address[] getReply()
-
getSecurityConfig
IMailSecurityConfig getSecurityConfig()
Gets the security configuration for this mail, which controls whether and how the mail should be encrypted and/or signed, and what to do if encryption/signing fails.- Returns:
- security configuration for this mail
-
getSendSeparateMails
boolean getSendSeparateMails()
Flag to indicate that mails should be send separately to the to-recipient. Cc- and Bcc-recipients will be ignored because its not clear how to handle them- Returns:
trueif mails should be separately,falseotherwise
-
getSubject
String getSubject()
-
getTo
javax.mail.Address[] getTo()
- Returns:
- the to
-
-