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
FieldsModifier and TypeFieldDescriptionprotected DataManagerprotected javax.persistence.EntityManagerprotected ImapPropertiesprotected Metadataprotected TimeSourceprotected org.springframework.transaction.support.TransactionTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSyncForMessages(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 ImapMessageSyncfindMessageSync(ImapMessage message, ImapSyncStatus status) findSync(ImapMessage message) voidremoveMessagesSyncs(Collection<UUID> messageIds) voidremoveOldSyncs(ImapFolder imapFolder, Date minUpdateDate) voidsaveSync(ImapMessageSync messageSync) protected voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) voidupdateSyncStatus(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
-