|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
public abstract class BaseContentIndexTask
A base implementation of a ContentIndexTask, that maintains a handle to the searchable target.
| Field Summary | |
|---|---|
protected com.atlassian.bonnie.AnyTypeObjectDao |
anyTypeObjectDao
Required resource. |
protected com.atlassian.bonnie.search.DocumentBuilder |
documentBuilder
Required resource. |
protected com.atlassian.bonnie.Handle |
handle
The handle that identifies the searchable instance being indexed. |
protected java.lang.String |
spaceKey
The spacekey (if any) of the instance being indexed |
protected com.atlassian.bonnie.Searchable |
target
The searchable subject of this index task. |
| Constructor Summary | |
|---|---|
protected |
BaseContentIndexTask()
|
|
BaseContentIndexTask(com.atlassian.bonnie.Searchable target)
Create a new index task. |
protected |
BaseContentIndexTask(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 |
boolean |
equals(java.lang.Object other)
Two content index tasks are considered equal if they are of the same type and contain the same handle. |
com.atlassian.bonnie.Handle |
getHandle()
|
com.atlassian.bonnie.Searchable |
getTarget()
|
int |
hashCode()
|
void |
setAnyTypeObjectDao(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao)
Required resource for converting handles into searchable instances so that the content to be indexed can be retrieved. |
void |
setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
Required resource for converting searchable instances into documents to be indexed. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.confluence.search.lucene.IndexTask |
|---|
getDescription |
| Field Detail |
|---|
protected com.atlassian.bonnie.search.DocumentBuilder documentBuilder
protected com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao
protected com.atlassian.bonnie.Handle handle
protected java.lang.String spaceKey
protected transient com.atlassian.bonnie.Searchable target
| Constructor Detail |
|---|
protected BaseContentIndexTask()
public BaseContentIndexTask(com.atlassian.bonnie.Searchable target)
target -
java.lang.IllegalArgumentException - if the searchable target is not indexible, as defined by the isIndexable
call.
protected BaseContentIndexTask(java.lang.String handle)
throws java.text.ParseException
java.text.ParseException| Method Detail |
|---|
protected com.atlassian.bonnie.Handle createHandle(java.lang.String handle)
throws java.text.ParseException
AnyTypeObjectDao.findByHandle(handle);
handle -
java.text.ParseExceptionpublic com.atlassian.bonnie.Searchable getTarget()
public com.atlassian.bonnie.Handle getHandle()
getHandle in interface ContentIndexTaskpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother -
public int hashCode()
hashCode in class java.lang.Objectprotected com.atlassian.bonnie.Handle createHandle(com.atlassian.bonnie.Searchable target)
public void setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
documentBuilder - public void setAnyTypeObjectDao(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao)
anyTypeObjectDao - public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||