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
ConstructorsConstructorDescriptionContentIndexTask
(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType, PageManagerInternal pageManagerInternal, BatchOperationManager batchOperationManager, IndexTaskFactoryInternal indexTaskFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<JournalEntry>
convertToJournalEntry
(JournalIdentifier journalId) Convert to journal entry.final String
A description of the task that can be presented to the user via the UI.boolean
final void
perform
(SearchIndexWriter writer) Executes this task against a document writer.
-
Constructor Details
-
ContentIndexTask
public ContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType, PageManagerInternal pageManagerInternal, BatchOperationManager batchOperationManager, IndexTaskFactoryInternal indexTaskFactory)
-
-
Method Details
-
perform
Description copied from interface:ConfluenceIndexTask
Executes this task against a document writer.- Specified by:
perform
in interfaceConfluenceIndexTask
- Throws:
IOException
-
isRetryable
public boolean isRetryable()- Specified by:
isRetryable
in interfaceConfluenceIndexTask
- Returns:
true
if this task is retryable in journal queue,false
otherwise.
-
getDescription
Description copied from interface:IndexTask
A description of the task that can be presented to the user via the UI.- Specified by:
getDescription
in interfaceIndexTask
- Returns:
- an readable message.
-
convertToJournalEntry
Description copied from interface:ConvertibleToJournalEntry
Convert to journal entry.- Specified by:
convertToJournalEntry
in interfaceConvertibleToJournalEntry
- Parameters:
journalId
- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getSearchIndex
- Specified by:
getSearchIndex
in interfaceConfluenceIndexTask
- Returns:
- the
SearchIndex
that the task should write to
-