|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.ndr.CollectionImporter
public class CollectionImporter
Extracts data from a Collection Metadata object and loads it into the NCS data structures to create a collection, and then creates item-level metadata from MetadataObjects in the NDR (transforming to native format if possible).
ISSUE: can we import arbitrary collections, or is it REQUIRED that NCS-level information (e.g., format) is present.
Constructor Summary | |
---|---|
CollectionImporter(String mdpHandle,
ServletContext servletContext)
Constructor for the CollectionImporter object (with access to ServletContext) |
|
CollectionImporter(String mdpHandle,
String recordsPath,
String configPath)
Constructor for development and debugging purposes (servletContext is not available). |
Method Summary | |
---|---|
Map |
doImport()
NOT YET DOCUMENTED |
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 |
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. |
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(String[] args)
NOT YET DOCUMENTED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionImporter(String mdpHandle, ServletContext servletContext) throws Exception
servletContext
- NOT YET DOCUMENTEDmdpHandle
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic CollectionImporter(String mdpHandle, String recordsPath, String configPath) throws Exception
recordsPath
- NOT YET DOCUMENTEDconfigPath
- NOT YET DOCUMENTEDmdpHandle
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDMethod Detail |
---|
public Map doImport() throws Exception
Exception
- NOT YET DOCUMENTEDprotected MetaDataFramework getCollectionFramework() throws Exception
Exception
- NOT YET DOCUMENTEDprotected MetaDataFramework getCollectionConfigFramework() throws Exception
Exception
- NOT YET DOCUMENTEDpublic Element getCollectionHistory()
public void loadCollectionLevelMetadata() throws Exception
Exception
- NOT YET DOCUMENTEDpublic String getCollectionId()
Tries the following until a value is found:
public File getCollectionConfigFile()
public void loadItemLevelMetadata(CollectionConfig collectionConfig) throws Exception
Extract the following from each MetaDataWrapper and write to file system:
collectionConfig
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic static void main(String[] args) throws Exception
args
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |