|
||||||||||
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 |
addFile(File file,
String content,
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. |
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 |
removeFile(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 Indexvoid removeFile(File file, Map<String,Object> ctxt)
file
- the File to remove from indexctxt
- contextvoid addFile(File file, String content, Map<String,Object> ctxt)
file
- the File to add in indexcontent
- the textual content that could be extracted for this filectxt
- 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 |