org.archiviststoolkit.exporter
Class MARCExportHandler

java.lang.Object
  extended by org.archiviststoolkit.exporter.MARCExportHandler
All Implemented Interfaces:
java.lang.Runnable

public class MARCExportHandler
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 java.io.File file
           
 
Constructor Summary
MARCExportHandler(ExportOptionsMARC exportOptions)
           
 
Method Summary
 void export(java.io.File exportFile, Resources resource, InfiniteProgressPanel progressPanel)
           
 void export(java.io.File exportFile, java.util.Vector<DomainObject> resources, InfiniteProgressPanel progressPanel)
           
 boolean export(InfiniteProgressPanel progressPanel, boolean batchProcess)
           
 void exportDO(java.io.File exportFile, DigitalObjects digObj, InfiniteProgressPanel progressPanel)
           
 void exportDO(java.io.File exportFile, java.util.Vector<DigitalObjects> digitalObjects, InfiniteProgressPanel progressPanel)
          Method to do batch export of digital object records to MARC records
 void run()
           
 boolean startExportThread(java.io.File exportFile, Resources resource)
          Kick off the export thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public java.io.File file
Constructor Detail

MARCExportHandler

public MARCExportHandler(ExportOptionsMARC exportOptions)
Method Detail

startExportThread

public boolean startExportThread(java.io.File exportFile,
                                 Resources resource)
Kick off the export thread.

Parameters:
exportFile - the file to import
Returns:
if we succeeded or not

run

public void run()
Specified by:
run in interface java.lang.Runnable

export

public void export(java.io.File exportFile,
                   java.util.Vector<DomainObject> resources,
                   InfiniteProgressPanel progressPanel)

export

public void export(java.io.File exportFile,
                   Resources resource,
                   InfiniteProgressPanel progressPanel)

export

public boolean export(InfiniteProgressPanel progressPanel,
                      boolean batchProcess)

exportDO

public void exportDO(java.io.File exportFile,
                     DigitalObjects digObj,
                     InfiniteProgressPanel progressPanel)

exportDO

public void exportDO(java.io.File exportFile,
                     java.util.Vector<DigitalObjects> digitalObjects,
                     InfiniteProgressPanel progressPanel)
Method to do batch export of digital object records to MARC records

Parameters:
exportFile - The file or directory to export records to
digitalObjects - Vector containing the digital objects to export
progressPanel - Panel for displaying the progress of the export process