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

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
      extended by com.atlassian.confluence.search.lucene.tasks.UnIndexSpaceIndexTask
All Implemented Interfaces:
com.atlassian.bonnie.ILuceneConnection.ReaderAction, ContentIndexTask, IndexTask

public class UnIndexSpaceIndexTask
extends BaseContentIndexTask
implements com.atlassian.bonnie.ILuceneConnection.ReaderAction


Field Summary
 
Fields inherited from class com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
anyTypeObjectDao, documentBuilder, handle, spaceKey, target
 
Constructor Summary
  UnIndexSpaceIndexTask(com.atlassian.bonnie.Searchable target)
           
protected UnIndexSpaceIndexTask(java.lang.String handle)
           
 
Method Summary
protected  com.atlassian.bonnie.Handle createHandle(com.atlassian.bonnie.Searchable target)
           
protected  com.atlassian.bonnie.Handle createHandle(java.lang.String handle)
          The default create handle implementation creates a handle that can be used to retrieve the searchable target from the persistent store via the
 java.lang.String getDescription()
          A description of the task that can be presented to the user via the UI.
 java.lang.Object perform(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
equals, getHandle, getTarget, hashCode, setAnyTypeObjectDao, setDocumentBuilder, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnIndexSpaceIndexTask

public UnIndexSpaceIndexTask(com.atlassian.bonnie.Searchable target)

UnIndexSpaceIndexTask

protected UnIndexSpaceIndexTask(java.lang.String handle)
                         throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

createHandle

protected com.atlassian.bonnie.Handle createHandle(java.lang.String handle)
                                            throws java.text.ParseException
Description copied from class: BaseContentIndexTask
The default create handle implementation creates a handle that can be used to retrieve the searchable target from the persistent store via the
AnyTypeObjectDao.findByHandle(handle);

Overrides:
createHandle in class BaseContentIndexTask
Returns:
Throws:
java.text.ParseException

createHandle

protected com.atlassian.bonnie.Handle createHandle(com.atlassian.bonnie.Searchable target)
Overrides:
createHandle in class BaseContentIndexTask

getDescription

public java.lang.String getDescription()
Description copied from interface: IndexTask
A description of the task that can be presented to the user via the UI.

Specified by:
getDescription in interface IndexTask
Returns:
an readable message.

perform

public java.lang.Object perform(org.apache.lucene.index.IndexReader reader)
                         throws java.io.IOException
Specified by:
perform in interface com.atlassian.bonnie.ILuceneConnection.ReaderAction
Throws:
java.io.IOException


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