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,
AttachmentManager attachmentManager,
PersonalInformationManager personalInformationManager,
UserAccessor userAccessor,
PersonalInformationDao personalInformationDao,
SpaceDao spaceDao,
PageDaoInternal pageDao,
HibernateSessionManager hibernateSessionManager,
org.hibernate.SessionFactory sessionFactory) |
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,
HibernateSessionManager hibernateSessionManager,
org.hibernate.SessionFactory sessionFactory)
Deprecated.
since 7.5
|
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, AttachmentManager attachmentManager, PersonalInformationManager personalInformationManager, UserAccessor userAccessor, PersonalInformationDao personalInformationDao, SpaceDao spaceDao, PageDaoInternal pageDao, HibernateSessionManager hibernateSessionManager, org.hibernate.SessionFactory sessionFactory)
@Deprecated 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, HibernateSessionManager hibernateSessionManager, org.hibernate.SessionFactory sessionFactory)
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 UnIndexSpaceContentIndexTask createUnIndexSpaceContentIndexTask(String handle)
handle
- space keypublic UnIndexSpaceContentIndexTask createUnIndexSpaceContentIndexTask(Space space)
public UnIndexSpaceChangeIndexTask createUnIndexSpaceChangeIndexTask(String handle)
public UnIndexSpaceChangeIndexTask createUnIndexSpaceChangeIndexTask(Space space)
public UnindexContentTypeContentIndexTask createUnindexContentTypeContentTask(String contentType)
public UnindexContentTypeChangeIndexTask createUnindexContentTypeChangeTask(String contentType)
public ReindexAllUsersContentIndexTask createReindexAllUsersContentTask()
public ReindexAllUsersChangeIndexTask createReindexAllUsersChangeTask()
public ReindexAllBlogsContentIndexTask createReindexAllBlogsContentTask()
public ReindexAllBlogsChangeIndexTask createReindexAllBlogsChangeTask()
public ReindexUsersInGroupContentIndexTask createReindexUsersInGroupContentTask(String groupName)
public ReindexUsersInGroupChangeIndexTask createReindexUsersInGroupChangeTask(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 ReindexAllSpacesContentIndexTask createReindexAllSpacesContentTask()
public ReindexAllSpacesChangeIndexTask createReindexAllSpacesChangeTask()
public AttachmentManager getAttachmentManager()
public PersonalInformationManager getPersonalInformationManager()
public UserAccessor getUserAccessor()
public PersonalInformationDao getPersonalInformationDao()
Copyright © 2003–2023 Atlassian. All rights reserved.