org.gcube.portlets.user.collectionexplorer.server
Class CollectionServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by 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

Field Summary
static String BUFFER_END
           
static String CM_READER_INSTANCE
           
static String GCUBEDOCS_CACHED
           
static String RESULTS_PER_PAGE_ATTRIBUTE_NAME
           
static String TM_READER_INSTANCE
           
static String TOTAL_NUMBER
           
static String TREES_CACHED
           
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
CollectionServiceImpl()
           
 
Method Summary
 int getbufferEndSize()
          returns buffer size
 Client_DigiObjectInfo getDigitalObjectOnDemand(String objectid, String belongsTo, BasketModelItemType type)
          used to get additional information on demand
static Document getDocumentGivenXML(String result)
           
 MetadataDescriptor getMetadataFormatAndLang(String md_oid, String belongsTo)
           
 ResultsContainer getNextTreeItem(String collectionID, int mode, int index)
           
 String getObjectsPayload(String objectURI)
           
protected  String getRealPath()
           
 void initializeTreeManager(String collectionId)
           
protected  LinkedBlockingQueue<org.gcube.data.trees.data.Tree> initializeTreeManager(String collectionId, org.gcube.common.scope.impl.ScopeBean scope)
           
 boolean isbufferEndReached()
          returns if buffer completed its work
 void setbufferEndReached(boolean value)
          set buffer completed its work
 void setbufferEndSize(int size)
          set buffer size
 
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
 

Field Detail

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
Constructor Detail

CollectionServiceImpl

public CollectionServiceImpl()
Method Detail

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.