public class ItemArchive extends Object
| Modifier and Type | Field and Description |
|---|---|
static 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,
File dir,
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
|
File |
getDirectory()
Getter for directory in archive on disk
|
String |
getDirectoryName()
Getter for directory name in archive
|
Item |
getItem()
Getter for the DSpace item referenced in the archive
|
List<org.dspace.app.itemupdate.DtoMetadata> |
getMetadataFields()
Getter for list of metadata fields
|
void |
writeUndo(File undoDir)
write undo directory and files to Disk in archive format
|
public static final String DUBLIN_CORE_XML
public static ItemArchive create(Context context, File dir, String itemField) throws 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 fieldExceptionpublic Item getItem()
public File getDirectory()
public String getDirectoryName()
public void addUndoMetadataField(org.dspace.app.itemupdate.DtoMetadata dtom)
dtom - public List<org.dspace.app.itemupdate.DtoMetadata> getMetadataFields()
public void addUndoDeleteContents(int bitstreamId)
bitstreamId - public void writeUndo(File undoDir) throws IOException, ParserConfigurationException, TransformerConfigurationException, TransformerException, FileNotFoundException
undoDir - - the root directory of the undo archiveIOExceptionParserConfigurationExceptionTransformerConfigurationExceptionTransformerExceptionFileNotFoundExceptionCopyright © 2014 DuraSpace. All Rights Reserved.