org.jboss.portal.search.test
Class DummyFederatedSearch

java.lang.Object
  extended by org.jboss.portal.search.test.DummyFederatedSearch
All Implemented Interfaces:
FederatedIndexer, FederatedSearcher

public class DummyFederatedSearch
extends java.lang.Object
implements FederatedSearcher, FederatedIndexer

Version:
$Revision: 8784 $
Author:
Thomas Heute

Constructor Summary
DummyFederatedSearch()
           
 
Method Summary
 void createIndex()
          The create method should index the required components
 void destroyIndex()
          Method called when this federated search is not used anymore.
 LocalizedString getDisplayName()
          Get a localized name for this federated search
 java.lang.String getId()
          Get the ID for this federated search
 Info getInfo()
          Info should return information on the current status if the federated search
 java.lang.String getMarkup(ResultSet results, int markupLevel)
           
 QueryConverter getQueryConverter()
          Returns the query converter to apply on the Query
 ResultSet search(Query query)
          From the query object this method is responsible to return the results of the query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyFederatedSearch

public DummyFederatedSearch()
Method Detail

createIndex

public void createIndex()
                 throws IndexingException
Description copied from interface: FederatedIndexer
The create method should index the required components

Specified by:
createIndex in interface FederatedIndexer
Throws:
IndexingException

destroyIndex

public void destroyIndex()
                  throws IndexingException
Description copied from interface: FederatedIndexer
Method called when this federated search is not used anymore. This could be the place to destroy any index

Specified by:
destroyIndex in interface FederatedIndexer
Throws:
IndexingException

getId

public java.lang.String getId()
Description copied from interface: FederatedIndexer
Get the ID for this federated search

Specified by:
getId in interface FederatedIndexer
Specified by:
getId in interface FederatedSearcher
Returns:
String representing this particular federated search

getInfo

public Info getInfo()
Description copied from interface: FederatedIndexer
Info should return information on the current status if the federated search

Specified by:
getInfo in interface FederatedIndexer
Returns:

getMarkup

public java.lang.String getMarkup(ResultSet results,
                                  int markupLevel)

search

public ResultSet search(Query query)
Description copied from interface: FederatedSearcher
From the query object this method is responsible to return the results of the query

Specified by:
search in interface FederatedSearcher
Returns:

getDisplayName

public LocalizedString getDisplayName()
Description copied from interface: FederatedIndexer
Get a localized name for this federated search

Specified by:
getDisplayName in interface FederatedIndexer
Specified by:
getDisplayName in interface FederatedSearcher
Returns:
String

getQueryConverter

public QueryConverter getQueryConverter()
Description copied from interface: FederatedSearcher
Returns the query converter to apply on the Query

Specified by:
getQueryConverter in interface FederatedSearcher
Returns: