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