@Test void messageReIndexUsingMailboxIdShouldDoNothingWhenUidNotFound() throws Exception { MailboxSession systemSession = mailboxManager.createSystemSession(USERNAME); MailboxId mailboxId = mailboxManager.createMailbox(INBOX, systemSession).get(); MessageUid uid = MessageUid.of(36); reIndexer.reIndex(mailboxId, uid).run(); verifyNoMoreInteractions(messageSearchIndex); }
@Override public Task reIndex(MailboxPath path, RunningOptions runningOptions) throws MailboxException { MailboxSession mailboxSession = mailboxManager.createSystemSession(path.getUser()); MailboxId mailboxId = mailboxManager.getMailbox(path, mailboxSession).getId(); return new SingleMailboxReindexingTask(reIndexerPerformer, mailboxId, runningOptions); }
ReIndexerImpl implements ReIndexer { @Override public Task reIndex(MailboxPath path, RunningOptions runningOptions) throws MailboxException { MailboxSession mailboxSession = mailboxManager.createSystemSession(path.getUser()); MailboxId mailboxId = mailboxManager.getMailbox(path, mailboxSession).getId(); return new SingleMailboxReindexingTask(reIndexerPerformer, mailboxId, runningOptions); } }
ReIndexerImpl implements ReIndexer { @Override public Task reIndex(MailboxPath path, RunningOptions runningOptions) throws MailboxException { MailboxSession mailboxSession = mailboxManager.createSystemSession(path.getUser()); MailboxId mailboxId = mailboxManager.getMailbox(path, mailboxSession).getId(); return new SingleMailboxReindexingTask(reIndexerPerformer, mailboxId, runningOptions); } @Inject  ReIndexerImpl(ReIndexerPerformer reIndexerPerformer, MailboxManager mailboxManager, MailboxSessionMapperFactory mapperFactory); }
ReIndexerImpl implements ReIndexer { @Override public Task reIndex(MailboxPath path, RunningOptions runningOptions) throws MailboxException { MailboxSession mailboxSession = mailboxManager.createSystemSession(path.getUser()); MailboxId mailboxId = mailboxManager.getMailbox(path, mailboxSession).getId(); return new SingleMailboxReindexingTask(reIndexerPerformer, mailboxId, runningOptions); } @Inject  ReIndexerImpl(ReIndexerPerformer reIndexerPerformer, MailboxManager mailboxManager, MailboxSessionMapperFactory mapperFactory); @Override Task reIndex(MailboxPath path, RunningOptions runningOptions); @Override Task reIndex(MailboxId mailboxId, RunningOptions runningOptions); @Override Task reIndex(RunningOptions runningOptions); @Override Task reIndex(Username username, RunningOptions runningOptions); @Override Task reIndex(MailboxPath path, MessageUid uid); @Override Task reIndex(MailboxId mailboxId, MessageUid uid); @Override Task reIndex(ReIndexingExecutionFailures previousFailures, RunningOptions runningOptions); }
ReIndexerImpl implements ReIndexer { @Override public Task reIndex(MailboxPath path, RunningOptions runningOptions) throws MailboxException { MailboxSession mailboxSession = mailboxManager.createSystemSession(path.getUser()); MailboxId mailboxId = mailboxManager.getMailbox(path, mailboxSession).getId(); return new SingleMailboxReindexingTask(reIndexerPerformer, mailboxId, runningOptions); } @Inject  ReIndexerImpl(ReIndexerPerformer reIndexerPerformer, MailboxManager mailboxManager, MailboxSessionMapperFactory mapperFactory); @Override Task reIndex(MailboxPath path, RunningOptions runningOptions); @Override Task reIndex(MailboxId mailboxId, RunningOptions runningOptions); @Override Task reIndex(RunningOptions runningOptions); @Override Task reIndex(Username username, RunningOptions runningOptions); @Override Task reIndex(MailboxPath path, MessageUid uid); @Override Task reIndex(MailboxId mailboxId, MessageUid uid); @Override Task reIndex(ReIndexingExecutionFailures previousFailures, RunningOptions runningOptions);  }