com.atlassian.confluence.search.lucene.tasks
Class IndexTaskFactory

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory

public class IndexTaskFactory
extends java.lang.Object

Creates index tasks and provides conversion into queue entries for implementations of IndexTaskQueue


Constructor Summary
IndexTaskFactory()
           
 
Method Summary
 ConfluenceIndexTask createAddChangeDocumentTask(com.atlassian.bonnie.Searchable searchable)
          Constructs an add change document task.
 ConfluenceIndexTask createAddDocumentTask(com.atlassian.bonnie.Searchable searchable)
          Returns an add document task.
 AddDocumentIndexTask createAddDocumentTask(java.lang.String handle)
          Deprecated. 
 ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
           
 ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(java.lang.String handle)
           
 ConfluenceIndexTask createDeleteDocumentTask(com.atlassian.bonnie.Searchable searchable)
           
 ConfluenceIndexTask createDeleteDocumentTask(java.lang.String handle)
           
 OptimizeIndexTask createOptimizeIndexTask()
           
 ConfluenceIndexTask createRebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
           
 UnIndexSpaceIndexTask createUnIndexSpaceTask(Space space)
           
 UnIndexSpaceIndexTask createUnIndexSpaceTask(java.lang.String handle)
           
 ConfluenceIndexTask createUpdateDocumentTask(com.atlassian.bonnie.Searchable searchable)
          Returns an update document task.
 AttachmentManager getAttachmentManager()
           
 void setAnyTypeDao(AnyTypeDao anyTypeDao)
           
 void setChangeDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder)
           
 void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
           
 void setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexTaskFactory

public IndexTaskFactory()
Method Detail

setAnyTypeDao

public void setAnyTypeDao(AnyTypeDao anyTypeDao)

setDocumentBuilder

public void setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)

createUnIndexSpaceTask

public UnIndexSpaceIndexTask createUnIndexSpaceTask(java.lang.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(java.lang.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(java.lang.String handle)
                                           throws java.text.ParseException
Deprecated. 

Throws:
java.text.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(java.lang.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-2010 Atlassian. All Rights Reserved.