|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.itemupdate.ItemArchive
public class ItemArchive
Encapsulates the Item in the context of the DSpace Archive Format
| Field Summary | |
|---|---|
static String |
DUBLIN_CORE_XML
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DUBLIN_CORE_XML
| Method Detail |
|---|
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 field
Exceptionpublic 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 archive
IOException
ParserConfigurationException
TransformerConfigurationException
TransformerException
FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||