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.lang.String content,
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.lang.String content, java.util.Map<java.lang.String,java.lang.Object> ctxt)
addFile
in interface RepositoryIndexer
file
- the File to add in indexcontent
- the textual content that could be extracted for this filectxt
- contextpublic void removeFile(java.io.File file, java.util.Map<java.lang.String,java.lang.Object> ctxt)
removeFile
in interface RepositoryIndexer
file
- the File to remove from indexctxt
- contextpublic void setLuceneIndex(java.io.File pluceneIndex)
RepositoryIndexer
setLuceneIndex
in interface RepositoryIndexer
pluceneIndex
- the directory of the Lucene Indexpublic java.io.File getLuceneIndex()
RepositoryIndexer
getLuceneIndex
in interface RepositoryIndexer
public java.lang.String getExternalURL(java.io.File file, javax.servlet.http.HttpServletRequest request, Repository repository)
RepositoryIndexer
getExternalURL
in interface RepositoryIndexer
file
- the file to accessrequest
- the current HTTP requestrepository
- the repository for the filepublic boolean provideExternalURLForFiles()
RepositoryIndexer
provideExternalURLForFiles
in interface RepositoryIndexer
Copyright © 2001-2010 Jalios SA. All Rights Reserved.