public class NdrRepositoryWriterPlugin extends ServletContextRepositoryWriterPlugin
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...
Constructor and Description |
---|
NdrRepositoryWriterPlugin()
Constructor for the NdrRepositoryWriterPlugin object
|
Modifier and Type | Method and Description |
---|---|
void |
deleteRecord(java.lang.String recId,
DcsDataRecord dcsDataRecord)
NOT YET DOCUMENTED
|
void |
putCollectionData(java.lang.String id,
CollectionConfig collectionConfig,
DcsDataRecord dcsDataRecord)
NOT YET CALLED
|
void |
putRecord(java.lang.String recId,
java.lang.String recordXml,
java.lang.String xmlFormat,
DcsDataRecord dcsDataRecord)
Writes a metadata record to the NDR, with special handling for records of
ncs_collect format.
|
getServletContext, setServletContext
public NdrRepositoryWriterPlugin()
public void putRecord(java.lang.String recId, java.lang.String recordXml, java.lang.String xmlFormat, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException
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"??
recId
- metadata record IddcsDataRecord
- dcsData for the record to be
writtenrecordXml
- metadata as an xml StringxmlFormat
- format of metadata recordNdrRepositoryWriterPluginException
- NOT YET DOCUMENTEDpublic void putCollectionData(java.lang.String id, CollectionConfig collectionConfig, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException
id
- NOT YET DOCUMENTEDcollectionConfig
- NOT YET DOCUMENTEDdcsDataRecord
- NOT YET DOCUMENTEDNdrRepositoryWriterPluginException
- NOT YET DOCUMENTEDpublic void deleteRecord(java.lang.String recId, DcsDataRecord dcsDataRecord) throws NdrRepositoryWriterPluginException
recId
- NOT YET DOCUMENTEDdcsDataRecord
- NOT YET DOCUMENTEDNdrRepositoryWriterPluginException
- NOT YET DOCUMENTED