|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectORG.oclc.oai.server.catalog.AbstractCatalog
org.dspace.app.oai.DSpaceOAICatalog
public class DSpaceOAICatalog
This is class extends OAICat's AbstractCatalog base class to allow metadata harvesting of the metadata in DSpace via OAI-PMH 2.0. FIXME: Some CNRI Handle-specific stuff in here. Anyone wanting to use something else will need to update this code too. Sorry about that.
| Field Summary | |
|---|---|
static String |
OAI_ID_PREFIX
Prefix that all our OAI identifiers have |
| Constructor Summary | |
|---|---|
DSpaceOAICatalog(Properties properties)
|
|
| Method Summary | |
|---|---|
void |
close()
close the repository |
String |
getRecord(String identifier,
String metadataPrefix)
Retrieve the specified metadata for the specified identifier |
Vector |
getSchemaLocations(String identifier)
Retrieve a list of schemaLocation values associated with the specified identifier. |
Map |
listIdentifiers(String resumptionToken)
Retrieve the next set of identifiers associated with the resumptionToken |
Map |
listIdentifiers(String from,
String until,
String set,
String metadataPrefix)
Retrieve a list of identifiers that satisfy the specified criteria |
Map |
listRecords(String resumptionToken)
Retrieve the next set of records associated with the resumptionToken |
Map |
listRecords(String from,
String until,
String set,
String metadataPrefix)
Retrieve a list of records that satisfy the specified criteria. |
Map |
listSets()
Retrieve a list of sets that satisfy the specified criteria |
Map |
listSets(String resumptionToken)
Retrieve the next set of sets associated with the resumptionToken |
| 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 |
|---|
public static final String OAI_ID_PREFIX
| Constructor Detail |
|---|
public DSpaceOAICatalog(Properties properties)
| Method Detail |
|---|
public Vector getSchemaLocations(String identifier)
throws ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.IdDoesNotExistException,
ORG.oclc.oai.server.verb.NoMetadataFormatsException
getSchemaLocations in class ORG.oclc.oai.server.catalog.AbstractCatalogidentifier - the OAI identifier
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.IdDoesNotExistException - the specified identifier can't be found
ORG.oclc.oai.server.verb.NoMetadataFormatsException - the specified identifier was found but the item is flagged
as deleted and thus no schemaLocations (i.e.
metadataFormats) can be produced.
public Map listIdentifiers(String from,
String until,
String set,
String metadataPrefix)
throws ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.NoSetHierarchyException,
ORG.oclc.oai.server.verb.NoItemsMatchException,
ORG.oclc.oai.server.verb.CannotDisseminateFormatException,
ORG.oclc.oai.server.verb.BadArgumentException
listIdentifiers in class ORG.oclc.oai.server.catalog.AbstractCatalogfrom - beginning date using the proper granularityuntil - ending date using the proper granularityset - the set name or null if no such limit is requestedmetadataPrefix - the OAI metadataPrefix or null if no such limit is requested
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.NoSetHierarchyException - the repository doesn't support sets.
ORG.oclc.oai.server.verb.CannotDisseminateFormatException - the metadata format specified is not supported by your
repository.
ORG.oclc.oai.server.verb.NoItemsMatchException
ORG.oclc.oai.server.verb.BadArgumentException
public Map listIdentifiers(String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException,
ORG.oclc.oai.server.verb.OAIInternalServerError
listIdentifiers in class ORG.oclc.oai.server.catalog.AbstractCatalogresumptionToken - implementation-dependent format taken from the previous
listIdentifiers() Map result.
ORG.oclc.oai.server.verb.BadResumptionTokenException - the value of the resumptionToken is invalid or expired.
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
public String getRecord(String identifier,
String metadataPrefix)
throws ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.CannotDisseminateFormatException,
ORG.oclc.oai.server.verb.IdDoesNotExistException
getRecord in class ORG.oclc.oai.server.catalog.AbstractCatalogidentifier - the OAI identifiermetadataPrefix - the OAI metadataPrefix
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.CannotDisseminateFormatException - the metadataPrefix is not supported by the item.
ORG.oclc.oai.server.verb.IdDoesNotExistException - the identifier wasn't found
public Map listRecords(String from,
String until,
String set,
String metadataPrefix)
throws ORG.oclc.oai.server.verb.OAIInternalServerError,
ORG.oclc.oai.server.verb.NoSetHierarchyException,
ORG.oclc.oai.server.verb.CannotDisseminateFormatException,
ORG.oclc.oai.server.verb.NoItemsMatchException,
ORG.oclc.oai.server.verb.BadArgumentException
listRecords in class ORG.oclc.oai.server.catalog.AbstractCatalogfrom - beginning date using the proper granularityuntil - ending date using the proper granularityset - the set name or null if no such limit is requestedmetadataPrefix - the OAI metadataPrefix or null if no such limit is requested
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.NoSetHierarchyException - The repository doesn't support sets.
ORG.oclc.oai.server.verb.CannotDisseminateFormatException - the metadataPrefix isn't supported by the item.
ORG.oclc.oai.server.verb.NoItemsMatchException
ORG.oclc.oai.server.verb.BadArgumentException
public Map listRecords(String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException,
ORG.oclc.oai.server.verb.OAIInternalServerError
listRecords in class ORG.oclc.oai.server.catalog.AbstractCatalogresumptionToken - implementation-dependent format taken from the previous
listRecords() Map result.
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
ORG.oclc.oai.server.verb.BadResumptionTokenException - the value of the resumptionToken argument is invalid or
expired.
public Map listSets()
throws ORG.oclc.oai.server.verb.NoSetHierarchyException,
ORG.oclc.oai.server.verb.OAIInternalServerError
listSets in class ORG.oclc.oai.server.catalog.AbstractCatalogORG.oclc.oai.server.verb.NoSetHierarchyException - signals an http status code 400 problem
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problem
public Map listSets(String resumptionToken)
throws ORG.oclc.oai.server.verb.BadResumptionTokenException,
ORG.oclc.oai.server.verb.OAIInternalServerError
listSets in class ORG.oclc.oai.server.catalog.AbstractCatalogresumptionToken - implementation-dependent format taken from the previous
listSets() Map result.
ORG.oclc.oai.server.verb.BadResumptionTokenException - the value of the resumptionToken is invalid or expired.
ORG.oclc.oai.server.verb.OAIInternalServerError - signals an http status code 500 problempublic void close()
close in class ORG.oclc.oai.server.catalog.AbstractCatalog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||