Package io.jmix.email

Interface EmailDataProvider

All Known Implementing Classes:
EmailDataProviderImpl

public interface EmailDataProvider
Interface provides methods to load, store and update email message and attachment entities
  • Method Details

    • loadEmailsToSend

      List<SendingMessage> loadEmailsToSend()
      Loads email messages to be sent.
    • updateStatus

      void updateStatus(SendingMessage sendingMessage, SendingStatus status)
      Update status for specified message.
      Parameters:
      sendingMessage - message
      status - new status
    • loadContentText

      String loadContentText(SendingMessage sendingMessage)
      Loads content text for given message.
      Returns:
      email content text
    • persistMessage

      void persistMessage(SendingMessage sendingMessage, SendingStatus status)
      Stores given message with specified status.
    • migrateEmailsToFileStorage

      void migrateEmailsToFileStorage(List<SendingMessage> messages)
      Migrate list of existing messages to be stored in file storage, in a single transaction.
    • migrateAttachmentsToFileStorage

      void migrateAttachmentsToFileStorage(List<SendingAttachment> attachments)
      Migrate list of existing email attachments to be stored in file storage, in a single transaction.