|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for an indexer indexing Cms resources.
| Method Summary | |
A_CmsIndexResource |
getIndexResource(CmsObject cms,
Document doc)
Returns an index resource for a specified Lucene search result document. |
void |
init(I_CmsReport report,
CmsSearchIndex index,
CmsSearchIndexSource indexSource,
IndexWriter writer,
CmsIndexingThreadManager threadManager)
Initializes the indexer. |
void |
updateIndex(CmsObject cms,
String source,
String path)
Creates new index entries for all resources below the given path. |
| Method Detail |
public void init(I_CmsReport report,
CmsSearchIndex index,
CmsSearchIndexSource indexSource,
IndexWriter writer,
CmsIndexingThreadManager threadManager)
throws CmsIndexException
report - the reportindex - the search indexindexSource - the search index sourcewriter - writer to write the search index in the physical file systemthreadManager - the tread manager
CmsIndexException - if something goes wrong
public void updateIndex(CmsObject cms,
String source,
String path)
throws CmsIndexException
cms - the current user's CmsObjectsource - the source of the resourcespath - the path to the root of the subtree to index
CmsIndexException - if something goes wrong
public A_CmsIndexResource getIndexResource(CmsObject cms,
Document doc)
throws CmsException
Implementations of this method have to check if the current user has read permissions on the Cms resource represented by the Lucene document.
If this check fails, the implementation must return null as a result.
cms - the current user's CmsObjectdoc - the Lucene search result document
CmsException - if something goes wrongA_CmsIndexResource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||