public class UserMentionsContentReindexer extends Object
Constructor and Description |
---|
UserMentionsContentReindexer(ConfluenceIndexer indexer,
BatchOperationManager batchOperationManager,
SearchManager searchManager,
SynchronizationManager synchronizationManager) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected void |
doReindex(String username)
WARNING: This method uses the BatchOperationManager, which will clear the current session and discard any
unflushed or uncommitted changes made higher in the stack.
|
void |
reindex(ConfluenceUser user,
String oldUsername)
Adds content with mentions to the index queue in batches by searching against a specific version of the search
index.
|
public UserMentionsContentReindexer(ConfluenceIndexer indexer, BatchOperationManager batchOperationManager, SearchManager searchManager, SynchronizationManager synchronizationManager)
public void reindex(ConfluenceUser user, String oldUsername)
protected void doReindex(String username) throws InvalidSearchException, SearchTokenExpiredException
BatchOperationManager.applyInBatches(Iterable, int, int, Function)
@PreDestroy public void cleanUp()
Copyright © 2003–2021 Atlassian. All rights reserved.