com.atlassian.confluence.search.lucene
Class ConfluenceDocumentBuilder

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder
All Implemented Interfaces:
com.atlassian.bonnie.search.DocumentBuilder

public class ConfluenceDocumentBuilder
extends java.lang.Object
implements com.atlassian.bonnie.search.DocumentBuilder

A Confluence specific implementation of the DocumentBuilder that is aware of plugin's and the fact that new document extractors may become available or unavailable based on the current plugins installed.

Since the BaseDocumentBuilder is immutable when the extractors change a new documentBuilder is created.


Constructor Summary
ConfluenceDocumentBuilder(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 org.apache.lucene.document.Document getDocument(com.atlassian.bonnie.Searchable searchable)
           
 com.atlassian.bonnie.Handle getHandle(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceDocumentBuilder

public ConfluenceDocumentBuilder(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao,
                                 com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getDocument

public org.apache.lucene.document.Document getDocument(com.atlassian.bonnie.Searchable searchable)
Specified by:
getDocument in interface com.atlassian.bonnie.search.DocumentBuilder

getHandle

public com.atlassian.bonnie.Handle getHandle(java.lang.Object obj)
Specified by:
getHandle in interface com.atlassian.bonnie.search.DocumentBuilder


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.