|
||||||||||
| 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 |
JCMS_UPLOAD_INDEXER_INDEXED_FILE
Key of the indexed file in the current context Map. |
static String |
REVISION
|
| Constructor Summary | |
|---|---|
JCMSUploadIndexer()
Public contructor without argument. |
|
| Method Summary | |
|---|---|
void |
addFileInIndex(org.apache.lucene.document.Document documentLucene,
Map<String,Object> ctxt)
Add a lucene Document 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. |
org.apache.lucene.document.Document |
getLuceneDocument(File file,
String content,
Map<String,Object> ctxt)
Create a Lucene Document from the text parsed by extractText(). |
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 |
removeFileFromIndex(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
public static String JCMS_UPLOAD_INDEXER_INDEXED_FILE
| Constructor Detail |
|---|
public JCMSUploadIndexer()
| Method Detail |
|---|
public org.apache.lucene.document.Document getLuceneDocument(File file,
String content,
Map<String,Object> ctxt)
throws ProcessingException
getLuceneDocument in interface RepositoryIndexerfile - the File to processctxt - A context passed from one processor to another.content - the text content of the file
ProcessingException - give the nature of a an exception of processing
public void removeFileFromIndex(File file,
Map<String,Object> ctxt)
removeFileFromIndex in interface RepositoryIndexerfile - to remove from indexctxt - context
public void addFileInIndex(org.apache.lucene.document.Document documentLucene,
Map<String,Object> ctxt)
addFileInIndex in interface RepositoryIndexerdocumentLucene - the document to addctxt - 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 | |||||||||