org.mycore.backend.hibernate
Class MCRHIBResumptionTokenStore
java.lang.Object
org.mycore.backend.hibernate.MCRHIBResumptionTokenStore
- All Implemented Interfaces:
- MCROAIResumptionTokenStore
public class MCRHIBResumptionTokenStore
- extends Object
- implements MCROAIResumptionTokenStore
This class implements the MCRHIBResumptionTokenStore
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static Logger logger
config
static MCRConfiguration config
MCRHIBResumptionTokenStore
public MCRHIBResumptionTokenStore()
- The constructor for the class MCRSQLClassificationStore. It reads the
classification configuration and checks the table names.
deleteOutdatedTokens
public void deleteOutdatedTokens()
- Specified by:
deleteOutdatedTokens in interface MCROAIResumptionTokenStore
getResumptionTokenHits
public final List<String[]> getResumptionTokenHits(String resumptionTokenID,
int requestedSize,
int maxResults)
- Specified by:
getResumptionTokenHits in interface MCROAIResumptionTokenStore
getPrefix
public String getPrefix(String token)
- Specified by:
getPrefix in interface MCROAIResumptionTokenStore
createResumptionToken
public final void createResumptionToken(String id,
String prefix,
String instance,
List<?> resultList)
- The method create a new MCRResumptionToken in the datastore.
- Specified by:
createResumptionToken in interface MCROAIResumptionTokenStore
- Parameters:
id: - the id of an ResumptionTokenprefix: - prefix of resumptionToken type, fg. "set"instance: - String of OAI-instanceresultList: - List delivered of OAIQueryService for the new resumptionToken