fr.paris.lutece.plugins.helpdesk.service.search
Class HelpdeskIndexer

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

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

Helpdesk Indexer


Constructor Summary
HelpdeskIndexer()
           
 
Method Summary
 java.lang.String getDescription()
          Returns the indexer service description
static org.apache.lucene.document.Document getDocument(int nIdFaq, QuestionAnswer questionAnswer, java.lang.String strUrl, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Builds a document which will be used by Lucene during the indexing of the question/answer list
static org.apache.lucene.document.Document getDocument(Subject subject, java.lang.String strRoleKey, java.lang.String strUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Builds a document which will be used by Lucene during the indexing of the subject list
 java.util.List<org.apache.lucene.document.Document> getDocuments()
          Get the document list
 java.lang.String getName()
          Get the name of the indexer.
 java.lang.String getVersion()
          Get the version of the indexer
 boolean isEnable()
          Get the state of indexer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpdeskIndexer

public HelpdeskIndexer()
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

getDocuments

public java.util.List<org.apache.lucene.document.Document> getDocuments()
                                                                 throws java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        fr.paris.lutece.portal.service.message.SiteMessageException
Get the document list

Specified by:
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Returns:
The list of lucene documents
Throws:
java.io.IOException
java.lang.InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

getDocument

public static org.apache.lucene.document.Document getDocument(int nIdFaq,
                                                              QuestionAnswer questionAnswer,
                                                              java.lang.String strUrl,
                                                              java.lang.String strRoleKey,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                                       throws java.io.IOException,
                                                              java.lang.InterruptedException
Builds a document which will be used by Lucene during the indexing of the question/answer list

Parameters:
nIdFaq - The Faq Id
questionAnswer - the QuestionAnswer to index
strUrl - the url of the subject
strRoleKey - The role key
plugin - The Plugin
Returns:
A Lucene Document containing QuestionAnswer Data
Throws:
java.io.IOException - The IO Exception
java.lang.InterruptedException - The InterruptedException

getDocument

public static org.apache.lucene.document.Document getDocument(Subject subject,
                                                              java.lang.String strRoleKey,
                                                              java.lang.String strUrl,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                                       throws java.io.IOException,
                                                              java.lang.InterruptedException
Builds a document which will be used by Lucene during the indexing of the subject list

Parameters:
subject - the Subject to index
strUrl - the url of the subject
strRoleKey - The role key
plugin - The Plugin
Returns:
The Lucene Document containing Subject data
Throws:
java.io.IOException - The IO Exception
java.lang.InterruptedException - The InterruptedException

getName

public java.lang.String getName()
Get the name of the indexer.

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

getVersion

public java.lang.String getVersion()
Get the version of the indexer

Specified by:
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer
Returns:
The version number

isEnable

public boolean isEnable()
Get the state of indexer

Specified by:
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer
Returns:
Return true if the indexer is enabled, false else.


Copyright © 2009 Mairie de Paris. All Rights Reserved.