|
||||||||||
| 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 java.lang.String |
JCMS_UPLOAD_INDEXER_INDEXED_FILE
Key of the indexed file in the current context Map. |
static java.lang.String |
REVISION
|
| Constructor Summary | |
|---|---|
JCMSUploadIndexer()
Public contructor without argument. |
|
| Method Summary | |
|---|---|
void |
addFileInIndex(org.apache.lucene.document.Document documentLucene,
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. |
org.apache.lucene.document.Document |
getLuceneDocument(java.io.File file,
java.lang.String content,
java.util.Map<java.lang.String,java.lang.Object> ctxt)
Create a Lucene Document from the text parsed by extractText(). |
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 |
removeFileFromIndex(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
public static java.lang.String JCMS_UPLOAD_INDEXER_INDEXED_FILE
| Constructor Detail |
|---|
public JCMSUploadIndexer()
| Method Detail |
|---|
public org.apache.lucene.document.Document getLuceneDocument(java.io.File file,
java.lang.String content,
java.util.Map<java.lang.String,java.lang.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(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> ctxt)
removeFileFromIndex in interface RepositoryIndexerfile - to remove from indexctxt - context
public void addFileInIndex(org.apache.lucene.document.Document documentLucene,
java.util.Map<java.lang.String,java.lang.Object> ctxt)
addFileInIndex in interface RepositoryIndexerdocumentLucene - the document to addctxt - contextpublic void setLuceneIndex(java.io.File pluceneIndex)
RepositoryIndexer
setLuceneIndex in interface RepositoryIndexerpluceneIndex - 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 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 | |||||||||