com.atlassian.confluence.search.lucene.tasks
Class AddChangeDocumentIndexTask
java.lang.Object
com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask
- All Implemented Interfaces:
- com.atlassian.bonnie.ILuceneConnection.WriterAction, HandleAware, IndexTask, ConfluenceIndexTask
public class AddChangeDocumentIndexTask
- extends java.lang.Object
- implements ConfluenceIndexTask, HandleAware
Responsible for removing and adding a change document for versioned content to the index.
Enforces a maximum of one change document per user per piece of current content.
Constructor Summary |
AddChangeDocumentIndexTask(com.atlassian.bonnie.Searchable searchable,
com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDescription()
A description of the task that can be presented to the user via the UI. |
com.atlassian.bonnie.Handle |
getHandle()
|
int |
hashCode()
|
void |
perform(org.apache.lucene.index.IndexWriter writer)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AddChangeDocumentIndexTask
public AddChangeDocumentIndexTask(com.atlassian.bonnie.Searchable searchable,
com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder)
- Parameters:
searchable
- a Versioned
searchablechangeDocumentBuilder
-
- Throws:
java.lang.IllegalArgumentException
- if searchable is invalid.
getHandle
public com.atlassian.bonnie.Handle getHandle()
- Specified by:
getHandle
in interface HandleAware
- Returns:
- the handle
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 void perform(org.apache.lucene.index.IndexWriter writer)
throws java.io.IOException
- Specified by:
perform
in interface com.atlassian.bonnie.ILuceneConnection.WriterAction
- Throws:
java.io.IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright © 2003-2010 Atlassian. All Rights Reserved.