Class ImapSynchronizer

java.lang.Object
io.jmix.imap.sync.ImapSynchronizer
Direct Known Subclasses:
ImapFlaglessSynchronizer

@Component("imap_Synchronizer") @Primary public class ImapSynchronizer extends Object
  • Field Details

    • imapHelper

      @Autowired protected ImapHelper imapHelper
    • imapOperations

      @Autowired protected ImapOperations imapOperations
    • entityManager

      protected javax.persistence.EntityManager entityManager
    • imapProperties

      @Autowired protected ImapProperties imapProperties
    • authenticator

      @Autowired protected SystemAuthenticator authenticator
    • imapDataProvider

      @Autowired protected ImapDataProvider imapDataProvider
    • imapMessageSyncDataProvider

      @Autowired protected ImapMessageSyncDataProvider imapMessageSyncDataProvider
    • metadata

      @Autowired protected Metadata metadata
    • timeSource

      @Autowired protected TimeSource timeSource
    • transaction

      protected org.springframework.transaction.support.TransactionTemplate transaction
  • Constructor Details

    • ImapSynchronizer

      public ImapSynchronizer()
  • Method Details

    • setTransactionManager

      @Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
    • synchronize

      public void synchronize(ImapMailBox imapMailBox)
    • handleExistingMessages

      protected void handleExistingMessages(List<ImapMessage> checkAnswers, List<ImapMessage> missedMessages, ImapFolder folder, com.sun.mail.imap.IMAPFolder imapFolder) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • handleNewMessages

      protected void handleNewMessages(List<ImapMessage> checkAnswers, List<ImapMessage> missedMessages, ImapFolder jmixFolder, com.sun.mail.imap.IMAPFolder imapFolder) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • handleMissedMessages

      protected void handleMissedMessages(ImapMailBox mailBox, com.sun.mail.imap.IMAPStore store, List<ImapMessage> missedMessages) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • setAnswersFlag

      protected void setAnswersFlag(ImapMailBox mailBox, com.sun.mail.imap.IMAPStore store, List<ImapMessage> checkAnswers) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • close

      protected void close(ImapMailBox mailBox, com.sun.mail.imap.IMAPFolder imapFolder)
    • createMessage

      protected ImapMessage createMessage(com.sun.mail.imap.IMAPMessage msg, ImapFolder jmixFolder) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • unsetCustomFlags

      protected void unsetCustomFlags(javax.mail.Message msg) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException