Class DataProvider
- java.lang.Object
-
- nl.b3p.commons.oai.dataprovider20.DataProvider
-
- All Implemented Interfaces:
DataProviderInterface
public class DataProvider extends Object implements DataProviderInterface
Data provider class
-
-
Constructor Summary
Constructors Constructor Description DataProvider(Identity config, RecordFactory rf)
ConstructorDataProvider(Identity config, RecordFactory rf, Document doc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Element
getRecord(String handle, String metaformat)
Element
identify()
Element
listIdentifiers(String resumptionToken)
Element
listIdentifiers(String fileafter, String filebefore, String setspec, String metaformat)
Element
listMetadataFormats(String id)
Element
listRecords(String resumptionToken)
Element
listRecords(String fileafter, String filebefore, String setspec, String metaformat)
Element
listSets()
Element
listSets(String resumptionToken)
void
setDocument(Document doc)
-
-
-
Constructor Detail
-
DataProvider
public DataProvider(Identity config, RecordFactory rf, Document doc)
Constructor.- Parameters:
config
-rf
-doc
-
-
DataProvider
public DataProvider(Identity config, RecordFactory rf)
Constructor- Parameters:
config
-rf
-
-
-
Method Detail
-
setDocument
public void setDocument(Document doc)
- Parameters:
doc
-
-
identify
public Element identify()
- Specified by:
identify
in interfaceDataProviderInterface
- Returns:
- Element
-
listSets
public Element listSets() throws OAIError
- Specified by:
listSets
in interfaceDataProviderInterface
- Returns:
- Element
- Throws:
OAIError
-
listSets
public Element listSets(String resumptionToken) throws OAIError
- Specified by:
listSets
in interfaceDataProviderInterface
- Parameters:
resumptionToken
-- Returns:
- Element
- Throws:
OAIError
-
listMetadataFormats
public Element listMetadataFormats(String id) throws OAIError
- Specified by:
listMetadataFormats
in interfaceDataProviderInterface
- Parameters:
id
-- Returns:
- Element
- Throws:
OAIError
-
listIdentifiers
public Element listIdentifiers(String fileafter, String filebefore, String setspec, String metaformat) throws OAIError
- Specified by:
listIdentifiers
in interfaceDataProviderInterface
- Parameters:
fileafter
-filebefore
-setspec
-metaformat
-- Returns:
- Element
- Throws:
OAIError
-
listIdentifiers
public Element listIdentifiers(String resumptionToken) throws OAIError
- Specified by:
listIdentifiers
in interfaceDataProviderInterface
- Parameters:
resumptionToken
-- Returns:
- Element
- Throws:
OAIError
-
listRecords
public Element listRecords(String fileafter, String filebefore, String setspec, String metaformat) throws OAIError
- Specified by:
listRecords
in interfaceDataProviderInterface
- Parameters:
fileafter
-filebefore
-setspec
-metaformat
-- Returns:
- Element
- Throws:
OAIError
-
listRecords
public Element listRecords(String resumptionToken) throws OAIError
- Specified by:
listRecords
in interfaceDataProviderInterface
- Parameters:
resumptionToken
-- Returns:
- Element
- Throws:
OAIError
-
-