Package org.mycore.oai
Class MCROAIAdapter
java.lang.Object
org.mycore.oai.MCROAIAdapter
- All Implemented Interfaces:
org.mycore.oai.pmh.dataprovider.OAIAdapter
Default MyCoRe
OAIAdapter
implementation.- Author:
- Matthias Eichner
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
static int
protected MCROAIIdentify
protected static final Logger
protected MCROAIObjectManager
static final String
protected MCROAISearchManager
protected MCROAISetManager
protected static final ZoneId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Header>
getHeaders
(String resumptionToken) org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Header>
getHeaders
(org.mycore.oai.pmh.MetadataFormat format, org.mycore.oai.pmh.Set set, Instant from, Instant until) org.mycore.oai.pmh.MetadataFormat
getMetadataFormat
(String prefix) List<org.mycore.oai.pmh.MetadataFormat>
List<org.mycore.oai.pmh.MetadataFormat>
getMetadataFormats
(String identifier) org.mycore.oai.pmh.Record
org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Record>
getRecords
(String resumptionToken) org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Record>
getRecords
(org.mycore.oai.pmh.MetadataFormat format, org.mycore.oai.pmh.Set set, Instant from, Instant until) org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Set>
getSets()
org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Set>
void
Initialize the adapter.boolean
-
Field Details
-
LOGGER
-
UTC_ZONE
-
PREFIX
- See Also:
-
DEFAULT_PARTITION_SIZE
public static int DEFAULT_PARTITION_SIZE -
baseURL
-
identify
-
configPrefix
-
searchManager
-
objectManager
-
setManager
-
-
Constructor Details
-
MCROAIAdapter
public MCROAIAdapter()
-
-
Method Details
-
init
Initialize the adapter.- Parameters:
baseURL
- baseURL of the adapter e.g. http://localhost:8291/oai2oaiConfiguration
- specifies the OAI-PMH configuration
-
getSetManager
-
moveNamespaceDeclarationsToRoot
public boolean moveNamespaceDeclarationsToRoot() -
getObjectManager
-
getSearchManager
-
getConfigPrefix
-
getIdentify
- Specified by:
getIdentify
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
-
getSets
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Set> getSets() throws org.mycore.oai.pmh.NoSetHierarchyException- Specified by:
getSets
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.NoSetHierarchyException
-
getSets
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Set> getSets(String resumptionToken) throws org.mycore.oai.pmh.NoSetHierarchyException, org.mycore.oai.pmh.BadResumptionTokenException - Specified by:
getSets
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.NoSetHierarchyException
org.mycore.oai.pmh.BadResumptionTokenException
-
getSet
public MCRSet getSet(String setSpec) throws org.mycore.oai.pmh.NoSetHierarchyException, org.mycore.oai.pmh.NoRecordsMatchException - Specified by:
getSet
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.NoSetHierarchyException
org.mycore.oai.pmh.NoRecordsMatchException
-
getMetadataFormats
- Specified by:
getMetadataFormats
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
-
getMetadataFormat
public org.mycore.oai.pmh.MetadataFormat getMetadataFormat(String prefix) throws org.mycore.oai.pmh.CannotDisseminateFormatException - Specified by:
getMetadataFormat
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.CannotDisseminateFormatException
-
getMetadataFormatMap
-
getMetadataFormats
public List<org.mycore.oai.pmh.MetadataFormat> getMetadataFormats(String identifier) throws org.mycore.oai.pmh.IdDoesNotExistException, org.mycore.oai.pmh.NoMetadataFormatsException - Specified by:
getMetadataFormats
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.IdDoesNotExistException
org.mycore.oai.pmh.NoMetadataFormatsException
-
getRecord
public org.mycore.oai.pmh.Record getRecord(String identifier, org.mycore.oai.pmh.MetadataFormat format) throws org.mycore.oai.pmh.CannotDisseminateFormatException, org.mycore.oai.pmh.IdDoesNotExistException - Specified by:
getRecord
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.CannotDisseminateFormatException
org.mycore.oai.pmh.IdDoesNotExistException
-
getRecords
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Record> getRecords(String resumptionToken) throws org.mycore.oai.pmh.BadResumptionTokenException - Specified by:
getRecords
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.BadResumptionTokenException
-
getRecords
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Record> getRecords(org.mycore.oai.pmh.MetadataFormat format, org.mycore.oai.pmh.Set set, Instant from, Instant until) throws org.mycore.oai.pmh.CannotDisseminateFormatException, org.mycore.oai.pmh.NoSetHierarchyException, org.mycore.oai.pmh.NoRecordsMatchException - Specified by:
getRecords
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.CannotDisseminateFormatException
org.mycore.oai.pmh.NoSetHierarchyException
org.mycore.oai.pmh.NoRecordsMatchException
-
getHeaders
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Header> getHeaders(String resumptionToken) throws org.mycore.oai.pmh.BadResumptionTokenException - Specified by:
getHeaders
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.BadResumptionTokenException
-
getHeaders
public org.mycore.oai.pmh.OAIDataList<org.mycore.oai.pmh.Header> getHeaders(org.mycore.oai.pmh.MetadataFormat format, org.mycore.oai.pmh.Set set, Instant from, Instant until) throws org.mycore.oai.pmh.CannotDisseminateFormatException, org.mycore.oai.pmh.NoSetHierarchyException, org.mycore.oai.pmh.NoRecordsMatchException - Specified by:
getHeaders
in interfaceorg.mycore.oai.pmh.dataprovider.OAIAdapter
- Throws:
org.mycore.oai.pmh.CannotDisseminateFormatException
org.mycore.oai.pmh.NoSetHierarchyException
org.mycore.oai.pmh.NoRecordsMatchException
-