public class FedoraOAIProvider extends Object implements Constants, OAIProvider
Constants.FedoraHomeACCESS, ACTION, API, ATOM_APIM1_0, ATOM_ZIP1_1, ATOM1_1, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, DS_INPUT_SPEC1_0, DS_INPUT_SPEC1_1, ENVIRONMENT, FCFG, FEDORA, FEDORA_APP_CONTEXT_NAME, FEDORA_DEFAULT_APP_CONTEXT, FEDORA_HOME, FEDORA_REPOSITORY_PID, FOXML, FOXML1_0, FOXML1_0_LEGACY, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_0_LEGACY, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJ_VALIDATION1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, RELS_EXT1_0, RELS_INT1_0, REPO_DESC1_0, RESOURCE, SDEF, SDEF_METHOD_MAP1_0, SDEP, SDEP_METHOD_MAP1_0, SDEP_METHOD_MAP1_1, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XACML_POLICY, XACML_POLICY1_0, XACML1, XACML1_ACTION, XACML1_POLICY, XACML1_RESOURCE, XACML1_SUBJECT, XACML2_POLICY_SCHEMA, XLINK, XML_XSD, XMLNS, XSI| Constructor and Description |
|---|
FedoraOAIProvider(String repositoryName,
String repositoryDomainName,
String localname,
String relpath,
Set adminEmails,
Set friendBaseURLs,
String namespaceID,
long maxSets,
long maxRecords,
long maxHeaders,
FieldSearch fieldSearch) |
| Modifier and Type | Method and Description |
|---|---|
Set |
getAdminEmails()
Get the email addresses of administrators of the repository.
|
String |
getBaseURL(String protocol,
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.
|
Set |
getDescriptions()
Get XML descriptions of the repository.
|
Date |
getEarliestDatestamp()
Get a Date (in UTC) that is the guaranteed lower limit of all datestamps
recording changes, modifications, or deletions in the repository.
|
List |
getHeaders(Date from,
Date until,
String metadataPrefix,
String set)
Just like getRecords, but returns Header objects.
|
List |
getHeaders(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.
|
Set |
getMetadataFormats(String id)
Get the MetadataFormats supported across the repository or for an
individual item in the repository.
|
String |
getProtocolVersion()
Get the version of the OAI-PMH supported by the repository.
|
Record |
getRecord(String identifier,
String metadataPrefix)
Get an individual metadata record from the repository.
|
List |
getRecords(Date from,
Date until,
String metadataPrefix,
String set)
Get the Records in the repository matching the given criteria.
|
List |
getRecords(String resumptionToken)
Get the remaining portion of a set of Records.
|
String |
getRepositoryName()
Get a human readable name for the repository.
|
List |
getSets()
Get the setSpecs, setNames, and setDescriptions of sets in the
repository.
|
List |
getSets(String resumptionToken)
Get the remaining portion of a set of Sets.
|
Set |
getSupportedCompressionEncodings()
Get the compression encodings supported by the repository.
|
public String getRepositoryName()
OAIProvidergetRepositoryName in interface OAIProviderpublic String getBaseURL(String protocol, String port)
OAIProvidergetBaseURL in interface OAIProviderpublic String getProtocolVersion()
OAIProvidergetProtocolVersion in interface OAIProviderpublic Date getEarliestDatestamp()
OAIProvidergetEarliestDatestamp in interface OAIProviderpublic DeletedRecordSupport getDeletedRecordSupport()
OAIProvidergetDeletedRecordSupport in interface OAIProviderpublic DateGranularitySupport getDateGranularitySupport()
OAIProvidergetDateGranularitySupport in interface OAIProviderpublic Set getAdminEmails()
OAIProvidergetAdminEmails in interface OAIProviderpublic Set getSupportedCompressionEncodings()
OAIProvidergetSupportedCompressionEncodings in interface OAIProviderpublic Set getDescriptions()
OAIProvidergetDescriptions in interface OAIProviderpublic Record getRecord(String identifier, String metadataPrefix) throws CannotDisseminateFormatException, IDDoesNotExistException, RepositoryException
OAIProvidergetRecord in interface OAIProvideridentifier - the record identifier.metadataPrefix - the metadata prefix identifier.CannotDisseminateFormatExceptionIDDoesNotExistExceptionRepositoryException - if an error has occurred.public List getRecords(Date from, Date until, String metadataPrefix, String set) throws CannotDisseminateFormatException, NoRecordsMatchException, NoSetHierarchyException, RepositoryException
OAIProvidergetRecords 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 criteriaCannotDisseminateFormatExceptionNoRecordsMatchExceptionNoSetHierarchyExceptionRepositoryException - if an error has occurred.public List getRecords(String resumptionToken) throws CannotDisseminateFormatException, NoRecordsMatchException, NoSetHierarchyException, BadResumptionTokenException, RepositoryException
OAIProvidergetRecords in interface OAIProviderresumptionToken - a string that can be used to get the rest of the list.CannotDisseminateFormatExceptionNoRecordsMatchExceptionNoSetHierarchyExceptionBadResumptionTokenExceptionRepositoryException - if an error has occurred.public List getHeaders(Date from, Date until, String metadataPrefix, String set) throws CannotDisseminateFormatException, NoRecordsMatchException, NoSetHierarchyException, RepositoryException
OAIProvidergetHeaders in interface OAIProviderfrom - the beginning date range.until - the end of the date range.metadataPrefix - the metadata prefix.set - the set of criteria.CannotDisseminateFormatExceptionNoRecordsMatchExceptionNoSetHierarchyExceptionRepositoryException - if an error has occurred.public List getHeaders(String resumptionToken) throws CannotDisseminateFormatException, NoRecordsMatchException, NoSetHierarchyException, BadResumptionTokenException, RepositoryException
OAIProvidergetHeaders in interface OAIProviderresumptionToken - a string that can be used to get the rest of the list.CannotDisseminateFormatExceptionNoRecordsMatchExceptionNoSetHierarchyExceptionBadResumptionTokenExceptionRepositoryException - if an error has occurred.public List getSets() throws NoSetHierarchyException, RepositoryException
OAIProvidergetSets in interface OAIProviderNoSetHierarchyExceptionRepositoryException - if an error has occurred.public List getSets(String resumptionToken) throws BadResumptionTokenException, NoSetHierarchyException, RepositoryException
OAIProvidergetSets in interface OAIProviderresumptionToken - a string that can be used to get the rest of the list.BadResumptionTokenExceptionNoSetHierarchyExceptionRepositoryException - if an error has occurred.public Set getMetadataFormats(String id) throws NoMetadataFormatsException, IDDoesNotExistException, RepositoryException
OAIProvidergetMetadataFormats in interface OAIProviderid - The item identifier, or null, meaning "the entire repository"NoMetadataFormatsExceptionIDDoesNotExistExceptionRepositoryException - if an error has occurred.public long getMaxSets()
throws RepositoryException
OAIProvidergetMaxSets in interface OAIProviderRepositoryException - if an error has occurred.public long getMaxRecords()
throws RepositoryException
OAIProvidergetMaxRecords in interface OAIProviderRepositoryException - if an error has occurred.public long getMaxHeaders()
throws RepositoryException
OAIProvidergetMaxHeaders in interface OAIProviderRepositoryException - if an error has occurred.Copyright © 2013 DuraSpace. All Rights Reserved.