Package io.jmix.imap.data
Class ImapMessageSyncDataProvider
java.lang.Object
io.jmix.imap.data.ImapMessageSyncDataProvider
@Component("imap_ImapMessageSyncDataProvider")
public class ImapMessageSyncDataProvider
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected javax.persistence.EntityManager
protected ImapProperties
protected Metadata
protected TimeSource
protected org.springframework.transaction.support.TransactionTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createSyncForMessages
(Collection<ImapMessage> messages, ImapSyncStatus syncStatus) findMessagesForSync
(ImapFolder imapFolder) findMessagesSyncs
(ImapFolder folder, ImapSyncStatus status, Integer maxSize) findMessagesWithSyncStatus
(ImapFolder imapFolder, ImapSyncStatus status, Integer maxSize) findMessagesWithSyncStatus
(ImapFolder folder, ImapSyncStatus status, Date minUpdateDate, Date maxUpdateDate) findMessageSync
(ImapMessage message) protected ImapMessageSync
findMessageSync
(ImapMessage message, ImapSyncStatus status) findSync
(ImapMessage message) void
removeMessagesSyncs
(Collection<UUID> messageIds) void
removeOldSyncs
(ImapFolder imapFolder, Date minUpdateDate) void
saveSync
(ImapMessageSync messageSync) protected void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) void
updateSyncStatus
(ImapMessage message, ImapSyncStatus syncStatus, ImapSyncStatus oldStatus, javax.mail.Flags flags, ImapFolder oldFolder)
-
Field Details
-
entityManager
protected javax.persistence.EntityManager entityManager -
imapProperties
-
metadata
-
timeSource
-
dataManager
-
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction
-
-
Constructor Details
-
ImapMessageSyncDataProvider
public ImapMessageSyncDataProvider()
-
-
Method Details
-
setTransactionManager
@Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
findMessagesWithSyncStatus
public List<ImapMessage> findMessagesWithSyncStatus(ImapFolder imapFolder, ImapSyncStatus status, Integer maxSize) -
findMessagesWithSyncStatus
public List<ImapMessage> findMessagesWithSyncStatus(ImapFolder folder, ImapSyncStatus status, Date minUpdateDate, Date maxUpdateDate) -
findMessagesSyncs
public Collection<ImapMessageSync> findMessagesSyncs(ImapFolder folder, ImapSyncStatus status, Integer maxSize) -
findSync
-
saveSync
-
findMessagesForSync
-
createSyncForMessages
-
updateSyncStatus
public void updateSyncStatus(ImapMessage message, ImapSyncStatus syncStatus, ImapSyncStatus oldStatus, javax.mail.Flags flags, ImapFolder oldFolder) -
findMessageSync
-
findMessageSync
-
removeMessagesSyncs
-
removeOldSyncs
-