|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.oai.sample.SampleOAIProvider
public class SampleOAIProvider
Title: SampleOAIProvider.java
Description: A sample implementation of OAIProvider for testing and demonstration purposes.
| Constructor Summary | |
|---|---|
SampleOAIProvider()
|
|
| Method Summary | |
|---|---|
java.util.Set |
getAdminEmails()
Get the email addresses of administrators of the repository. |
java.lang.String |
getBaseURL(java.lang.String protocol,
java.lang.String port)
Get the HTTP endpoint for the OAI-PMH interface. |
DateGranularitySupport |
getDateGranularitySupport()
Get the finest harvesting granularity supported by the repository. |
DeletedRecordSupport |
getDeletedRecordSupport()
Get the manner in which the repository supports the notion of deleted records. |
java.util.Set |
getDescriptions()
Get XML descriptions of the repository. |
java.util.Date |
getEarliestDatestamp()
Get a Date (in UTC) that is the guaranteed lower limit of all datestamps recording changes, modifications, or deletions in the repository. |
java.util.List |
getHeaders(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
Just like getRecords, but returns Header objects. |
java.util.List |
getHeaders(java.lang.String resumptionToken)
Get the remaining portion of a set of Headers. |
long |
getMaxHeaders()
Get the maximum number of headers that are returned at a time. |
long |
getMaxRecords()
Get the maximum number of records that are returned at a time. |
long |
getMaxSets()
Get the maximum number of sets that are returned at a time. |
java.util.Set |
getMetadataFormats(java.lang.String id)
Get the MetadataFormats supported across the repository or for an individual item in the repository. |
java.lang.String |
getProtocolVersion()
Get the version of the OAI-PMH supported by the repository. |
Record |
getRecord(java.lang.String identifier,
java.lang.String metadataPrefix)
Get an individual metadata record from the repository. |
java.util.List |
getRecords(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
Get the Records in the repository matching the given criteria. |
java.util.List |
getRecords(java.lang.String resumptionToken)
Get the remaining portion of a set of Records. |
java.lang.String |
getRepositoryName()
Get a human readable name for the repository. |
java.util.List |
getSets()
Get the setSpecs, setNames, and setDescriptions of sets in the repository. |
java.util.List |
getSets(java.lang.String resumptionToken)
Get the remaining portion of a set of Sets. |
java.util.Set |
getSupportedCompressionEncodings()
Get the compression encodings supported by the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleOAIProvider()
| Method Detail |
|---|
public java.lang.String getRepositoryName()
OAIProvider
getRepositoryName in interface OAIProvider
public java.lang.String getBaseURL(java.lang.String protocol,
java.lang.String port)
OAIProvider
getBaseURL in interface OAIProviderpublic java.lang.String getProtocolVersion()
OAIProvider
getProtocolVersion in interface OAIProviderpublic java.util.Date getEarliestDatestamp()
OAIProvider
getEarliestDatestamp in interface OAIProviderpublic DeletedRecordSupport getDeletedRecordSupport()
OAIProvider
getDeletedRecordSupport in interface OAIProviderpublic DateGranularitySupport getDateGranularitySupport()
OAIProvider
getDateGranularitySupport in interface OAIProviderpublic java.util.Set getAdminEmails()
OAIProvider
getAdminEmails in interface OAIProviderpublic java.util.Set getSupportedCompressionEncodings()
OAIProvider
getSupportedCompressionEncodings in interface OAIProviderpublic java.util.Set getDescriptions()
OAIProvider
getDescriptions in interface OAIProvider
public Record getRecord(java.lang.String identifier,
java.lang.String metadataPrefix)
throws IDDoesNotExistException
OAIProvider
getRecord in interface OAIProvideridentifier - the record identifier.metadataPrefix - the metadata prefix identifier.
IDDoesNotExistException
public java.util.List getRecords(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
OAIProvider
getRecords in interface OAIProviderfrom - the beginning date of the date range.until - the ending date of the date range.metadataPrefix - the metadata prefix.set - the set of criteria
public java.util.List getRecords(java.lang.String resumptionToken)
throws BadResumptionTokenException
OAIProvider
getRecords in interface OAIProviderresumptionToken - a string that can be used to get the rest of the
list.
BadResumptionTokenException
public java.util.List getHeaders(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
OAIProvider
getHeaders in interface OAIProviderfrom - the beginning date range.until - the end of the date range.metadataPrefix - the metadata prefix.set - the set of criteria.
public java.util.List getHeaders(java.lang.String resumptionToken)
throws BadResumptionTokenException
OAIProvider
getHeaders in interface OAIProviderresumptionToken - a string that can be used to get the rest of the
list.
BadResumptionTokenExceptionpublic java.util.List getSets()
OAIProvider
getSets in interface OAIProvider
public java.util.List getSets(java.lang.String resumptionToken)
throws BadResumptionTokenException
OAIProvider
getSets in interface OAIProviderresumptionToken - a string that can be used to get the rest of the
list.
BadResumptionTokenExceptionpublic java.util.Set getMetadataFormats(java.lang.String id)
OAIProvider
getMetadataFormats in interface OAIProviderid - The item identifier, or null, meaning "the entire repository"
public long getMaxSets()
OAIProvider
getMaxSets in interface OAIProviderpublic long getMaxRecords()
OAIProvider
getMaxRecords in interface OAIProviderpublic long getMaxHeaders()
OAIProvider
getMaxHeaders in interface OAIProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||