fr.paris.lutece.plugins.htmlpage.service.search
Class HtmlPageIndexer

java.lang.Object
  extended by fr.paris.lutece.plugins.htmlpage.service.search.HtmlPageIndexer
All Implemented Interfaces:
fr.paris.lutece.portal.service.search.SearchIndexer

public class HtmlPageIndexer
extends java.lang.Object
implements fr.paris.lutece.portal.service.search.SearchIndexer

Indexer service for htmlPage Xpages


Field Summary
static java.lang.String PROPERTY_INDEX_TYPE_PAGE
           
static java.lang.String PROPERTY_INDEXER_NAME
           
static java.lang.String SHORT_NAME
           
 
Constructor Summary
HtmlPageIndexer()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the indexer service description
 java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String strId)
          Return a list of lucene document for incremental indexing
 java.util.List<java.lang.String> getListType()
          
 java.lang.String getName()
          
 java.lang.String getSpecificSearchAppUrl()
          
 java.lang.String getVersion()
          
 void indexDocuments()
          Index all enabled HtmlPage
 boolean isEnable()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_NAME

public static final java.lang.String SHORT_NAME
See Also:
Constant Field Values

PROPERTY_INDEXER_NAME

public static final java.lang.String PROPERTY_INDEXER_NAME
See Also:
Constant Field Values

PROPERTY_INDEX_TYPE_PAGE

public static final java.lang.String PROPERTY_INDEX_TYPE_PAGE
See Also:
Constant Field Values
Constructor Detail

HtmlPageIndexer

public HtmlPageIndexer()
Method Detail

getDescription

public java.lang.String getDescription()
Returns the indexer service description

Specified by:
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer
Returns:
The indexer service description

indexDocuments

public void indexDocuments()
                    throws java.io.IOException,
                           java.lang.InterruptedException,
                           fr.paris.lutece.portal.service.message.SiteMessageException
Index all enabled HtmlPage

Specified by:
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Throws:
java.io.IOException - exception
java.lang.InterruptedException - exception
fr.paris.lutece.portal.service.message.SiteMessageException - exception

getDocuments

public java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String strId)
                                                                 throws java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        fr.paris.lutece.portal.service.message.SiteMessageException
Return a list of lucene document for incremental indexing

Specified by:
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Parameters:
strId - the uid of the document
Returns:
listDocuments the document list
Throws:
java.io.IOException
java.lang.InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

getName

public java.lang.String getName()

Specified by:
getName in interface fr.paris.lutece.portal.service.search.SearchIndexer

getVersion

public java.lang.String getVersion()

Specified by:
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer

isEnable

public boolean isEnable()

Specified by:
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer

getListType

public java.util.List<java.lang.String> getListType()

Specified by:
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexer

getSpecificSearchAppUrl

public java.lang.String getSpecificSearchAppUrl()

Specified by:
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer


Copyright © 2011 Mairie de Paris. All Rights Reserved.