Class NdrRepositoryWriterPlugin
java.lang.Object
org.dlese.dpc.schemedit.repository.ServletContextRepositoryWriterPlugin
org.dlese.dpc.schemedit.ndr.writer.NdrRepositoryWriterPlugin
- All Implemented Interfaces:
RepositoryWriterPlugin
Methods to create, copy, and put Records to the Repository
NOTE: currently, this class implements a repositoryWriter plugin for the NDR. When we understand what the plugin INTERFACE should be, then the interface will be in this package, and the NDR implementation will be elsewhere...
- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the NdrRepositoryWriterPlugin object -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRecord(String recId, DcsDataRecord dcsDataRecord) NOT YET DOCUMENTEDvoidputCollectionData(String id, CollectionConfig collectionConfig, DcsDataRecord dcsDataRecord) NOT YET CALLEDvoidputRecord(String recId, String recordXml, String xmlFormat, DcsDataRecord dcsDataRecord) Writes a metadata record to the NDR, with special handling for records of ncs_collect format.Methods inherited from class org.dlese.dpc.schemedit.repository.ServletContextRepositoryWriterPlugin
getServletContext, setServletContext
-
Constructor Details
-
NdrRepositoryWriterPlugin
public NdrRepositoryWriterPlugin()Constructor for the NdrRepositoryWriterPlugin object
-
-
Method Details
-
putRecord
public void putRecord(String recId, String recordXml, String xmlFormat, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException Writes a metadata record to the NDR, with special handling for records of ncs_collect format. For ncs_collect records (the collection management format), we check to ensure the record is "FinalStatus" and valid, and if so we update the entire collection definition in the NDR.Note: this method is called by RepositoryWriter AFTER the record has been indexed, so the "recordXml" provided here should be equal to the xml stored in the reader object for "recId"??
- Parameters:
recId- metadata record IdrecordXml- metadata as an xml StringxmlFormat- format of metadata recorddcsDataRecord- dcsData for the record to be written- Throws:
NdrRepositoryWriterPluginException- NOT YET DOCUMENTED
-
putCollectionData
public void putCollectionData(String id, CollectionConfig collectionConfig, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException NOT YET CALLED- Parameters:
id- NOT YET DOCUMENTEDcollectionConfig- NOT YET DOCUMENTEDdcsDataRecord- NOT YET DOCUMENTED- Throws:
NdrRepositoryWriterPluginException- NOT YET DOCUMENTED
-
deleteRecord
public void deleteRecord(String recId, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException NOT YET DOCUMENTED- Parameters:
recId- NOT YET DOCUMENTEDdcsDataRecord- NOT YET DOCUMENTED- Throws:
NdrRepositoryWriterPluginException- NOT YET DOCUMENTED
-