DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr.writer
Class NdrRepositoryWriterPlugin

java.lang.Object
  extended by org.dlese.dpc.schemedit.repository.ServletContextRepositoryWriterPlugin
      extended by org.dlese.dpc.schemedit.ndr.writer.NdrRepositoryWriterPlugin
All Implemented Interfaces:
RepositoryWriterPlugin

public class NdrRepositoryWriterPlugin
extends ServletContextRepositoryWriterPlugin

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
NdrRepositoryWriterPlugin()
          Constructor for the NdrRepositoryWriterPlugin object
 
Method Summary
 void deleteRecord(String recId, DcsDataRecord dcsDataRecord)
          NOT YET DOCUMENTED
 void putCollectionData(String id, CollectionConfig collectionConfig, DcsDataRecord dcsDataRecord)
          NOT YET CALLED
 void putRecord(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NdrRepositoryWriterPlugin

public NdrRepositoryWriterPlugin()
Constructor for the NdrRepositoryWriterPlugin object

Method Detail

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 Id
dcsDataRecord - dcsData for the record to be written
recordXml - metadata as an xml String
xmlFormat - format of metadata record
Throws:
NdrRepositoryWriterPluginException - NOT YET DOCUMENTED

putCollectionData

public void putCollectionData(String id,
                              CollectionConfig collectionConfig,
                              DcsDataRecord dcsDataRecord)
                       throws NdrRepositoryWriterPluginException
NOT YET CALLED

Parameters:
id - NOT YET DOCUMENTED
collectionConfig - NOT YET DOCUMENTED
dcsDataRecord - 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 DOCUMENTED
dcsDataRecord - NOT YET DOCUMENTED
Throws:
NdrRepositoryWriterPluginException - NOT YET DOCUMENTED

DLESE Tools
v1.6.0