org.gcube.portlets.user.collectionexplorer.server
Class CollectionServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.user.collectionexplorer.server.CollectionServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, CollectionService
public class CollectionServiceImpl
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements CollectionService
The server side implementation of the RPC service.
- See Also:
- Serialized Form
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
perThreadRequest, perThreadResponse |
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, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESULTS_PER_PAGE_ATTRIBUTE_NAME
public static final String RESULTS_PER_PAGE_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
GCUBEDOCS_CACHED
public static final String GCUBEDOCS_CACHED
- See Also:
- Constant Field Values
TREES_CACHED
public static final String TREES_CACHED
- See Also:
- Constant Field Values
BUFFER_END
public static final String BUFFER_END
- See Also:
- Constant Field Values
TOTAL_NUMBER
public static final String TOTAL_NUMBER
- See Also:
- Constant Field Values
CM_READER_INSTANCE
public static final String CM_READER_INSTANCE
- See Also:
- Constant Field Values
TM_READER_INSTANCE
public static final String TM_READER_INSTANCE
- See Also:
- Constant Field Values
CollectionServiceImpl
public CollectionServiceImpl()
initializeTreeManager
public void initializeTreeManager(String collectionId)
- Specified by:
initializeTreeManager
in interface CollectionService
getObjectsPayload
public String getObjectsPayload(String objectURI)
- Specified by:
getObjectsPayload
in interface CollectionService
initializeTreeManager
protected LinkedBlockingQueue<org.gcube.data.trees.data.Tree> initializeTreeManager(String collectionId,
org.gcube.common.scope.impl.ScopeBean scope)
throws Exception
- Throws:
Exception
getNextTreeItem
public ResultsContainer getNextTreeItem(String collectionID,
int mode,
int index)
- Specified by:
getNextTreeItem
in interface CollectionService
- Parameters:
collectionID
- mode
-
- Returns:
getMetadataFormatAndLang
public MetadataDescriptor getMetadataFormatAndLang(String md_oid,
String belongsTo)
- Specified by:
getMetadataFormatAndLang
in interface CollectionService
- Parameters:
md_oid
- MetadataCollectionId
-
- Returns:
isbufferEndReached
public boolean isbufferEndReached()
- returns if buffer completed its work
- Returns:
setbufferEndReached
public void setbufferEndReached(boolean value)
- set buffer completed its work
setbufferEndSize
public void setbufferEndSize(int size)
- set buffer size
getbufferEndSize
public int getbufferEndSize()
- returns buffer size
getRealPath
protected String getRealPath()
getDocumentGivenXML
public static Document getDocumentGivenXML(String result)
getDigitalObjectOnDemand
public Client_DigiObjectInfo getDigitalObjectOnDemand(String objectid,
String belongsTo,
BasketModelItemType type)
- Description copied from interface:
CollectionService
- used to get additional information on demand
- Specified by:
getDigitalObjectOnDemand
in interface CollectionService
- Returns:
- a DigiObjectInfo instance for a given oid
Copyright © 2014. All Rights Reserved.