Class DefaultIndexTaskFactory
java.lang.Object
com.atlassian.confluence.internal.search.tasks.DefaultIndexTaskFactory
- All Implemented Interfaces:
IndexTaskFactoryInternal,IndexTaskFactory
@LuceneIndependent
@Internal
public class DefaultIndexTaskFactory
extends Object
implements IndexTaskFactoryInternal
Creates index tasks and provides conversion into queue entries for implementations of IndexTaskQueue
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIndexTaskFactory(BatchOperationManager batchOperationManager, AtlassianDocumentBuilder<Searchable> documentBuilder, AtlassianDocumentBuilder<Searchable> changeDocumentBuilder, AtlassianDocumentBuilder<Searchable> selectiveFieldsDocumentBuilder, ContentEntityObjectDaoInternal contentEntityObjectDao, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageManagerInternal pageManager, HibernateSessionManager5 hibernateSessionManager, com.atlassian.config.internal.ApplicationConfig applicationConfig, SearchableResolver searchableResolver) -
Method Summary
Modifier and TypeMethodDescriptioncreateAddChangeDocumentTask(Searchable searchable) Constructs an add change document task.createAddChangeDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) createAddDocumentTask(Searchable searchable) NOTE: Do not call this method without first callingcreateDeleteDocumentTask(Searchable)for the same object.createAddDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) createContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType) createDeleteChangeDocumentsIndexTask(Searchable searchable) createDeleteDocumentTask(Searchable searchable) createDeleteDocumentTask(String handle) createRebuildChangeDocumentsIndexTask(Searchable searchable) createReIndexPermissionsTask(Searchable searchable) Creates a task to re-index permissions only for the given content.createReindexUsersInGroupChangeTask(String groupName) createReindexUsersInGroupContentTask(String groupName) createUnindexContentTypeChangeTask(String contentType) createUnindexContentTypeContentTask(String contentType) createUpdateDocumentTask(Searchable searchable) Returns an update document task.createUpdateDocumentTask(Searchable searchable, boolean includeDependents) createUpdateDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) createUpdateDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever, boolean includeDependents)
-
Constructor Details
-
DefaultIndexTaskFactory
public DefaultIndexTaskFactory(BatchOperationManager batchOperationManager, AtlassianDocumentBuilder<Searchable> documentBuilder, AtlassianDocumentBuilder<Searchable> changeDocumentBuilder, AtlassianDocumentBuilder<Searchable> selectiveFieldsDocumentBuilder, ContentEntityObjectDaoInternal contentEntityObjectDao, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageManagerInternal pageManager, HibernateSessionManager5 hibernateSessionManager, com.atlassian.config.internal.ApplicationConfig applicationConfig, SearchableResolver searchableResolver) - Since:
- 8.0
-
-
Method Details
-
createContentIndexTask
public ContentIndexTask createContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType) - Specified by:
createContentIndexTaskin interfaceIndexTaskFactoryInternal
-
createIndexDraftsTask
- Specified by:
createIndexDraftsTaskin interfaceIndexTaskFactoryInternal
-
createUnIndexSpaceContentIndexTask
- Specified by:
createUnIndexSpaceContentIndexTaskin interfaceIndexTaskFactoryInternal- Parameters:
handle- space key
-
createUnIndexSpaceContentIndexTask
- Specified by:
createUnIndexSpaceContentIndexTaskin interfaceIndexTaskFactoryInternal
-
createUnIndexSpaceChangeIndexTask
- Specified by:
createUnIndexSpaceChangeIndexTaskin interfaceIndexTaskFactoryInternal
-
createUnIndexSpaceChangeIndexTask
- Specified by:
createUnIndexSpaceChangeIndexTaskin interfaceIndexTaskFactoryInternal
-
createUnindexContentTypeContentTask
- Specified by:
createUnindexContentTypeContentTaskin interfaceIndexTaskFactoryInternal
-
createUnindexContentTypeChangeTask
- Specified by:
createUnindexContentTypeChangeTaskin interfaceIndexTaskFactoryInternal
-
createReindexAllUsersContentTask
- Specified by:
createReindexAllUsersContentTaskin interfaceIndexTaskFactoryInternal
-
createReindexAllUsersChangeTask
- Specified by:
createReindexAllUsersChangeTaskin interfaceIndexTaskFactoryInternal
-
createReindexAllBlogsContentTask
- Specified by:
createReindexAllBlogsContentTaskin interfaceIndexTaskFactoryInternal
-
createReindexAllBlogsChangeTask
- Specified by:
createReindexAllBlogsChangeTaskin interfaceIndexTaskFactoryInternal
-
createReindexUsersInGroupContentTask
- Specified by:
createReindexUsersInGroupContentTaskin interfaceIndexTaskFactoryInternal
-
createReindexUsersInGroupChangeTask
- Specified by:
createReindexUsersInGroupChangeTaskin interfaceIndexTaskFactoryInternal
-
createDeleteDocumentTask
- Specified by:
createDeleteDocumentTaskin interfaceIndexTaskFactory
-
createDeleteDocumentTask
- Specified by:
createDeleteDocumentTaskin interfaceIndexTaskFactory
-
createUpdateDocumentTask
Returns an update document task.- Specified by:
createUpdateDocumentTaskin interfaceIndexTaskFactory- Parameters:
searchable- the searchable- Returns:
- an update document task or null if searchable is null or not indexable
-
createUpdateDocumentTask
public ConfluenceIndexTask createUpdateDocumentTask(Searchable searchable, boolean includeDependents) - Specified by:
createUpdateDocumentTaskin interfaceIndexTaskFactory
-
createUpdateDocumentTask
public ConfluenceIndexTask createUpdateDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) - Specified by:
createUpdateDocumentTaskin interfaceIndexTaskFactoryInternal
-
createUpdateDocumentTask
public ConfluenceIndexTask createUpdateDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever, boolean includeDependents) - Specified by:
createUpdateDocumentTaskin interfaceIndexTaskFactoryInternal
-
createAddDocumentTask
NOTE: Do not call this method without first callingcreateDeleteDocumentTask(Searchable)for the same object. The index flushing strategy is intentionally inaccurate and relies on an in-memory 'flushed entries' cache to prevent the same object being flushed twice, which risks duplicate entries being created in the index immediately after the application is restarted. CONF-29072 has additional details.You probably want to use
createUpdateDocumentTask(Searchable)instead - the delete operation will fail silently :)- Specified by:
createAddDocumentTaskin interfaceIndexTaskFactory- Parameters:
searchable- the searchable- Returns:
- an add document task or null if searchable is null or not indexable
-
createAddDocumentTask
public ConfluenceIndexTask createAddDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) - Specified by:
createAddDocumentTaskin interfaceIndexTaskFactoryInternal
-
createDeleteChangeDocumentsIndexTask
- Specified by:
createDeleteChangeDocumentsIndexTaskin interfaceIndexTaskFactory- Parameters:
searchable- the searchable- Returns:
- an index task to remove the change documents for this searchable, or a no op task otherwise.
-
createDeleteChangeDocumentsIndexTask
- Specified by:
createDeleteChangeDocumentsIndexTaskin interfaceIndexTaskFactory- Parameters:
handle- handle to the latest version- Returns:
- delete index task
-
createRebuildChangeDocumentsIndexTask
- Specified by:
createRebuildChangeDocumentsIndexTaskin interfaceIndexTaskFactory
-
createAddChangeDocumentTask
Constructs an add change document task.- Specified by:
createAddChangeDocumentTaskin interfaceIndexTaskFactory- Parameters:
searchable- the searchable- Returns:
- an add change document task or
NoOpIndexTaskif searchable is null
-
createAddChangeDocumentTask
public ConfluenceIndexTask createAddChangeDocumentTask(Searchable searchable, PrefetchAtlassianDocumentRetriever documentRetriever) - Specified by:
createAddChangeDocumentTaskin interfaceIndexTaskFactoryInternal
-
createReIndexPermissionsTask
Description copied from interface:IndexTaskFactoryInternalCreates a task to re-index permissions only for the given content. OpenSearch Only. DO NOT USE for Lucene.- Specified by:
createReIndexPermissionsTaskin interfaceIndexTaskFactoryInternal- Parameters:
searchable- The content for which the task is to be created.
-
createReindexAllSpacesContentTask
- Specified by:
createReindexAllSpacesContentTaskin interfaceIndexTaskFactoryInternal
-
createReindexAllSpacesChangeTask
- Specified by:
createReindexAllSpacesChangeTaskin interfaceIndexTaskFactoryInternal
-