org.dspace.app.bulkedit
Class MetadataExport

java.lang.Object
  extended by org.dspace.app.bulkedit.MetadataExport

public class MetadataExport
extends Object

Metadata exporter to allow the batch export of metadata into a file

Author:
Stuart Lewis

Constructor Summary
MetadataExport(Context c, Community toExport, boolean exportAll)
          Method to export a community (and sub-communites and collections)
MetadataExport(Context c, ItemIterator toExport, boolean exportAll)
          Set up a new metadata export
 
Method Summary
 DSpaceCSV export()
          Run the export
static void main(String[] argv)
          main method to run the metadata exporter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataExport

public MetadataExport(Context c,
                      ItemIterator toExport,
                      boolean exportAll)
Set up a new metadata export

Parameters:
c - The Context
toExport - The ItemIterator of items to export
exportAll - whether to export all metadata or not (include handle, provenance etc)

MetadataExport

public MetadataExport(Context c,
                      Community toExport,
                      boolean exportAll)
Method to export a community (and sub-communites and collections)

Parameters:
c - The Context
toExport - The Community to export
exportAll - whether to export all metadata or not (include handle, provenance etc)
Method Detail

export

public DSpaceCSV export()
Run the export

Returns:
the exported CSV lines

main

public static void main(String[] argv)
                 throws Exception
main method to run the metadata exporter

Parameters:
argv - the command line arguments given
Throws:
Exception


Copyright © 2010 DuraSpace. All Rights Reserved.