org.jboss.portal.search.test
Class DummySearchFederated

java.lang.Object
  extended by org.jboss.portal.search.test.DummySearchFederated
All Implemented Interfaces:
SearchFederated

public class DummySearchFederated
extends java.lang.Object
implements SearchFederated

Version:
$Revision$
Author:
Thomas Heute

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.portal.search.SearchFederated
SearchFederated.MarkupLevel
 
Constructor Summary
DummySearchFederated()
           
 
Method Summary
 void create()
          The create method should index the required components
 void destroy()
          Method called when this federated search is not used anymore.
 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)
          TODO: Subject to change...
 java.lang.String getName(java.util.Locale locale)
          Get a localized name for this federated search
 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

DummySearchFederated

public DummySearchFederated()
Method Detail

create

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

Specified by:
create in interface SearchFederated
Throws:
IndexingException

destroy

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

Specified by:
destroy in interface SearchFederated
Throws:
IndexingException

getId

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

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

getInfo

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

Specified by:
getInfo in interface SearchFederated
Returns:

getMarkup

public java.lang.String getMarkup(ResultSet results,
                                  int markupLevel)
Description copied from interface: SearchFederated
TODO: Subject to change... get the markup fragment for this federated search. A markup level is used to define different amount of information to provide.

Specified by:
getMarkup in interface SearchFederated
Returns:

search

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

Specified by:
search in interface SearchFederated
Returns:

getName

public java.lang.String getName(java.util.Locale locale)
Description copied from interface: SearchFederated
Get a localized name for this federated search

Specified by:
getName in interface SearchFederated
Returns:
String