org.gcube.portlets.user.results.client
Interface ResultsetServiceAsync


public interface ResultsetServiceAsync

ResultsetServiceAsync async version of ResultsetService

Version:
January 2009 (0.1)
Author:
Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it

Method Summary
 void getBasketContent(String basketId, com.google.gwt.user.client.rpc.AsyncCallback<List<BasketModelItem>> callback)
           
 void getCollectionNames(com.google.gwt.user.client.rpc.AsyncCallback<String[]> callback)
           
 void getDefaultBasket(com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
          return the id of the default basket
 void getDigitalObjectInitialInfo(int currPosition, com.google.gwt.user.client.rpc.AsyncCallback<Client_DigiObjectInfo> result)
          used to get the additional info for the digital objects,
 void getObjectsPayload(String objectURI, com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
           
 void getQueryDescFromSession(com.google.gwt.user.client.rpc.AsyncCallback<QueryDescriptor> callback)
           
 void getResultFromSearchService(int mode, com.google.gwt.user.client.rpc.AsyncCallback<ResultsContainer> result)
           
 void getResultsFromSession(com.google.gwt.user.client.rpc.AsyncCallback<ResultsContainer> callback)
          return A ResultsContainer (Vector, Optional paramters) which contains the current yet shown results (if any)
 void getResultsNo(com.google.gwt.user.client.rpc.AsyncCallback<ResultNumber> resNo)
           
 void getWorkspaceTree(com.google.gwt.user.client.rpc.AsyncCallback<TreeNode> callback)
           
 void isSearchActive(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
          Check whether the porlet has been loaded after a search or not return true if the user performed a search, false otherwise
 void loadResults(String qid, com.google.gwt.user.client.rpc.AsyncCallback callback)
           
 void readBasketFromSession(com.google.gwt.user.client.rpc.AsyncCallback<BasketSerializable> callback)
           
 void removeBasketItemFromSession(BasketModelItem toRemove, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
           
 void saveBasket(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
          Calls the home library to save the current basket in session permanently *
 void storeBasketItemInSession(BasketModelItem item, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
          add a single item in session
 void submitSimpleQuery(String queryTerm, com.google.gwt.user.client.rpc.AsyncCallback<Void> resNo)
           
 

Method Detail

isSearchActive

void isSearchActive(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Check whether the porlet has been loaded after a search or not return true if the user performed a search, false otherwise


getResultsFromSession

void getResultsFromSession(com.google.gwt.user.client.rpc.AsyncCallback<ResultsContainer> callback)
return A ResultsContainer (Vector, Optional paramters) which contains the current yet shown results (if any)


getResultFromSearchService

void getResultFromSearchService(int mode,
                                com.google.gwt.user.client.rpc.AsyncCallback<ResultsContainer> result)
Parameters:
mode - m
callback - c

getDigitalObjectInitialInfo

void getDigitalObjectInitialInfo(int currPosition,
                                 com.google.gwt.user.client.rpc.AsyncCallback<Client_DigiObjectInfo> result)
used to get the additional info for the digital objects,

Parameters:
currPosition - in resultset

getCollectionNames

void getCollectionNames(com.google.gwt.user.client.rpc.AsyncCallback<String[]> callback)
Parameters:
callback -

loadResults

void loadResults(String qid,
                 com.google.gwt.user.client.rpc.AsyncCallback callback)
Parameters:
qid -

getWorkspaceTree

void getWorkspaceTree(com.google.gwt.user.client.rpc.AsyncCallback<TreeNode> callback)

getDefaultBasket

void getDefaultBasket(com.google.gwt.user.client.rpc.AsyncCallback<String> callback)
return the id of the default basket

Parameters:
callback -

getBasketContent

void getBasketContent(String basketId,
                      com.google.gwt.user.client.rpc.AsyncCallback<List<BasketModelItem>> callback)
Parameters:
basketId -

readBasketFromSession

void readBasketFromSession(com.google.gwt.user.client.rpc.AsyncCallback<BasketSerializable> callback)

storeBasketItemInSession

void storeBasketItemInSession(BasketModelItem item,
                              com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
add a single item in session

Parameters:
item - item to add

removeBasketItemFromSession

void removeBasketItemFromSession(BasketModelItem toRemove,
                                 com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Parameters:
toRemove - item to remove

saveBasket

void saveBasket(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Calls the home library to save the current basket in session permanently *


getQueryDescFromSession

void getQueryDescFromSession(com.google.gwt.user.client.rpc.AsyncCallback<QueryDescriptor> callback)
Parameters:
callback -

getResultsNo

void getResultsNo(com.google.gwt.user.client.rpc.AsyncCallback<ResultNumber> resNo)
Parameters:
resNo -

submitSimpleQuery

void submitSimpleQuery(String queryTerm,
                       com.google.gwt.user.client.rpc.AsyncCallback<Void> resNo)
Parameters:
queryTerm -

getObjectsPayload

void getObjectsPayload(String objectURI,
                       com.google.gwt.user.client.rpc.AsyncCallback<String> callback)


Copyright © 2013. All Rights Reserved.