public class CollectionImporter
extends java.lang.Object
ISSUE: can we import arbitrary collections, or is it REQUIRED that NCS-level information (e.g., format) is present.
| Constructor and Description |
|---|
CollectionImporter(java.lang.String mdpHandle,
javax.servlet.ServletContext servletContext)
Constructor for the CollectionImporter object (with access to
ServletContext)
|
CollectionImporter(java.lang.String mdpHandle,
java.lang.String recordsPath,
java.lang.String configPath)
Constructor for development and debugging purposes (servletContext is not
available).
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
doImport()
NOT YET DOCUMENTED
|
java.io.File |
getCollectionConfigFile()
Gets the collectionConfigFile attribute of the CollectionImporter object
|
protected MetaDataFramework |
getCollectionConfigFramework()
Gets the collectionConfigFramework attribute of the CollectionImporter
object
|
protected MetaDataFramework |
getCollectionFramework()
Gets the metaDataFramework attribute of the AbstractSchemEditAction object
|
org.dom4j.Element |
getCollectionHistory()
Gets the statusEntries element from the metadataProvider's dsc_data
datastream, which reflect the collection's history, including status
changes, imports and exports.
|
java.lang.String |
getCollectionId()
Determines a collectionId for the collection to be imported.
|
void |
loadCollectionLevelMetadata()
Write Collection-level metadata record to disk (NOT currently used).
|
void |
loadItemLevelMetadata(CollectionConfig collectionConfig)
Process MetadataWrappers in NDR response.
|
static void |
main(java.lang.String[] args)
NOT YET DOCUMENTED
|
public CollectionImporter(java.lang.String mdpHandle,
javax.servlet.ServletContext servletContext)
throws java.lang.Exception
servletContext - NOT YET DOCUMENTEDmdpHandle - NOT YET DOCUMENTEDjava.lang.Exception - NOT YET DOCUMENTEDpublic CollectionImporter(java.lang.String mdpHandle,
java.lang.String recordsPath,
java.lang.String configPath)
throws java.lang.Exception
recordsPath - NOT YET DOCUMENTEDconfigPath - NOT YET DOCUMENTEDmdpHandle - NOT YET DOCUMENTEDjava.lang.Exception - NOT YET DOCUMENTEDpublic java.util.Map doImport()
throws java.lang.Exception
java.lang.Exception - NOT YET DOCUMENTEDprotected MetaDataFramework getCollectionFramework() throws java.lang.Exception
java.lang.Exception - NOT YET DOCUMENTEDprotected MetaDataFramework getCollectionConfigFramework() throws java.lang.Exception
java.lang.Exception - NOT YET DOCUMENTEDpublic org.dom4j.Element getCollectionHistory()
public void loadCollectionLevelMetadata()
throws java.lang.Exception
java.lang.Exception - NOT YET DOCUMENTEDpublic java.lang.String getCollectionId()
Tries the following until a value is found:
public java.io.File getCollectionConfigFile()
public void loadItemLevelMetadata(CollectionConfig collectionConfig) throws java.lang.Exception
Extract the following from each MetaDataWrapper and write to file system:
collectionConfig - NOT YET DOCUMENTEDjava.lang.Exception - NOT YET DOCUMENTEDpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - NOT YET DOCUMENTEDjava.lang.Exception - NOT YET DOCUMENTED