Class DeleteChangeDocumentsIndexTask
java.lang.Object
com.atlassian.confluence.internal.search.tasks.DeleteChangeDocumentsIndexTask
- All Implemented Interfaces:
ConfluenceIndexTask
,ConvertibleToJournalEntry
,HandleAware
,IndexTask
@LuceneIndependent
@Internal
public class DeleteChangeDocumentsIndexTask
extends Object
implements ConfluenceIndexTask, HandleAware
Removes all change documents for a particular searchable.
-
Constructor Summary
ConstructorDescriptionDeleteChangeDocumentsIndexTask
(Searchable searchable) Creates a remove change documents index task for the latest version of searchableDeleteChangeDocumentsIndexTask
(String handle) -
Method Summary
Modifier and TypeMethodDescriptionconvertToJournalEntry
(JournalIdentifier journalId) Convert to journal entry.boolean
A description of the task that can be presented to the user via the UI.int
hashCode()
void
perform
(SearchIndexWriter writer) Executes this task against a document writer.toString()
-
Constructor Details
-
DeleteChangeDocumentsIndexTask
Creates a remove change documents index task for the latest version of searchable- Parameters:
searchable
-- Throws:
UnsupportedOperationException
- if searchable is not supported.
-
DeleteChangeDocumentsIndexTask
-
-
Method Details
-
getHandle
- Specified by:
getHandle
in interfaceHandleAware
- Returns:
- the handle
-
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.
-
perform
Description copied from interface:ConfluenceIndexTask
Executes this task against a document writer.- Specified by:
perform
in interfaceConfluenceIndexTask
- Throws:
IOException
-
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.
-
hashCode
public int hashCode() -
equals
-
toString
-
getSearchIndex
- Specified by:
getSearchIndex
in interfaceConfluenceIndexTask
- Returns:
- the
SearchIndex
that the task should write to
-