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 Details

    • emailer

      @Autowired protected Emailer emailer
    • transaction

      protected org.springframework.transaction.support.TransactionTemplate transaction
    • entityManager

      protected jakarta.persistence.EntityManager entityManager
    • fetchPlanRepository

      @Autowired protected FetchPlanRepository fetchPlanRepository
    • emailerProperties

      @Autowired protected EmailerProperties emailerProperties
    • javaMailSender

      @Autowired protected org.springframework.mail.javamail.JavaMailSenderImpl javaMailSender
    • javaMailProperties

      protected Properties javaMailProperties
    • emailDataProvider

      @Autowired protected EmailDataProvider emailDataProvider
  • Constructor Details

    • EmailerManagementFacade

      public EmailerManagementFacade()
  • Method Details

    • setJavaMailProperties

      @Autowired protected void setJavaMailProperties()
    • setTransaction

      @Autowired protected void setTransaction(org.springframework.transaction.PlatformTransactionManager transactionManager)
    • getFromAddress

      @ManagedAttribute(description="Default \"from\" address") public String getFromAddress()
    • getSmtpHost

      @ManagedAttribute(description="SMTP server address") @Nullable public String 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

      @ManagedOperation(description="Send a test email to the specified addresses") @ManagedOperationParameters(@ManagedOperationParameter(name="addresses",description="")) public String sendTestEmail(String addresses)
    • migrateEmailsToFileStorage

      @ManagedOperation(description="Migrate existing email history to use file storage") public String migrateEmailsToFileStorage(String password)
    • migrateMessagesBatch

      protected int migrateMessagesBatch()
    • migrateAttachmentsBatch

      protected int migrateAttachmentsBatch()
    • loadMessagesBatch

      protected List<SendingMessage> loadMessagesBatch()
    • loadAttachmentsBatch

      protected List<SendingAttachment> loadAttachmentsBatch()