org.eaglei.ui.gwt.search.server
Class SearchServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.eaglei.ui.gwt.search.server.SearchServlet
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, SearchServiceRemote

public class SearchServlet
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements SearchServiceRemote

Implementation of SearchService.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
SearchServlet()
           
 
Method Summary
 org.eaglei.search.provider.SearchCounts count(java.lang.String sessionId, org.eaglei.search.provider.SearchCountRequest request)
           
 void destroy()
           
 java.util.List<org.eaglei.model.EIEntity> getInstitutions()
           
 java.util.List<org.eaglei.model.EIClass> getTopLevelSearchCategories()
           
 void init()
           
 ClientSearchResultSet search(java.lang.String sessionId, org.eaglei.search.provider.SearchRequest request)
          Executes the specified search request and returns a SearchResultSet.
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchServlet

public SearchServlet()
Method Detail

init

public void init()
Overrides:
init in class javax.servlet.GenericServlet

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

getInstitutions

public java.util.List<org.eaglei.model.EIEntity> getInstitutions()
                                                          throws LoggedException,
                                                                 InvalidSessionIdException
Specified by:
getInstitutions in interface SearchServiceRemote
Throws:
LoggedException
InvalidSessionIdException

getTopLevelSearchCategories

public java.util.List<org.eaglei.model.EIClass> getTopLevelSearchCategories()
                                                                     throws LoggedException
Specified by:
getTopLevelSearchCategories in interface SearchServiceRemote
Throws:
LoggedException

search

public ClientSearchResultSet search(java.lang.String sessionId,
                                    org.eaglei.search.provider.SearchRequest request)
                             throws InvalidSessionIdException,
                                    LoggedException
Description copied from interface: SearchServiceRemote
Executes the specified search request and returns a SearchResultSet.

Specified by:
search in interface SearchServiceRemote
request - The search request.
Returns:
Set of search results. Will be empty before init has been called.
Throws:
InvalidSessionIdException
LoggedException

count

public org.eaglei.search.provider.SearchCounts count(java.lang.String sessionId,
                                                     org.eaglei.search.provider.SearchCountRequest request)
                                              throws InvalidSessionIdException,
                                                     LoggedException
Specified by:
count in interface SearchServiceRemote
Throws:
InvalidSessionIdException
LoggedException


Copyright © 2009-2010 Eagle-I. All Rights Reserved.