|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryIndexer
Represents the way indexation must be done for a repository.
Method Summary | |
---|---|
void |
addFileInIndex(org.apache.lucene.document.Document documentLucene,
Map<String,Object> ctxt)
Add a lucene Document to this Index. |
String |
getExternalURL(File file,
javax.servlet.http.HttpServletRequest request,
Repository repository)
Gives an URL to access to files externally, given the file. |
org.apache.lucene.document.Document |
getLuceneDocument(File file,
String content,
Map<String,Object> ctxt)
Gives the Lucene Document, used for indexing files. |
File |
getLuceneIndex()
Gives the directory of the Lucene Index in wich the files of the repository have to be indexed. |
boolean |
provideExternalURLForFiles()
This class may provide an external format for users to acces files. |
void |
removeFileFromIndex(File file,
Map<String,Object> ctxt)
Remove a file from this index |
void |
setLuceneIndex(File pluceneIndex)
Set the directory of the Lucene Index in wich the files of the repository have to be indexed. |
Method Detail |
---|
File getLuceneIndex()
void setLuceneIndex(File pluceneIndex)
pluceneIndex
- the directory of the Lucene Indexorg.apache.lucene.document.Document getLuceneDocument(File file, String content, Map<String,Object> ctxt) throws ProcessingException
file
- content
- the text content of the filectxt
- the context
ProcessingException
- give the nature of a an exception of processingvoid removeFileFromIndex(File file, Map<String,Object> ctxt)
file
- to remove from indexctxt
- contextvoid addFileInIndex(org.apache.lucene.document.Document documentLucene, Map<String,Object> ctxt)
documentLucene
- the document to addctxt
- contextboolean provideExternalURLForFiles()
String getExternalURL(File file, javax.servlet.http.HttpServletRequest request, Repository repository)
file
- the file to accessrequest
- the current HTTP requestrepository
- the repository for the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |