Class MailData
java.lang.Object
ru.bitel.bgbilling.kernel.admin.mail.server.bean.MailData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addTextPart
(String key, String text) void
addTextPart
(String key, String text, String contentType) int
jakarta.mail.internet.MimeBodyPart
getMimeBodyPart
(String key) int
jakarta.mail.Multipart
void
setContractId
(int contractId) void
setModuleId
(int moduleId) void
setMultipart
(jakarta.mail.Multipart multipart) void
setRecipients
(String recipients) void
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
public void setModuleId(int moduleId) -
setContractId
public void setContractId(int contractId) -
getRecipients
-
setRecipients
-
getSubject
-
setSubject
-
getMultipart
public jakarta.mail.Multipart getMultipart() -
setMultipart
public void setMultipart(jakarta.mail.Multipart multipart) -
getMimeBodyPart
-
addTextPart
- Throws:
jakarta.mail.MessagingException
-
addTextPart
public void addTextPart(String key, String text, String contentType) throws jakarta.mail.MessagingException - Throws:
jakarta.mail.MessagingException
-
addPart
public void 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()
-