public class IndexTaskFactory extends Object
Constructor and Description |
---|
IndexTaskFactory()
Deprecated.
since 5.9. Use constructor injection instead.
|
IndexTaskFactory(BatchOperationManager batchOperationManager,
com.atlassian.bonnie.search.DocumentBuilder documentBuilder,
com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder,
ContentEntityObjectDao contentEntityObjectDao,
com.google.common.base.Supplier<AttachmentManager> attachmentManager,
com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager,
com.google.common.base.Supplier<UserAccessor> userAccessor,
PersonalInformationDao personalInformationDao)
Deprecated.
since 5.10
|
IndexTaskFactory(BatchOperationManager batchOperationManager,
com.atlassian.bonnie.search.DocumentBuilder documentBuilder,
com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder,
ContentEntityObjectDao contentEntityObjectDao,
com.google.common.base.Supplier<AttachmentManager> attachmentManager,
com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager,
com.google.common.base.Supplier<UserAccessor> userAccessor,
PersonalInformationDao personalInformationDao,
SpaceDao spaceDao,
PageDaoInternal pageDao) |
IndexTaskFactory(BatchOperationManager batchOperationManager,
net.sf.hibernate.SessionFactory sessionFactory,
com.atlassian.bonnie.search.DocumentBuilder documentBuilder,
com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder,
ContentEntityObjectDao contentEntityObjectDao,
com.google.common.base.Supplier<AttachmentManager> attachmentManager,
com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager,
com.google.common.base.Supplier<UserAccessor> userAccessor)
Deprecated.
since 5.9. Use the non-deprecated constructor.
|
public IndexTaskFactory(BatchOperationManager batchOperationManager, com.atlassian.bonnie.search.DocumentBuilder documentBuilder, com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder, ContentEntityObjectDao contentEntityObjectDao, com.google.common.base.Supplier<AttachmentManager> attachmentManager, com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager, com.google.common.base.Supplier<UserAccessor> userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageDaoInternal pageDao)
public IndexTaskFactory(BatchOperationManager batchOperationManager, com.atlassian.bonnie.search.DocumentBuilder documentBuilder, com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder, ContentEntityObjectDao contentEntityObjectDao, com.google.common.base.Supplier<AttachmentManager> attachmentManager, com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager, com.google.common.base.Supplier<UserAccessor> userAccessor, PersonalInformationDao personalInformationDao)
@Deprecated public IndexTaskFactory()
public IndexTaskFactory(BatchOperationManager batchOperationManager, net.sf.hibernate.SessionFactory sessionFactory, com.atlassian.bonnie.search.DocumentBuilder documentBuilder, com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder, ContentEntityObjectDao contentEntityObjectDao, com.google.common.base.Supplier<AttachmentManager> attachmentManager, com.google.common.base.Supplier<PersonalInformationManager> personalInformationManager, com.google.common.base.Supplier<UserAccessor> userAccessor)
public ContentIndexTask createContentIndexTask(List<ContentType> contentTypes, List<ContentStatus> contentStatuses, JournalEntryType journalEntryType)
public ContentIndexTask createIndexDraftsTask()
public UnIndexSpaceIndexTask createUnIndexSpaceTask(String handle)
handle
- space keypublic UnindexContentTypeIndexTask createUnindexContentTypeTask(String contentType)
public UnIndexSpaceIndexTask createUnIndexSpaceTask(Space space)
public ReindexAllUsersIndexTask createReindexAllUsersTask()
public ReindexAllBlogsIndexTask createReindexAllBlogsTask()
public ReindexUsersInGroupIndexTask createReindexUsersInGroupTask(String groupName)
public ConfluenceIndexTask createDeleteDocumentTask(com.atlassian.bonnie.Searchable searchable)
public ConfluenceIndexTask createDeleteDocumentTask(String handle)
public ConfluenceIndexTask createUpdateDocumentTask(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchablepublic ConfluenceIndexTask createUpdateDocumentTask(com.atlassian.bonnie.Searchable searchable, boolean includeDependents)
public ConfluenceIndexTask createAddDocumentTask(com.atlassian.bonnie.Searchable searchable)
createDeleteDocumentTask(com.atlassian.bonnie.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(com.atlassian.bonnie.Searchable)
instead - the delete
operation will fail silently :)
searchable
- the searchablepublic ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
searchable
- public ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(String handle)
handle
- handle to the latest versionpublic ConfluenceIndexTask createRebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
public ConfluenceIndexTask createAddChangeDocumentTask(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchableNoOpIndexTask
if searchable is nullpublic ReindexAllSpacesIndexTask createReindexAllSpacesTask()
public AttachmentManager getAttachmentManager()
public PersonalInformationManager getPersonalInformationManager()
public UserAccessor getUserAccessor()
public PersonalInformationDao getPersonalInformationDao()
Copyright © 2003–2019 Atlassian. All rights reserved.