@Component(value="imap_Synchronizer")
@Primary
public class ImapSynchronizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.security.SystemAuthenticator |
authenticator |
protected javax.persistence.EntityManager |
entityManager |
protected ImapDataProvider |
imapDataProvider |
protected ImapHelper |
imapHelper |
protected ImapMessageSyncDataProvider |
imapMessageSyncDataProvider |
protected ImapOperations |
imapOperations |
protected ImapProperties |
imapProperties |
protected io.jmix.core.Metadata |
metadata |
protected io.jmix.core.TimeSource |
timeSource |
protected org.springframework.transaction.support.TransactionTemplate |
transaction |
Constructor and Description |
---|
ImapSynchronizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
close(ImapMailBox mailBox,
com.sun.mail.imap.IMAPFolder imapFolder) |
protected ImapMessage |
createMessage(com.sun.mail.imap.IMAPMessage msg,
ImapFolder jmixFolder) |
protected void |
handleExistingMessages(java.util.List<ImapMessage> checkAnswers,
java.util.List<ImapMessage> missedMessages,
ImapFolder folder,
com.sun.mail.imap.IMAPFolder imapFolder) |
protected void |
handleMissedMessages(ImapMailBox mailBox,
com.sun.mail.imap.IMAPStore store,
java.util.List<ImapMessage> missedMessages) |
protected void |
handleNewMessages(java.util.List<ImapMessage> checkAnswers,
java.util.List<ImapMessage> missedMessages,
ImapFolder jmixFolder,
com.sun.mail.imap.IMAPFolder imapFolder) |
protected void |
setAnswersFlag(ImapMailBox mailBox,
com.sun.mail.imap.IMAPStore store,
java.util.List<ImapMessage> checkAnswers) |
protected void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
synchronize(ImapMailBox imapMailBox) |
protected void |
unsetCustomFlags(javax.mail.Message msg) |
@Autowired protected ImapHelper imapHelper
@Autowired protected ImapOperations imapOperations
protected javax.persistence.EntityManager entityManager
@Autowired protected ImapProperties imapProperties
@Autowired protected io.jmix.core.security.SystemAuthenticator authenticator
@Autowired protected ImapDataProvider imapDataProvider
@Autowired protected ImapMessageSyncDataProvider imapMessageSyncDataProvider
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected io.jmix.core.TimeSource timeSource
protected org.springframework.transaction.support.TransactionTemplate transaction
@Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void synchronize(ImapMailBox imapMailBox)
protected void handleExistingMessages(java.util.List<ImapMessage> checkAnswers, java.util.List<ImapMessage> missedMessages, ImapFolder folder, com.sun.mail.imap.IMAPFolder imapFolder) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void handleNewMessages(java.util.List<ImapMessage> checkAnswers, java.util.List<ImapMessage> missedMessages, ImapFolder jmixFolder, com.sun.mail.imap.IMAPFolder imapFolder) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void handleMissedMessages(ImapMailBox mailBox, com.sun.mail.imap.IMAPStore store, java.util.List<ImapMessage> missedMessages) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void setAnswersFlag(ImapMailBox mailBox, com.sun.mail.imap.IMAPStore store, java.util.List<ImapMessage> checkAnswers) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void close(ImapMailBox mailBox, com.sun.mail.imap.IMAPFolder imapFolder)
protected ImapMessage createMessage(com.sun.mail.imap.IMAPMessage msg, ImapFolder jmixFolder) throws javax.mail.MessagingException
javax.mail.MessagingException
protected void unsetCustomFlags(javax.mail.Message msg) throws javax.mail.MessagingException
javax.mail.MessagingException