|
||||||||||
| 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
|
static String |
DEFAULT_BASKET_DIR
|
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 |
SESSION_DEFAULT_BASKET_DIR
|
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()
|
protected org.gcube.application.framework.core.session.ASLSession |
getASLSession()
the current D4SSession |
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. |
ContentInfo |
getContentToSave(String objectURI)
|
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 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.common.homelibrary.home.workspace.Workspace |
getWorkspaceArea()
|
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)
|
| 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 DEFAULT_BASKET_DIR
public static final String SESSION_DEFAULT_BASKET_DIR
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 ResultsetServiceprotected org.gcube.application.framework.core.session.ASLSession getASLSession()
public 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 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 (Vector
protected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspaceArea()
throws org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.common.homelibrary.home.exceptions.InternalErrorException,
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
WorkspaceNotFoundException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
org.gcube.common.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()
protected String getXSLT(ObjectType type)
throws IOException
IOException
public String transformMetadata(String payload,
ObjectType type)
transformMetadata in interface ResultsetServicepublic ContentInfo getContentToSave(String objectURI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||