public class MetacatCatalog
extends ORG.oclc.oai.server.catalog.AbstractCatalog
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
homeDir |
| Constructor and Description |
|---|
MetacatCatalog(java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the repository
|
java.sql.Connection |
getConnection()
Returns a connection to the database.
|
java.lang.String |
getMaxDateUpdated()
Get the most recent date that the xml_documents table was updated
|
java.lang.String |
getRecord(java.lang.String oaiIdentifier,
java.lang.String metadataPrefix)
Retrieve the specified metadata for the specified oaiIdentifier
|
java.util.Vector |
getSchemaLocations(java.lang.String oaiIdentifier)
Retrieve a list of schemaLocation values associated with the specified
oaiIdentifier.
|
protected boolean |
isMetadataFile(java.io.File child)
Override this method if some files exist in the filesystem that aren't
metadata records.
|
java.util.Map |
listIdentifiers(java.lang.String resumptionToken)
Retrieve the next set of Identifiers associated with the resumptionToken
|
java.util.Map |
listIdentifiers(java.lang.String from,
java.lang.String until,
java.lang.String set,
java.lang.String metadataPrefix)
Retrieve a list of Identifiers that satisfy the criteria parameters
|
java.util.Map |
listRecords(java.lang.String resumptionToken)
Retrieve the next set of records associated with the resumptionToken
|
java.util.Map |
listRecords(java.lang.String from,
java.lang.String until,
java.lang.String set,
java.lang.String metadataPrefix)
Retrieve a list of records that satisfy the specified criteria
|
java.util.Map |
listSets() |
java.util.Map |
listSets(java.lang.String resumptionToken) |
void |
loadCatalog()
Run a query of the Metacat database to load the catalog of EML documents.
|
factory, getCrosswalks, getDescriptions, getMetadata, getMillisecondsToLive, getRecordFactory, getResumptionMap, getResumptionMap, isHarvestable, setHarvestable, setRecordFactory, setSupportedGranularityOffset, toFinestFrom, toFinestUntilpublic void close()
close in class ORG.oclc.oai.server.catalog.AbstractCatalogpublic java.sql.Connection getConnection()
public java.lang.String getMaxDateUpdated()
public java.lang.String getRecord(java.lang.String oaiIdentifier,
java.lang.String metadataPrefix)
throws ORG.oclc.oai.server.verb.IdDoesNotExistException,
ORG.oclc.oai.server.verb.CannotDisseminateFormatException,
ORG.oclc.oai.server.verb.OAIInternalServerError
getRecord in class ORG.oclc.oai.server.catalog.AbstractCatalogoaiIdentifier - the OAI identifiermetadataPrefix - the OAI metadataPrefixORG.oclc.oai.server.verb.CannotDisseminateFormatException - signals an http status code 400 problemORG.oclc.oai.server.verb.IdDoesNotExistException - signals an http status code 404 problemORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problempublic java.util.Vector getSchemaLocations(java.lang.String oaiIdentifier)
throws ORG.oclc.oai.server.verb.IdDoesNotExistException,
ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.NoMetadataFormatsException
getSchemaLocations in class ORG.oclc.oai.server.catalog.AbstractCatalogoaiIdentifier - the OAI identifierOAIBadRequestException - signals an http status code 400 problemOAINotFoundException - signals an http status code 404 problemORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problemORG.oclc.oai.server.verb.IdDoesNotExistExceptionORG.oclc.oai.server.verb.NoMetadataFormatsExceptionprotected boolean isMetadataFile(java.io.File child)
child - the File to be investigatedpublic java.util.Map listIdentifiers(java.lang.String from,
java.lang.String until,
java.lang.String set,
java.lang.String metadataPrefix)
throws ORG.oclc.oai.server.verb.NoItemsMatchException
listIdentifiers in class ORG.oclc.oai.server.catalog.AbstractCatalogfrom - beginning date in the form of YYYY-MM-DD or null if earliest date
is desireduntil - ending date in the form of YYYY-MM-DD or null if latest date is
desiredset - set name or null if no set is desiredmetadataPrefix - e.g. "oai_dc", "eml-2.0.1", "eml-2.1.0"OAIBadRequestException - signals an http status code 400 problemORG.oclc.oai.server.verb.NoItemsMatchExceptionpublic java.util.Map listIdentifiers(java.lang.String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException
listIdentifiers in class ORG.oclc.oai.server.catalog.AbstractCatalogresumptionToken - implementation-dependent format taken from the previous
listIdentifiers() Map result.OAIBadRequestException - signals an http status code 400 problemORG.oclc.oai.server.verb.BadResumptionTokenExceptionpublic java.util.Map listRecords(java.lang.String from,
java.lang.String until,
java.lang.String set,
java.lang.String metadataPrefix)
throws ORG.oclc.oai.server.verb.CannotDisseminateFormatException,
ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.NoItemsMatchException
listRecords in class ORG.oclc.oai.server.catalog.AbstractCatalogfrom - beginning date in the form of YYYY-MM-DD or null if earliest date
is desireduntil - ending date in the form of YYYY-MM-DD or null if latest date is
desiredset - set name or null if no set is desiredmetadataPrefix - e.g. "oai_dc", "eml-2.0.1", "eml-2.1.0"OAIBadRequestException - signals an http status code 400 problemORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problemORG.oclc.oai.server.verb.CannotDisseminateFormatExceptionORG.oclc.oai.server.verb.NoItemsMatchExceptionpublic java.util.Map listRecords(java.lang.String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException
listRecords in class ORG.oclc.oai.server.catalog.AbstractCatalogresumptionToken - implementation-dependent format taken from the previous
listRecords() Map result.OAIBadRequestException - signals an http status code 400 problemORG.oclc.oai.server.verb.BadResumptionTokenExceptionpublic java.util.Map listSets()
throws ORG.oclc.oai.server.verb.NoSetHierarchyException
listSets in class ORG.oclc.oai.server.catalog.AbstractCatalogORG.oclc.oai.server.verb.NoSetHierarchyExceptionpublic java.util.Map listSets(java.lang.String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException
listSets in class ORG.oclc.oai.server.catalog.AbstractCatalogORG.oclc.oai.server.verb.BadResumptionTokenExceptionpublic void loadCatalog()
Copyright © 2020 Regents of the University of California. All Rights Reserved.