Package io.jmix.email
Class EmailerManagementFacade
java.lang.Object
io.jmix.email.EmailerManagementFacade
@ManagedResource(objectName="jmix.email:type=Emailer",
description="Manages email messages")
@Component("email_EmailerManagementFacade")
public class EmailerManagementFacade
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected EmailDataProvider
protected Emailer
protected EmailerProperties
protected javax.persistence.EntityManager
protected FetchPlanRepository
protected Properties
protected org.springframework.mail.javamail.JavaMailSenderImpl
protected org.springframework.transaction.support.TransactionTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected List<SendingAttachment>
protected List<SendingMessage>
protected int
migrateEmailsToFileStorage
(String password) protected int
sendTestEmail
(String addresses) protected void
protected void
setTransaction
(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Field Details
-
emailer
-
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction -
entityManager
protected javax.persistence.EntityManager entityManager -
fetchPlanRepository
-
emailerProperties
-
javaMailSender
@Autowired protected org.springframework.mail.javamail.JavaMailSenderImpl javaMailSender -
javaMailProperties
-
emailDataProvider
-
-
Constructor Details
-
EmailerManagementFacade
public EmailerManagementFacade()
-
-
Method Details
-
setJavaMailProperties
@Autowired protected void setJavaMailProperties() -
setTransaction
@Autowired protected void setTransaction(org.springframework.transaction.PlatformTransactionManager transactionManager) -
getFromAddress
-
getSmtpHost
-
getSmtpPort
@ManagedAttribute(description="SMTP server port") public int getSmtpPort() -
getSmtpUser
@ManagedAttribute(description="User name for the SMTP server authentication") @Nullable public String getSmtpUser() -
getSmtpAuthRequired
@ManagedAttribute(description="Whether to authenticate on SMTP server") public String getSmtpAuthRequired() -
getStarttlsEnable
@ManagedAttribute(description="Whether to use STARTTLS command during the SMTP server authentication") public String getStarttlsEnable() -
getSmtpSslEnabled
@ManagedAttribute(description="If set to true, use SSL to connect") public String getSmtpSslEnabled() -
getSmtpTimeoutSec
@ManagedAttribute(description="SMTP I/O timeout value in seconds") public String getSmtpTimeoutSec() -
getSmtpConnectionTimeoutSec
@ManagedAttribute(description="SMTP connection timeout value in seconds") public String getSmtpConnectionTimeoutSec() -
sendTestEmail
-
migrateEmailsToFileStorage
-
migrateMessagesBatch
protected int migrateMessagesBatch() -
migrateAttachmentsBatch
protected int migrateAttachmentsBatch() -
loadMessagesBatch
-
loadAttachmentsBatch
-