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 SummaryFieldsModifier and TypeFieldDescriptionprotected EmailDataProviderprotected Emailerprotected EmailerPropertiesprotected javax.persistence.EntityManagerprotected FetchPlanRepositoryprotected Propertiesprotected org.springframework.mail.javamail.JavaMailSenderImplprotected org.springframework.transaction.support.TransactionTemplate
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintprotected List<SendingAttachment>protected List<SendingMessage>protected intmigrateEmailsToFileStorage(String password) protected intsendTestEmail(String addresses) protected voidprotected voidsetTransaction(org.springframework.transaction.PlatformTransactionManager transactionManager) 
- 
Field Details- 
emailer
- 
transactionprotected org.springframework.transaction.support.TransactionTemplate transaction
- 
entityManagerprotected javax.persistence.EntityManager entityManager
- 
fetchPlanRepository
- 
emailerProperties
- 
javaMailSender@Autowired protected org.springframework.mail.javamail.JavaMailSenderImpl javaMailSender
- 
javaMailProperties
- 
emailDataProvider
 
- 
- 
Constructor Details- 
EmailerManagementFacadepublic 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
- 
migrateMessagesBatchprotected int migrateMessagesBatch()
- 
migrateAttachmentsBatchprotected int migrateAttachmentsBatch()
- 
loadMessagesBatch
- 
loadAttachmentsBatch
 
-