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
FieldsModifier and TypeFieldDescriptionprotected EmailDataProviderprotected Emailerprotected EmailerPropertiesprotected jakarta.persistence.EntityManagerprotected FetchPlanRepositoryprotected Propertiesprotected org.springframework.mail.javamail.JavaMailSenderImplprotected org.springframework.transaction.support.TransactionTemplate - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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
 - 
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction - 
entityManager
protected jakarta.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
 
 -