org.gcube.portlets.user.results.server.servlet
public class NewresultsetServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ResultsetService
NewresultsetServiceImpl Implementation of the services for the portlet| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
NewresultsetServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
decreaseStartingPoint() |
List<BasketModelItem> |
getBasketContent(String basketId)
Return a List
|
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.
|
TreeMap<String,List<String>> |
getContentURLs(GenericTreeRecordBean recordBean) |
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,
|
GenericTreeRecordBean |
getObjectInfo(String objectURI) |
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
|
protected String |
getXSLT(ObjectType type) |
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) |
String |
transformMetadata(String payload,
ObjectType type) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic 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
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 descriptionpublic 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 annotationspublic 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 nextpublic String getObjectsPayload(String objectURI)
getObjectsPayload in interface ResultsetServicepublic GenericTreeRecordBean getObjectInfo(String objectURI)
getObjectInfo in interface ResultsetServicepublic TreeMap<String,List<String>> getContentURLs(GenericTreeRecordBean recordBean)
getContentURLs in interface ResultsetServicepublic ResultsContainer getResultsFromSession()
getResultsFromSession in interface ResultsetServiceResultsContainer (Vectorprotected 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.WorkspaceFolderNotFoundExceptionorg.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorExceptionorg.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 errorpublic 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()
protected String getXSLT(ObjectType type) throws IOException
IOExceptionpublic String transformMetadata(String payload, ObjectType type)
transformMetadata in interface ResultsetServiceCopyright © 2013. All Rights Reserved.