|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Title: OAIProvider.java
Description:
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Method Summary | |
java.util.Set |
getAdminEmails()
Get the email addresses of administrators of the repository. |
java.lang.String |
getBaseURL()
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. |
| Method Detail |
public java.lang.String getRepositoryName()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.lang.String getBaseURL()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.lang.String getProtocolVersion()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.util.Date getEarliestDatestamp()
throws RepositoryException
RepositoryException - if an error has occurred.
public DeletedRecordSupport getDeletedRecordSupport()
throws RepositoryException
RepositoryException - if an error has occurred.
public DateGranularitySupport getDateGranularitySupport()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.util.Set getAdminEmails()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.util.Set getSupportedCompressionEncodings()
throws RepositoryException
RepositoryException - if an error has occurred.
public java.util.Set getDescriptions()
throws RepositoryException
RepositoryException - if an error has occurred.
public Record getRecord(java.lang.String identifier,
java.lang.String metadataPrefix)
throws CannotDisseminateFormatException,
IDDoesNotExistException,
RepositoryException
identifier - the record identifier.metadataPrefix - the metadata prefix identifier.
CannotDisseminateFormatException
IDDoesNotExistException
RepositoryException - if an error has occurred.
public java.util.List getRecords(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
throws CannotDisseminateFormatException,
NoRecordsMatchException,
NoSetHierarchyException,
RepositoryException
from - the beginning date of the date range.until - the ending date of the date range.metadataPrefix - the metadata prefix.set - the set of criteria
CannotDisseminateFormatException
NoRecordsMatchException
NoSetHierarchyException
RepositoryException - if an error has occurred.
public java.util.List getRecords(java.lang.String resumptionToken)
throws CannotDisseminateFormatException,
NoRecordsMatchException,
NoSetHierarchyException,
BadResumptionTokenException,
RepositoryException
resumptionToken - a string that can be used to get the rest of the
list.
CannotDisseminateFormatException
NoRecordsMatchException
NoSetHierarchyException
BadResumptionTokenException
RepositoryException - if an error has occurred.
public java.util.List getHeaders(java.util.Date from,
java.util.Date until,
java.lang.String metadataPrefix,
java.lang.String set)
throws CannotDisseminateFormatException,
NoRecordsMatchException,
NoSetHierarchyException,
RepositoryException
from - the beginning date range.until - the end of the date range.metadataPrefix - the metadata prefix.set - the set of criteria.
CannotDisseminateFormatException
NoRecordsMatchException
NoSetHierarchyException
RepositoryException - if an error has occurred.
public java.util.List getHeaders(java.lang.String resumptionToken)
throws CannotDisseminateFormatException,
NoRecordsMatchException,
NoSetHierarchyException,
BadResumptionTokenException,
RepositoryException
resumptionToken - a string that can be used to get the rest of the
list.
CannotDisseminateFormatException
NoRecordsMatchException
NoSetHierarchyException
BadResumptionTokenException
RepositoryException - if an error has occurred.
public java.util.List getSets()
throws NoSetHierarchyException,
RepositoryException
NoSetHierarchyException
RepositoryException - if an error has occurred.
public java.util.List getSets(java.lang.String resumptionToken)
throws BadResumptionTokenException,
NoSetHierarchyException,
RepositoryException
resumptionToken - a string that can be used to get the rest of the
list.
BadResumptionTokenException
NoSetHierarchyException
RepositoryException - if an error has occurred.
public java.util.Set getMetadataFormats(java.lang.String id)
throws IDDoesNotExistException,
NoMetadataFormatsException,
RepositoryException
id - The item identifier, or null, meaning "the entire repository"
IDDoesNotExistException
NoMetadataFormatsException
RepositoryException - if an error has occurred.
public long getMaxSets()
throws RepositoryException
RepositoryException - if an error has occurred.
public long getMaxRecords()
throws RepositoryException
RepositoryException - if an error has occurred.
public long getMaxHeaders()
throws RepositoryException
RepositoryException - if an error has occurred.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||