org.gcube.application.framework.search.library.impl
Class ResultSetConsumer

java.lang.Object
  extended by org.gcube.application.framework.search.library.impl.ResultSetConsumer
All Implemented Interfaces:
ResultSetConsumerI

public class ResultSetConsumer
extends Object
implements ResultSetConsumerI


Field Summary
protected static org.gcube.common.core.utils.logging.GCUBELog logger
          Object logger.
protected static AtomicInteger SMid
           
 
Constructor Summary
ResultSetConsumer(String RSLocator, String searchType)
           
 
Method Summary
 ArrayList<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getAllResultIds(org.gcube.application.framework.core.session.ASLSession session)
           
 List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getFirst(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session)
           
 List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getNext(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session)
           
 int getNumOfResultsRead()
           
 List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getPrevious(int n, DisableButtons dis, org.gcube.application.framework.core.session.ASLSession session)
           
 List<String> getResultsToText(int n, int offset, org.gcube.application.framework.core.session.ASLSession session)
           
 boolean getTotalRead()
           
static void removeSessionVariables(org.gcube.application.framework.core.session.ASLSession session)
           
 void setGenericSearchType(String gst)
           
 void setOnlyPresentables()
           
 void setWindowSize(int windowSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger.


SMid

protected static AtomicInteger SMid
Constructor Detail

ResultSetConsumer

public ResultSetConsumer(String RSLocator,
                         String searchType)
                  throws URISyntaxException,
                         gRS2CreationException
Throws:
URISyntaxException
gRS2CreationException
Method Detail

removeSessionVariables

public static void removeSessionVariables(org.gcube.application.framework.core.session.ASLSession session)
Parameters:
session - the D4Science session to be used in order to remove the attributes

getFirst

public List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getFirst(int n,
                                                                                                   DisableButtons dis,
                                                                                                   org.gcube.application.framework.core.session.ASLSession session)
                                                                                            throws gRS2NoRecordReadWithinTimeIntervalException,
                                                                                                   gRS2RecordDefinitionException,
                                                                                                   gRS2ReaderException,
                                                                                                   gRS2AvailableRecordsRetrievalException
Specified by:
getFirst in interface ResultSetConsumerI
Returns:
Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException

getNext

public List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getNext(int n,
                                                                                                  DisableButtons dis,
                                                                                                  org.gcube.application.framework.core.session.ASLSession session)
                                                                                           throws gRS2NoRecordReadWithinTimeIntervalException,
                                                                                                  gRS2RecordDefinitionException,
                                                                                                  gRS2ReaderException,
                                                                                                  gRS2AvailableRecordsRetrievalException
Specified by:
getNext in interface ResultSetConsumerI
Returns:
Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException

getPrevious

public List<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getPrevious(int n,
                                                                                                      DisableButtons dis,
                                                                                                      org.gcube.application.framework.core.session.ASLSession session)
                                                                                               throws gRS2NoRecordReadWithinTimeIntervalException,
                                                                                                      gRS2RecordDefinitionException,
                                                                                                      gRS2ReaderException,
                                                                                                      gRS2AvailableRecordsRetrievalException
Specified by:
getPrevious in interface ResultSetConsumerI
Returns:
Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException

getResultsToText

public List<String> getResultsToText(int n,
                                     int offset,
                                     org.gcube.application.framework.core.session.ASLSession session)
                              throws gRS2ReaderException,
                                     gRS2RecordDefinitionException,
                                     gRS2BufferException
Specified by:
getResultsToText in interface ResultSetConsumerI
Returns:
Throws:
gRS2ReaderException
gRS2RecordDefinitionException
gRS2BufferException

setOnlyPresentables

public void setOnlyPresentables()
Specified by:
setOnlyPresentables in interface ResultSetConsumerI

setWindowSize

public void setWindowSize(int windowSize)
                   throws gr.uoa.di.madgik.grs.reader.GRS2ReaderInvalidArgumentException
Specified by:
setWindowSize in interface ResultSetConsumerI
Throws:
gr.uoa.di.madgik.grs.reader.GRS2ReaderInvalidArgumentException

getAllResultIds

public ArrayList<org.gcube.application.framework.contentmanagement.content.impl.DigitalObject> getAllResultIds(org.gcube.application.framework.core.session.ASLSession session)
Specified by:
getAllResultIds in interface ResultSetConsumerI

setGenericSearchType

public void setGenericSearchType(String gst)
Specified by:
setGenericSearchType in interface ResultSetConsumerI

getNumOfResultsRead

public int getNumOfResultsRead()
Specified by:
getNumOfResultsRead in interface ResultSetConsumerI

getTotalRead

public boolean getTotalRead()
Specified by:
getTotalRead in interface ResultSetConsumerI


Copyright © 2013. All Rights Reserved.