org.archiviststoolkit.importer
Class AccessionImportXmlHandler

java.lang.Object
  extended by org.archiviststoolkit.importer.ImportHandler
      extended by org.archiviststoolkit.importer.AccessionImportXmlHandler
All Implemented Interfaces:
java.lang.Runnable

public class AccessionImportXmlHandler
extends ImportHandler

Imports Contact domain objects from CSV files.


Field Summary
static java.lang.String RESOURCE_CREATION_FULL
           
static java.lang.String RESOURCE_CREATION_NONE
           
static java.lang.String RESOURCE_CREATION_STUB
           
 
Fields inherited from class org.archiviststoolkit.importer.ImportHandler
file, importController
 
Constructor Summary
AccessionImportXmlHandler(ImportOptionsAccessions importOptions)
          Constructor.
 
Method Summary
 boolean canImportFile(java.io.File file)
          Can this file be imported.
static java.util.Vector<java.lang.String> getResourceRecordCreationValues()
           
 boolean importFile(java.io.File importFile, DomainImportController controller, InfiniteProgressPanel progressPanel)
          Import the file.
 
Methods inherited from class org.archiviststoolkit.importer.ImportHandler
getFile, getImportController, getInitialChunk, run, startImportThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_CREATION_NONE

public static final java.lang.String RESOURCE_CREATION_NONE
See Also:
Constant Field Values

RESOURCE_CREATION_STUB

public static final java.lang.String RESOURCE_CREATION_STUB
See Also:
Constant Field Values

RESOURCE_CREATION_FULL

public static final java.lang.String RESOURCE_CREATION_FULL
See Also:
Constant Field Values
Constructor Detail

AccessionImportXmlHandler

public AccessionImportXmlHandler(ImportOptionsAccessions importOptions)
Constructor.

Parameters:
importOptions - - the import options panel
Method Detail

canImportFile

public boolean canImportFile(java.io.File file)
Can this file be imported.

Specified by:
canImportFile in class ImportHandler
Parameters:
file - the file to import.
Returns:
yes or no

importFile

public boolean importFile(java.io.File importFile,
                          DomainImportController controller,
                          InfiniteProgressPanel progressPanel)
                   throws ImportException
Import the file.

Specified by:
importFile in class ImportHandler
Parameters:
importFile - the file to import.
controller - the controller to use.
progressPanel - - the progress panel to display heartbeat messages
Returns:
if we succeded
Throws:
ImportException

getResourceRecordCreationValues

public static java.util.Vector<java.lang.String> getResourceRecordCreationValues()