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
Constructors Constructor Description DefaultIndexTaskFactory(BatchOperationManager batchOperationManager, AtlassianDocumentBuilder<Searchable> documentBuilder, AtlassianDocumentBuilder<Searchable> changeDocumentBuilder, ContentEntityObjectDao<?> contentEntityObjectDao, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageDaoInternal pageDao, HibernateSessionManager5 hibernateSessionManager, org.hibernate.SessionFactory sessionFactory) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
DefaultIndexTaskFactory
public DefaultIndexTaskFactory(BatchOperationManager batchOperationManager, AtlassianDocumentBuilder<Searchable> documentBuilder, AtlassianDocumentBuilder<Searchable> changeDocumentBuilder, ContentEntityObjectDao<?> contentEntityObjectDao, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageDaoInternal pageDao, HibernateSessionManager5 hibernateSessionManager, org.hibernate.SessionFactory sessionFactory)
- Since:
 - 8.0
 
 
 - 
 
- 
Method Detail
- 
createContentIndexTask
public ContentIndexTask createContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType)
- Specified by:
 createContentIndexTaskin interfaceIndexTaskFactoryInternal
 
- 
createIndexDraftsTask
public ContentIndexTask createIndexDraftsTask()
- Specified by:
 createIndexDraftsTaskin interfaceIndexTaskFactoryInternal
 
- 
createUnIndexSpaceContentIndexTask
public UnIndexSpaceContentIndexTask createUnIndexSpaceContentIndexTask(String handle)
- Specified by:
 createUnIndexSpaceContentIndexTaskin interfaceIndexTaskFactoryInternal- Parameters:
 handle- space key
 
- 
createUnIndexSpaceContentIndexTask
public UnIndexSpaceContentIndexTask createUnIndexSpaceContentIndexTask(Space space)
- Specified by:
 createUnIndexSpaceContentIndexTaskin interfaceIndexTaskFactoryInternal
 
- 
createUnIndexSpaceChangeIndexTask
public UnIndexSpaceChangeIndexTask createUnIndexSpaceChangeIndexTask(String handle)
- Specified by:
 createUnIndexSpaceChangeIndexTaskin interfaceIndexTaskFactoryInternal
 
- 
createUnIndexSpaceChangeIndexTask
public UnIndexSpaceChangeIndexTask createUnIndexSpaceChangeIndexTask(Space space)
- Specified by:
 createUnIndexSpaceChangeIndexTaskin interfaceIndexTaskFactoryInternal
 
- 
createUnindexContentTypeContentTask
public UnindexContentTypeContentIndexTask createUnindexContentTypeContentTask(String contentType)
- Specified by:
 createUnindexContentTypeContentTaskin interfaceIndexTaskFactoryInternal
 
- 
createUnindexContentTypeChangeTask
public UnindexContentTypeChangeIndexTask createUnindexContentTypeChangeTask(String contentType)
- Specified by:
 createUnindexContentTypeChangeTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexAllUsersContentTask
public ReindexAllUsersContentIndexTask createReindexAllUsersContentTask()
- Specified by:
 createReindexAllUsersContentTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexAllUsersChangeTask
public ReindexAllUsersChangeIndexTask createReindexAllUsersChangeTask()
- Specified by:
 createReindexAllUsersChangeTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexAllBlogsContentTask
public ReindexAllBlogsContentIndexTask createReindexAllBlogsContentTask()
- Specified by:
 createReindexAllBlogsContentTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexAllBlogsChangeTask
public ReindexAllBlogsChangeIndexTask createReindexAllBlogsChangeTask()
- Specified by:
 createReindexAllBlogsChangeTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexUsersInGroupContentTask
public ReindexUsersInGroupContentIndexTask createReindexUsersInGroupContentTask(String groupName)
- Specified by:
 createReindexUsersInGroupContentTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexUsersInGroupChangeTask
public ReindexUsersInGroupChangeIndexTask createReindexUsersInGroupChangeTask(String groupName)
- Specified by:
 createReindexUsersInGroupChangeTaskin interfaceIndexTaskFactoryInternal
 
- 
createDeleteDocumentTask
public ConfluenceIndexTask createDeleteDocumentTask(Searchable searchable)
- Specified by:
 createDeleteDocumentTaskin interfaceIndexTaskFactory
 
- 
createDeleteDocumentTask
public ConfluenceIndexTask createDeleteDocumentTask(String handle)
- Specified by:
 createDeleteDocumentTaskin interfaceIndexTaskFactory
 
- 
createUpdateDocumentTask
public ConfluenceIndexTask createUpdateDocumentTask(Searchable searchable)
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
 
- 
createAddDocumentTask
public ConfluenceIndexTask createAddDocumentTask(Searchable searchable)
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
 
 
- 
createDeleteChangeDocumentsIndexTask
public ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(Searchable searchable)
- 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
public ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(String handle)
- Specified by:
 createDeleteChangeDocumentsIndexTaskin interfaceIndexTaskFactory- Parameters:
 handle- handle to the latest version- Returns:
 - delete index task
 
 
- 
createRebuildChangeDocumentsIndexTask
public ConfluenceIndexTask createRebuildChangeDocumentsIndexTask(Searchable searchable)
- Specified by:
 createRebuildChangeDocumentsIndexTaskin interfaceIndexTaskFactory
 
- 
createAddChangeDocumentTask
public ConfluenceIndexTask createAddChangeDocumentTask(Searchable searchable)
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 
 
- 
createReindexAllSpacesContentTask
public ReindexAllSpacesContentIndexTask createReindexAllSpacesContentTask()
- Specified by:
 createReindexAllSpacesContentTaskin interfaceIndexTaskFactoryInternal
 
- 
createReindexAllSpacesChangeTask
public ReindexAllSpacesChangeIndexTask createReindexAllSpacesChangeTask()
- Specified by:
 createReindexAllSpacesChangeTaskin interfaceIndexTaskFactoryInternal
 
 - 
 
 -