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 jakarta.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, org.eclipse.angus.mail.imap.IMAPFolder imapFolder) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • handleNewMessages

      protected void handleNewMessages(List<ImapMessage> checkAnswers, List<ImapMessage> missedMessages, ImapFolder jmixFolder, org.eclipse.angus.mail.imap.IMAPFolder imapFolder) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • handleMissedMessages

      protected void handleMissedMessages(ImapMailBox mailBox, org.eclipse.angus.mail.imap.IMAPStore store, List<ImapMessage> missedMessages) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • setAnswersFlag

      protected void setAnswersFlag(ImapMailBox mailBox, org.eclipse.angus.mail.imap.IMAPStore store, List<ImapMessage> checkAnswers) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • close

      protected void close(ImapMailBox mailBox, org.eclipse.angus.mail.imap.IMAPFolder imapFolder)
    • createMessage

      protected ImapMessage createMessage(org.eclipse.angus.mail.imap.IMAPMessage msg, ImapFolder jmixFolder) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • unsetCustomFlags

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