Class MetadataProviderWriter

java.lang.Object
org.dlese.dpc.schemedit.ndr.writer.MetadataProviderWriter

public class MetadataProviderWriter extends Object
The MetadataProviderWriter syncs collection-level information between the NCS and the NDR. It updates (and creates, if necessary) both an aggregator and a metadataProvider object in the NDR, and then records the handles for these NDR objects in the collection-configuration record in the NCS.

The MetadataProvider object will have the following data streams:

  • dcs_data - holding the contents of the collection's DcsDataRecord
  • collection_config - holding the collections' configuration record
  • dlese_collect - holding the contents of the collection record
And the following properties:
  • dlese:nativeFormat - the format of the item level records for this collection
  • dlese:collectionName
  • dlese:collectionId - the collection key
Author:
Jonathan Ostwald
  • Constructor Details

    • MetadataProviderWriter

      public MetadataProviderWriter(ServletContext servletContext) throws Exception
      Constructor for the MetadataProviderWriter object
      Parameters:
      servletContext - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
  • Method Details

    • write

      public SyncReport write(String collectionRecordId, CollectionConfig collectionConfig, DcsDataRecord collDcsDataRecord) throws Exception
      Constructor for the MetadataProviderWriter object
      Parameters:
      collectionRecordId - NOT YET DOCUMENTED
      collectionConfig - NOT YET DOCUMENTED
      collDcsDataRecord - NOT YET DOCUMENTED
      Returns:
      NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED