|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.fileprocessor.repository.jcmsupload.JCMSUploadIndexer
public class JCMSUploadIndexer
Implementation of the RepositoryIndexer for the JCMS upload directory.
| Field Summary | |
|---|---|
static String |
REVISION
|
| Constructor Summary | |
|---|---|
JCMSUploadIndexer()
Public contructor without argument. |
|
| Method Summary | |
|---|---|
void |
addFile(File file,
String content,
Map<String,Object> ctxt)
Add a file 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REVISION
| Constructor Detail |
|---|
public JCMSUploadIndexer()
| Method Detail |
|---|
public void addFile(File file,
String content,
Map<String,Object> ctxt)
addFile in interface RepositoryIndexerfile - the File to add in indexcontent - the textual content that could be extracted for this filectxt - context
public void removeFile(File file,
Map<String,Object> ctxt)
removeFile in interface RepositoryIndexerfile - the File to remove from indexctxt - contextpublic void setLuceneIndex(File pluceneIndex)
RepositoryIndexer
setLuceneIndex in interface RepositoryIndexerpluceneIndex - the directory of the Lucene Indexpublic File getLuceneIndex()
RepositoryIndexer
getLuceneIndex in interface RepositoryIndexer
public String getExternalURL(File file,
javax.servlet.http.HttpServletRequest request,
Repository repository)
RepositoryIndexer
getExternalURL in interface RepositoryIndexerfile - the file to accessrequest - the current HTTP requestrepository - the repository for the file
public boolean provideExternalURLForFiles()
RepositoryIndexer
provideExternalURLForFiles in interface RepositoryIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||