public interface RepositoryIndexer
| Modifier and Type | Method and Description | 
|---|---|
void | 
addFile(java.io.File file,
       java.io.File textFile,
       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.io.File textFile,
             java.util.Map<java.lang.String,java.lang.Object> ctxt)
file - the File to add in indextextFile - a text containing the text extracted for the File to add in indexctxt - 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-2018 Jalios SA. All Rights Reserved.