public interface RepositoryIndexer
Modifier and Type | Method and Description |
---|---|
void |
addFile(java.io.File file,
java.lang.String content,
java.util.Map<java.lang.String,java.lang.Object> ctxt)
Add a lucene Document to this Index.
|
java.lang.String |
getExternalURL(java.io.File file,
javax.servlet.http.HttpServletRequest request,
Repository repository)
Gives an URL to access to files externally, given the file.
|
java.io.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(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> ctxt)
Remove a file from this index
|
void |
setLuceneIndex(java.io.File pluceneIndex)
Set the directory of the Lucene Index in wich the files of the repository have to be indexed.
|
java.io.File getLuceneIndex()
void setLuceneIndex(java.io.File pluceneIndex)
pluceneIndex
- the directory of the Lucene Indexvoid removeFile(java.io.File file, java.util.Map<java.lang.String,java.lang.Object> ctxt)
file
- the File to remove from indexctxt
- contextvoid addFile(java.io.File file, java.lang.String content, java.util.Map<java.lang.String,java.lang.Object> ctxt)
file
- the File to add in indexcontent
- the textual content that could be extracted for this filectxt
- contextboolean provideExternalURLForFiles()
java.lang.String getExternalURL(java.io.File file, javax.servlet.http.HttpServletRequest request, Repository repository)
file
- the file to accessrequest
- the current HTTP requestrepository
- the repository for the fileCopyright © 2001-2010 Jalios SA. All Rights Reserved.