com.atlassian.confluence.search.lucene.tasks
Class IndexTaskFactory
java.lang.Object
com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory
public class IndexTaskFactory
- extends Object
Creates index tasks and provides conversion into queue entries for implementations of IndexTaskQueue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexTaskFactory
public IndexTaskFactory()
setAnyTypeDao
public void setAnyTypeDao(AnyTypeDao anyTypeDao)
setDocumentBuilder
public void setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
createUnIndexSpaceTask
public UnIndexSpaceIndexTask createUnIndexSpaceTask(String handle)
- Parameters:
handle
- space key
createUnIndexSpaceTask
public UnIndexSpaceIndexTask createUnIndexSpaceTask(Space space)
createDeleteDocumentTask
public ConfluenceIndexTask createDeleteDocumentTask(com.atlassian.bonnie.Searchable searchable)
createDeleteDocumentTask
public ConfluenceIndexTask createDeleteDocumentTask(String handle)
createUpdateDocumentTask
public ConfluenceIndexTask createUpdateDocumentTask(com.atlassian.bonnie.Searchable searchable)
- Returns an update document task.
- Parameters:
searchable
- the searchable
- Returns:
- an update document task or null if searchable is null or not indexable
createAddDocumentTask
public ConfluenceIndexTask createAddDocumentTask(com.atlassian.bonnie.Searchable searchable)
- Returns an add document task.
- Parameters:
searchable
- the searchable
- Returns:
- an add document task or null if searchable is null or not indexable
createAddDocumentTask
@Deprecated
public AddDocumentIndexTask createAddDocumentTask(String handle)
throws ParseException
- Deprecated.
- Throws:
ParseException
createDeleteChangeDocumentsIndexTask
public ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
- Parameters:
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)
- Parameters:
handle
- handle to the latest version
- Returns:
- delete index task
createOptimizeIndexTask
public OptimizeIndexTask createOptimizeIndexTask()
createRebuildChangeDocumentsIndexTask
public ConfluenceIndexTask createRebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
createAddChangeDocumentTask
public ConfluenceIndexTask createAddChangeDocumentTask(com.atlassian.bonnie.Searchable searchable)
- Constructs an add change document task.
- Parameters:
searchable
- the searchable
- Returns:
- an add change document task or
NoOpIndexTask
if searchable is null
setChangeDocumentBuilder
public void setChangeDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder)
setContentEntityObjectDao
public void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
getAttachmentManager
public AttachmentManager getAttachmentManager()
Copyright © 2003-2013 Atlassian. All Rights Reserved.