|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.user.results.server.servlet.NewresultsetServiceImpl
public class NewresultsetServiceImpl
The NewresultsetServiceImpl Implementation of the services for the portlet
| Field Summary | |
|---|---|
static String |
ANN_COLS_SCOPED_IDS_ATTRIBUTE_NAME
|
static String |
CURRENT_OPEN_BASKET_ATTRIBUTE_NAME
|
static String |
CURRENT_QUERY
|
static String |
CURRENT_RESULTS_NO
|
protected static Date |
lastCall
used to avoid multiple IS request for the Storage EPR discovery, if multiple request come within 1 minute it uses the same EPR |
static String |
RESULTS_PER_PAGE_ATTRIBUTE_NAME
|
protected String |
SERVICE_URI
used to avoid multiple IS request for the Storage EPR discovery, if multiple request come within 1 minute it uses the same EPR |
static String |
WORKSPACE_AREA_ATTRIBUTE_NAME
|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
NewresultsetServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
decreaseStartingPoint()
|
List<BasketModelItem> |
getBasketContent(String basketId)
|
String[] |
getCollectionNames()
If you have search for each collection, you request the available collection names in order to present them in the drop down menu. |
String |
getDefaultBasket()
reads from the file system and returns the user workspace as TreeNode object returns the Default basket if if there is no basket in session, else the basket in session id |
Client_DigiObjectInfo |
getDigitalObjectInitialInfo(int currPosition)
used to get the additional info for the digital objects, |
String |
getObjectsPayload(String objectURI)
|
QueryDescriptor |
getQueryDescFromSession()
|
protected String |
getRealPath()
|
ResultsContainer |
getResultFromSearchService(int mode)
Queries the search service and get the results |
ResultsContainer |
getResultsFromSession()
reads the records from the session |
ResultNumber |
getResultsNo()
|
protected org.gcube.portlets.user.homelibrary.home.workspace.Workspace |
getWorkspaceArea()
read the external links from the session, transform the ones that matches the properties file into the actual links to use for redirecting |
TreeNode |
getWorkspaceTree()
reads from the file system and returns the user workspace as TreeNode object |
void |
increaseStartingPoint()
|
void |
init()
|
boolean |
isSearchActive()
Check whether the porlet has been loaded after a search or not |
void |
loadResults(String qid)
Changes the internal query (in the query group) to be presented - based on collection name |
BasketSerializable |
readBasketFromSession()
need to get the saved elements from HL and the new elements from the session |
Boolean |
removeBasketItemFromSession(BasketModelItem item)
remove a single item in session |
Integer |
retrieveStartingPoint()
From where in the results to start presenting |
boolean |
saveBasket()
Calls the home library to save the current basket in session permanently * |
protected void |
storeBasketInSession(BasketSerializable basket)
|
Boolean |
storeBasketItemInSession(BasketModelItem item)
add a single item in session |
void |
storeStartingPoint(Integer start)
From where in the results to start presenting |
void |
submitSimpleQuery(String queryTerm)
|
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
|---|
checkPermutationStrongName, 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 |
|---|
destroy, 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 |
| Field Detail |
|---|
public static final String WORKSPACE_AREA_ATTRIBUTE_NAME
public static final String CURRENT_OPEN_BASKET_ATTRIBUTE_NAME
public static final String ANN_COLS_SCOPED_IDS_ATTRIBUTE_NAME
public static final String CURRENT_QUERY
public static final String CURRENT_RESULTS_NO
public static final String RESULTS_PER_PAGE_ATTRIBUTE_NAME
protected static Date lastCall
protected String SERVICE_URI
| Constructor Detail |
|---|
public NewresultsetServiceImpl()
| Method Detail |
|---|
public void decreaseStartingPoint()
public List<BasketModelItem> getBasketContent(String basketId)
getBasketContent in interface ResultsetServicepublic String[] getCollectionNames()
getCollectionNames in interface ResultsetServicepublic QueryDescriptor getQueryDescFromSession()
getQueryDescFromSession in interface ResultsetServicequerDescription - the query description
public String getDefaultBasket()
getDefaultBasket in interface ResultsetServicepublic Client_DigiObjectInfo getDigitalObjectInitialInfo(int currPosition)
getDigitalObjectInitialInfo in interface ResultsetServicecurrPosition - in resultset
object's mime type
object's length (in bytes)
amount of available annotations
public ResultsContainer getResultFromSearchService(int mode)
getResultFromSearchService in interface ResultsetServicemode - if mode == 0 get the first record of the resultset, mode == 1 get the previous, mode = 2 get the next
public String getObjectsPayload(String objectURI)
getObjectsPayload in interface ResultsetServicepublic ResultsContainer getResultsFromSession()
getResultsFromSession in interface ResultsetServiceResultsContainer (Vector
protected org.gcube.portlets.user.homelibrary.home.workspace.Workspace getWorkspaceArea()
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundExceptionpublic TreeNode getWorkspaceTree()
getWorkspaceTree in interface ResultsetServicepublic void increaseStartingPoint()
public void init()
init in class javax.servlet.GenericServletpublic boolean isSearchActive()
isSearchActive in interface ResultsetServicepublic void loadResults(String qid)
loadResults in interface ResultsetServiceqid - .public BasketSerializable readBasketFromSession()
readBasketFromSession in interface ResultsetServicebasket -
public Boolean removeBasketItemFromSession(BasketModelItem item)
removeBasketItemFromSession in interface ResultsetServiceitem - TODO: check if any error
public Integer retrieveStartingPoint()
public boolean saveBasket()
saveBasket in interface ResultsetServiceprotected void storeBasketInSession(BasketSerializable basket)
basket - public Boolean storeBasketItemInSession(BasketModelItem item)
storeBasketItemInSession in interface ResultsetServiceitem - TODO: check if any errorpublic void storeStartingPoint(Integer start)
public ResultNumber getResultsNo()
getResultsNo in interface ResultsetServicepublic void submitSimpleQuery(String queryTerm)
submitSimpleQuery in interface ResultsetServicequeryTerm - the query term to searchprotected String getRealPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||