public class MetacatRecordFactory
extends ORG.oclc.oai.server.catalog.RecordFactory
| Constructor and Description |
|---|
MetacatRecordFactory(java.util.Properties properties)
Construct a MetacatRecordFactory capable of producing the Crosswalk(s)
specified in the properties file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
createHeader(java.lang.Object nativeItem)
Convert a native "item" to a "record" String.
|
java.lang.String |
fromOAIIdentifier(java.lang.String oaiIdentifier)
Utility method to parse the 'local identifier' from the OAI identifier
|
java.util.Iterator |
getAbouts(java.lang.Object nativeItem)
Get the about elements from the item
|
java.lang.String |
getDatestamp(java.lang.Object nativeItem)
get the datestamp from the item
|
java.lang.String |
getLocalIdentifier(java.lang.Object nativeItem)
Extract the local identifier from the native item
|
java.lang.String |
getOAIIdentifier(java.lang.Object nativeItem)
Construct an OAI identifier from the native item
|
java.lang.String |
getOAIIdentifierOld(java.lang.Object nativeItem)
Construct an OAI identifier from the native item
|
java.util.Iterator |
getSetSpecs(java.lang.Object nativeItem)
get the setspec from the item
|
boolean |
isDeleted(java.lang.Object nativeItem)
Is the record deleted?
|
java.lang.String |
quickCreate(java.lang.Object nativeItem,
java.lang.String schemaLocation,
java.lang.String metadataPrefix)
Allows classes that implement RecordFactory to override the default
create() method.
|
public MetacatRecordFactory(java.util.Properties properties)
throws java.lang.IllegalArgumentException
properties - Contains information to configure the factory: specifically, the
names of the crosswalk(s) supportedjava.lang.IllegalArgumentException - Something is wrong with the argument.public java.lang.String fromOAIIdentifier(java.lang.String oaiIdentifier)
fromOAIIdentifier in class ORG.oclc.oai.server.catalog.RecordFactoryoaiIdentifier - OAI identifier e.g.
"urn:lsid:knb.ecoinformatics.org:knb-lter-gce:169"public java.lang.String getOAIIdentifier(java.lang.Object nativeItem)
getOAIIdentifier in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - native Item objectpublic java.lang.String getOAIIdentifierOld(java.lang.Object nativeItem)
nativeItem - native Item objectpublic java.lang.String getLocalIdentifier(java.lang.Object nativeItem)
getLocalIdentifier in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - native Item objectpublic java.lang.String getDatestamp(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getDatestamp in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a datestamp somewherejava.lang.IllegalArgumentException - Something is wrong with the argument.public java.util.Iterator getSetSpecs(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getSetSpecs in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a setspec somewherejava.lang.IllegalArgumentException - Something is wrong with the argument.public java.util.Iterator getAbouts(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
getAbouts in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing about information somewherejava.lang.IllegalArgumentException - Something is wrong with the argument.public boolean isDeleted(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
isDeleted in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - a native item presumably containing a possible delete indicatorjava.lang.IllegalArgumentException - Something is wrong with the argument.public java.lang.String quickCreate(java.lang.Object nativeItem,
java.lang.String schemaLocation,
java.lang.String metadataPrefix)
quickCreate in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - the native recordschemaURL - the schemaURL desired for the responsethe - metadataPrefix from the requestpublic java.lang.String[] createHeader(java.lang.Object nativeItem)
throws java.lang.IllegalArgumentException
createHeader in class ORG.oclc.oai.server.catalog.RecordFactorynativeItem - the native record.java.lang.IllegalArgumentException - One of the header components for this record is bad.Copyright © 2020 Regents of the University of California. All Rights Reserved.