@LuceneIndependent @Internal public class RebuildChangeDocumentsIndexTask extends Object implements ConfluenceIndexTask, HandleAware
Constructor and Description |
---|
RebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable,
ContentEntityObjectDao contentEntityObjectDao,
AttachmentManager attachmentManager,
IndexTaskFactory indexTaskFactory,
HibernateSessionManager5 hibernateSessionManager,
org.hibernate.SessionFactory sessionFactory)
Constructs a rebuild change document index task.
|
Modifier and Type | Method and Description |
---|---|
Optional<JournalEntry> |
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description of the task that can be presented to the user via the UI.
|
com.atlassian.bonnie.Handle |
getHandle() |
SearchIndex |
getSearchIndex() |
int |
hashCode() |
void |
perform(SearchIndexWriter writer)
Executes this task against a document writer.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSearchIndexAccessor, perform
public RebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable, ContentEntityObjectDao contentEntityObjectDao, AttachmentManager attachmentManager, IndexTaskFactory indexTaskFactory, HibernateSessionManager5 hibernateSessionManager, org.hibernate.SessionFactory sessionFactory)
searchable
- contentEntityObjectDao
- attachmentManager
- indexTaskFactory
- @throws IllegalArgumentException if searchable is null, fails
ChangeDocumentIndexPolicy.buildFor(Searchable)
or is not the
latest version.hibernateSessionManager
- sessionFactory
- public com.atlassian.bonnie.Handle getHandle()
getHandle
in interface HandleAware
public String getDescription()
IndexTask
getDescription
in interface IndexTask
public void perform(SearchIndexWriter writer) throws IOException
ConfluenceIndexTask
perform
in interface ConfluenceIndexTask
IOException
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
ConvertibleToJournalEntry
convertToJournalEntry
in interface ConvertibleToJournalEntry
journalId
- journal identifierpublic SearchIndex getSearchIndex()
getSearchIndex
in interface ConfluenceIndexTask
SearchIndex
that the task should write toCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences