Class MailData
java.lang.Object
ru.bitel.bgbilling.kernel.admin.mail.server.bean.MailData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddTextPart
(String key, String text) addTextPart
(String key, String text, String contentType) int
jakarta.mail.internet.MimeBodyPart
getMimeBodyPart
(String key) int
jakarta.mail.Multipart
setContractId
(int contractId) setModuleId
(int moduleId) setMultipart
(jakarta.mail.Multipart multipart) setRecipients
(String recipients) setSubject
(String subject) ru.bitel.bgbilling.kernel.admin.mail.common.dto.MailDto
-
Constructor Details
-
MailData
-
-
Method Details
-
getMailKey
-
getModuleId
public int getModuleId() -
getContractId
public int getContractId() -
setModuleId
-
setContractId
-
getRecipients
-
setRecipients
-
getSubject
-
setSubject
-
getMultipart
public jakarta.mail.Multipart getMultipart() -
setMultipart
-
getMimeBodyPart
-
addTextPart
- Throws:
jakarta.mail.MessagingException
-
addTextPart
public MailData addTextPart(String key, String text, String contentType) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
addPart
public MailData addPart(String key, String disposition, String contentType, String fileName, byte[] content) throws jakarta.mail.MessagingException, UnsupportedEncodingException - Parameters:
key
-disposition
- null, inline, attachmentcontentType
-fileName
-content
-- Throws:
jakarta.mail.MessagingException
UnsupportedEncodingException
-
toMailDto
public ru.bitel.bgbilling.kernel.admin.mail.common.dto.MailDto toMailDto()
-