org.gcube.application.framework.search.library.impl
Class ResultSetConsumer
java.lang.Object
org.gcube.application.framework.search.library.impl.ResultSetConsumer
- All Implemented Interfaces:
- ResultSetConsumerI
public class ResultSetConsumer
- extends java.lang.Object
- implements ResultSetConsumerI
Constructor Summary |
ResultSetConsumer(java.lang.String RSLocator,
java.lang.String searchType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetConsumer
public ResultSetConsumer(java.lang.String RSLocator,
java.lang.String searchType)
throws java.net.URISyntaxException,
gRS2CreationException
- Throws:
java.net.URISyntaxException
gRS2CreationException
removeSessionVariables
public static void removeSessionVariables(ASLSession session)
- Parameters:
session
- the D4Science session to be used in order to remove the attributes
getFirst
public java.util.List<DigitalObject> getFirst(int n,
DisableButtons dis,
ASLSession session)
throws gRS2NoRecordReadWithinTimeIntervalException,
gRS2RecordDefinitionException,
gRS2ReaderException,
gRS2AvailableRecordsRetrievalException
- Specified by:
getFirst
in interface ResultSetConsumerI
- Returns:
-
- Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException
getNext
public java.util.List<DigitalObject> getNext(int n,
DisableButtons dis,
ASLSession session)
throws gRS2NoRecordReadWithinTimeIntervalException,
gRS2RecordDefinitionException,
gRS2ReaderException,
gRS2AvailableRecordsRetrievalException
- Specified by:
getNext
in interface ResultSetConsumerI
- Returns:
-
- Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException
getPrevious
public java.util.List<DigitalObject> getPrevious(int n,
DisableButtons dis,
ASLSession session)
throws gRS2NoRecordReadWithinTimeIntervalException,
gRS2RecordDefinitionException,
gRS2ReaderException,
gRS2AvailableRecordsRetrievalException
- Specified by:
getPrevious
in interface ResultSetConsumerI
- Returns:
-
- Throws:
gRS2NoRecordReadWithinTimeIntervalException
gRS2RecordDefinitionException
gRS2ReaderException
gRS2AvailableRecordsRetrievalException
getResultsToText
public java.util.List<java.lang.String> getResultsToText(int n,
int offset,
ASLSession session)
throws gRS2ReaderException,
gRS2RecordDefinitionException,
gRS2BufferException
- Specified by:
getResultsToText
in interface ResultSetConsumerI
- Returns:
-
- Throws:
gRS2ReaderException
gRS2RecordDefinitionException
gRS2BufferException
getAllResultIds
public java.util.ArrayList<DigitalObject> getAllResultIds(ASLSession session)
- Specified by:
getAllResultIds
in interface ResultSetConsumerI
setGenericSearchType
public void setGenericSearchType(java.lang.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