|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectORG.oclc.oai.server.catalog.AbstractCatalog
edu.ucsb.nceas.metacat.oaipmh.provider.server.catalog.MetacatCatalog
public class MetacatCatalog
MetacatCatalog is an implementation of AbstractCatalog interface.
| Field Summary | |
|---|---|
protected java.lang.String |
homeDir
|
| Constructor Summary | |
|---|---|
MetacatCatalog(java.util.Properties properties)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ORG.oclc.oai.server.catalog.AbstractCatalog |
|---|
factory, getCrosswalks, getDescriptions, getMetadata, getMillisecondsToLive, getRecordFactory, getResumptionMap, getResumptionMap, isHarvestable, setHarvestable, setRecordFactory, setSupportedGranularityOffset, toFinestFrom, toFinestUntil |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String homeDir
| Constructor Detail |
|---|
public MetacatCatalog(java.util.Properties properties)
| Method Detail |
|---|
public 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 metadataPrefix
ORG.oclc.oai.server.verb.CannotDisseminateFormatException - signals an http status code 400 problem
ORG.oclc.oai.server.verb.IdDoesNotExistException - signals an http status code 404 problem
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
public 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 identifier
OAIBadRequestException - signals an http status code 400 problem
OAINotFoundException - signals an http status code 404 problem
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.IdDoesNotExistException
ORG.oclc.oai.server.verb.NoMetadataFormatsExceptionprotected boolean isMetadataFile(java.io.File child)
child - the File to be investigated
public 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 problem
ORG.oclc.oai.server.verb.NoItemsMatchException
public 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 problem
ORG.oclc.oai.server.verb.BadResumptionTokenException
public 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 problem
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.CannotDisseminateFormatException
ORG.oclc.oai.server.verb.NoItemsMatchException
public 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 problem
ORG.oclc.oai.server.verb.BadResumptionTokenException
public java.util.Map listSets()
throws ORG.oclc.oai.server.verb.NoSetHierarchyException
listSets in class ORG.oclc.oai.server.catalog.AbstractCatalogORG.oclc.oai.server.verb.NoSetHierarchyException
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||