DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.repository
Interface RepositoryWriterPlugin

All Known Implementing Classes:
NdrRepositoryWriterPlugin, ServletContextRepositoryWriterPlugin

public interface 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...

Version:
$Id: RepositoryWriterPlugin.java,v 1.5 2007/07/30 18:06:15 ostwald Exp $
Author:
ostwald

$Id: RepositoryWriterPlugin.java,v 1.10 2009/03/20 23:33:57 jweather Exp $


Method Summary
 void deleteRecord(String recId, DcsDataRecord dcsDataRecord)
          NOT YET DOCUMENTED
 void putCollectionData(String id, CollectionConfig collectionConfig, DcsDataRecord dcsDataRecord)
          NOT YET DOCUMENTED
 void putRecord(String recId, String recordXml, String xmlFormat, DcsDataRecord dcsDataRecord)
          Writes a metadata record to the NDR, with pecial handling for records of ncs_collect format.
 

Method Detail

putRecord

void putRecord(String recId,
               String recordXml,
               String xmlFormat,
               DcsDataRecord dcsDataRecord)
               throws RepositoryWriterPluginException
Writes a metadata record to the NDR, with pecial 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.

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:
RepositoryWriterPluginException - NOT YET DOCUMENTED

putCollectionData

void putCollectionData(String id,
                       CollectionConfig collectionConfig,
                       DcsDataRecord dcsDataRecord)
                       throws RepositoryWriterPluginException
NOT YET DOCUMENTED

Parameters:
id - NOT YET DOCUMENTED
collectionConfig - NOT YET DOCUMENTED
dcsDataRecord - NOT YET DOCUMENTED
Throws:
RepositoryWriterPluginException - NOT YET DOCUMENTED

deleteRecord

void deleteRecord(String recId,
                  DcsDataRecord dcsDataRecord)
                  throws RepositoryWriterPluginException
NOT YET DOCUMENTED

Parameters:
recId - NOT YET DOCUMENTED
dcsDataRecord - NOT YET DOCUMENTED
Throws:
RepositoryWriterPluginException - NOT YET DOCUMENTED

DLESE Tools
v1.6.0