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
javax.mail.internet.MimeBodyPart
getMimeBodyPart
(String key) int
javax.mail.Multipart
void
setContractId
(int contractId) void
setModuleId
(int moduleId) void
setMultipart
(javax.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 javax.mail.Multipart getMultipart() -
setMultipart
public void setMultipart(javax.mail.Multipart multipart) -
getMimeBodyPart
-
addTextPart
- Throws:
javax.mail.MessagingException
-
addTextPart
public void addTextPart(String key, String text, String contentType) throws javax.mail.MessagingException - Throws:
javax.mail.MessagingException
-
addPart
public void addPart(String key, String disposition, String contentType, String fileName, byte[] content) throws javax.mail.MessagingException, UnsupportedEncodingException - Parameters:
key
-disposition
- null, inline, attachmentcontentType
-fileName
-content
-- Throws:
javax.mail.MessagingException
UnsupportedEncodingException
-
toMailDto
public ru.bitel.bgbilling.kernel.admin.mail.common.dto.MailDto toMailDto()
-