org.kuali.student.common.ui.client.service
Class CachingSearchService

java.lang.Object
  extended by org.kuali.student.common.ui.client.service.CachingSearchService
All Implemented Interfaces:
SearchRpcServiceAsync

public class CachingSearchService
extends Object
implements SearchRpcServiceAsync

Author:
Igor

Field Summary
private  HashMap<SearchRequest,SearchResult> cache
           
private static CachingSearchService INSTANCE
           
private  SearchRpcServiceAsync searchService
           
 
Constructor Summary
CachingSearchService()
           
 
Method Summary
 void cachingSearch(SearchRequest searchRequest, com.google.gwt.user.client.rpc.AsyncCallback<SearchResult> callback)
           
static CachingSearchService getSearchService()
           
 void search(SearchRequest searchRequest, com.google.gwt.user.client.rpc.AsyncCallback<SearchResult> callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static CachingSearchService INSTANCE

searchService

private SearchRpcServiceAsync searchService

cache

private HashMap<SearchRequest,SearchResult> cache
Constructor Detail

CachingSearchService

public CachingSearchService()
Method Detail

getSearchService

public static CachingSearchService getSearchService()

search

public void search(SearchRequest searchRequest,
                   com.google.gwt.user.client.rpc.AsyncCallback<SearchResult> callback)
Specified by:
search in interface SearchRpcServiceAsync

cachingSearch

public void cachingSearch(SearchRequest searchRequest,
                          com.google.gwt.user.client.rpc.AsyncCallback<SearchResult> callback)
Specified by:
cachingSearch in interface SearchRpcServiceAsync


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.