Class NdrRepositoryWriterPlugin

java.lang.Object
org.dlese.dpc.schemedit.repository.ServletContextRepositoryWriterPlugin
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 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 Id
      recordXml - metadata as an xml String
      xmlFormat - format of metadata record
      dcsDataRecord - 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 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