org.openprivacy.reptile.services
Class ReptileSearchService

java.lang.Object
  |
  +--org.openprivacy.reptile.services.ReptileSearchService

public class ReptileSearchService
extends java.lang.Object

Provides a search service that 3rd parties (peers, developers) can work with.

Version:
$Id: ReptileSearchService.java,v 1.3 2002/03/17 07:29:07 burton Exp $
Author:
Kevin A. Burton

Field Summary
static java.lang.String[] ADVANCED_SEARCH_REQUESTS
           
static org.jxta.bridge.ServiceDescriptor DESCRIPTOR
           
static java.lang.String[] SEARCH_PROVIDERS
           
 
Constructor Summary
ReptileSearchService()
          Create a new ReptileSearchService instance.
 
Method Summary
 java.lang.String[] getAdvancedSearchRequests()
          Get the advanced search request that are supported.
 int getResultCount(java.lang.String handle)
          Get the result count for this.
 java.lang.String[] getSearchProviders()
          Return the list of providers this service supports
 SearchRecord[] records(java.lang.String handle, int begin, int end)
          Get the give records and return them as an array of SearchRecords.
 java.lang.String search(java.lang.String criteria, java.lang.String provider)
          Given a name of an AdvancedSearchRequest, execute it.
 java.lang.String searchByAdvancedSearchRequest(java.lang.String name)
          Given a name of an AdvancedSearchRequest, execute it.
 java.lang.String serialize(java.lang.String handle, int page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final org.jxta.bridge.ServiceDescriptor DESCRIPTOR

ADVANCED_SEARCH_REQUESTS

public static final java.lang.String[] ADVANCED_SEARCH_REQUESTS

SEARCH_PROVIDERS

public static final java.lang.String[] SEARCH_PROVIDERS
Constructor Detail

ReptileSearchService

public ReptileSearchService()
Create a new ReptileSearchService instance.

Method Detail

searchByAdvancedSearchRequest

public java.lang.String searchByAdvancedSearchRequest(java.lang.String name)
                                               throws java.lang.Exception
Given a name of an AdvancedSearchRequest, execute it. We return a handle which can be used to navigate requests in the future.

java.lang.Exception

search

public java.lang.String search(java.lang.String criteria,
                               java.lang.String provider)
                        throws java.lang.Exception
Given a name of an AdvancedSearchRequest, execute it. We return a handle which can be used to navigate requests in the future.

java.lang.Exception

getAdvancedSearchRequests

public java.lang.String[] getAdvancedSearchRequests()
Get the advanced search request that are supported.


getSearchProviders

public java.lang.String[] getSearchProviders()
Return the list of providers this service supports


serialize

public java.lang.String serialize(java.lang.String handle,
                                  int page)
                           throws java.lang.Exception
java.lang.Exception

records

public SearchRecord[] records(java.lang.String handle,
                              int begin,
                              int end)
                       throws java.lang.Exception
Get the give records and return them as an array of SearchRecords.

java.lang.Exception

getResultCount

public int getResultCount(java.lang.String handle)
                   throws java.lang.Exception
Get the result count for this.

java.lang.Exception