Class ReindexAllUsersContentIndexTask
java.lang.Object
com.atlassian.confluence.internal.search.tasks.ReindexAllUsersContentIndexTask
- All Implemented Interfaces:
ConfluenceIndexTask,ConvertibleToJournalEntry,IndexTask
@LuceneIndependent
@Internal
public class ReindexAllUsersContentIndexTask
extends Object
implements ConfluenceIndexTask
Updates all personal information and associated user entries in the content index.
Only reindexes existing PersonalInformation objects. Skips creating entries for users without PersonalInformation objects.
- Since:
- 7.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionReindexAllUsersContentIndexTask(BatchOperationManager batchOperationManager, PersonalInformationDao personalInformationDao, IndexTaskFactoryInternal indexTaskFactory) -
Method Summary
Modifier and TypeMethodDescriptionconvertToJournalEntry(JournalIdentifier journalId) Convert to journal entry.A description of the task that can be presented to the user via the UI.voidperform(SearchIndexWriter writer) Executes this task against a document writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.ConfluenceIndexTask
isRetryable
-
Constructor Details
-
ReindexAllUsersContentIndexTask
public ReindexAllUsersContentIndexTask(BatchOperationManager batchOperationManager, PersonalInformationDao personalInformationDao, IndexTaskFactoryInternal indexTaskFactory)
-
-
Method Details
-
getDescription
Description copied from interface:IndexTaskA description of the task that can be presented to the user via the UI.- Specified by:
getDescriptionin interfaceIndexTask- Returns:
- an readable message.
-
perform
Description copied from interface:ConfluenceIndexTaskExecutes this task against a document writer.- Specified by:
performin interfaceConfluenceIndexTask- Throws:
IOException
-
convertToJournalEntry
Description copied from interface:ConvertibleToJournalEntryConvert to journal entry.- Specified by:
convertToJournalEntryin interfaceConvertibleToJournalEntry- Parameters:
journalId- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getSearchIndex
- Specified by:
getSearchIndexin interfaceConfluenceIndexTask- Returns:
- the
SearchIndexthat the task should write to
-