Class ContentIndexTask
- java.lang.Object
-
- com.atlassian.confluence.internal.search.tasks.ContentIndexTask
-
- All Implemented Interfaces:
ConfluenceIndexTask,ConvertibleToJournalEntry,IndexTask
@LuceneIndependent @Internal public class ContentIndexTask extends Object implements ConfluenceIndexTask
- Since:
- 6.4.0
-
-
Constructor Summary
Constructors Constructor Description ContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType, PageDaoInternal pageDao, BatchOperationManager batchOperationManager, IndexTaskFactoryInternal indexTaskFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<JournalEntry>convertToJournalEntry(JournalIdentifier journalId)Convert to journal entry.StringgetDescription()A description of the task that can be presented to the user via the UI.SearchIndexgetSearchIndex()voidperform(SearchIndexWriter writer)Executes this task against a document writer.
-
-
-
Constructor Detail
-
ContentIndexTask
public ContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType, PageDaoInternal pageDao, BatchOperationManager batchOperationManager, IndexTaskFactoryInternal indexTaskFactory)
-
-
Method Detail
-
perform
public final void perform(SearchIndexWriter writer) throws IOException
Description copied from interface:ConfluenceIndexTaskExecutes this task against a document writer.- Specified by:
performin interfaceConfluenceIndexTask- Throws:
IOException
-
getDescription
public final String 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.
-
convertToJournalEntry
public final Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
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
public SearchIndex getSearchIndex()
- Specified by:
getSearchIndexin interfaceConfluenceIndexTask- Returns:
- the
SearchIndexthat the task should write to
-
-