public class ItemArchive
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DUBLIN_CORE_XML |
| Modifier and Type | Method and Description |
|---|---|
void |
addUndoDeleteContents(int bitstreamId)
Add bitstream id to delete contents file
|
void |
addUndoMetadataField(org.dspace.app.itemupdate.DtoMetadata dtom)
Add metadata field to undo list
|
static ItemArchive |
create(Context context,
java.io.File dir,
java.lang.String itemField)
factory method
Minimal requirements for dublin_core.xml for this application
is the presence of dc.identifier.uri
which must contain the handle for the item
|
java.io.File |
getDirectory()
Getter for directory in archive on disk
|
java.lang.String |
getDirectoryName()
Getter for directory name in archive
|
Item |
getItem()
Getter for the DSpace item referenced in the archive
|
java.util.List<org.dspace.app.itemupdate.DtoMetadata> |
getMetadataFields()
Getter for list of metadata fields
|
void |
writeUndo(java.io.File undoDir)
write undo directory and files to Disk in archive format
|
public static final java.lang.String DUBLIN_CORE_XML
public static ItemArchive create(Context context, java.io.File dir, java.lang.String itemField) throws java.lang.Exception
context - - The DSpace contextdir - - The directory File in the source archiveitemField - - The metadata field in which the Item identifier is located
if null, the default is the handle in the dc.identifier.uri fieldjava.lang.Exceptionpublic Item getItem()
public java.io.File getDirectory()
public java.lang.String getDirectoryName()
public void addUndoMetadataField(org.dspace.app.itemupdate.DtoMetadata dtom)
dtom - public java.util.List<org.dspace.app.itemupdate.DtoMetadata> getMetadataFields()
public void addUndoDeleteContents(int bitstreamId)
bitstreamId - public void writeUndo(java.io.File undoDir)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException,
java.io.FileNotFoundException
undoDir - - the root directory of the undo archivejava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.transform.TransformerConfigurationExceptionjavax.xml.transform.TransformerExceptionjava.io.FileNotFoundExceptionCopyright © 2013 DuraSpace. All Rights Reserved.