public class JCMSUploadIndexer extends java.lang.Object implements RepositoryIndexer
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
| Constructor and Description | 
|---|
JCMSUploadIndexer()
Public contructor without argument. 
 | 
| 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 file 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. 
 | 
public static final java.lang.String REVISION
public void addFile(java.io.File file,
                    java.io.File textFile,
                    java.util.Map<java.lang.String,java.lang.Object> ctxt)
addFile in interface RepositoryIndexerfile - the File to add in indextextFile - a text containing the text extracted for the File to add in indexctxt - contextpublic void removeFile(java.io.File file,
                       java.util.Map<java.lang.String,java.lang.Object> ctxt)
removeFile in interface RepositoryIndexerfile - the File to remove from indexctxt - contextpublic void setLuceneIndex(java.io.File pluceneIndex)
RepositoryIndexersetLuceneIndex in interface RepositoryIndexerpluceneIndex - the directory of the Lucene Indexpublic java.io.File getLuceneIndex()
RepositoryIndexergetLuceneIndex in interface RepositoryIndexerpublic java.lang.String getExternalURL(java.io.File file,
                                       javax.servlet.http.HttpServletRequest request,
                                       Repository repository)
RepositoryIndexergetExternalURL in interface RepositoryIndexerfile - the file to accessrequest - the current HTTP requestrepository - the repository for the filepublic boolean provideExternalURLForFiles()
RepositoryIndexerprovideExternalURLForFiles in interface RepositoryIndexerCopyright © 2001-2018 Jalios SA. All Rights Reserved.