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 Summary
Modifier and TypeMethodDescriptionloadContentText
(SendingMessage sendingMessage) Loads content text for given message.Loads email messages to be sent.void
migrateAttachmentsToFileStorage
(List<SendingAttachment> attachments) Migrate list of existing email attachments to be stored in file storage, in a single transaction.void
migrateEmailsToFileStorage
(List<SendingMessage> messages) Migrate list of existing messages to be stored in file storage, in a single transaction.void
persistMessage
(SendingMessage sendingMessage, SendingStatus status) Stores given message with specified status.void
updateStatus
(SendingMessage sendingMessage, SendingStatus status) Update status for specified message.
-
Method Details
-
loadEmailsToSend
List<SendingMessage> loadEmailsToSend()Loads email messages to be sent. -
updateStatus
Update status for specified message.- Parameters:
sendingMessage
- messagestatus
- new status
-
loadContentText
Loads content text for given message.- Returns:
- email content text
-
persistMessage
Stores given message with specified status. -
migrateEmailsToFileStorage
Migrate list of existing messages to be stored in file storage, in a single transaction. -
migrateAttachmentsToFileStorage
Migrate list of existing email attachments to be stored in file storage, in a single transaction.
-