public class InstallItem
extends java.lang.Object
| Constructor and Description |
|---|
InstallItem() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBitstreamProvenanceMessage(Item myitem)
Generate provenance-worthy description of the bitstreams contained in an
item.
|
static Item |
installItem(Context c,
InProgressSubmission is)
Take an InProgressSubmission and turn it into a fully-archived Item,
creating a new Handle.
|
static Item |
installItem(Context c,
InProgressSubmission is,
java.lang.String suppliedHandle)
Take an InProgressSubmission and turn it into a fully-archived Item.
|
static Item |
restoreItem(Context c,
InProgressSubmission is,
java.lang.String suppliedHandle)
Turn an InProgressSubmission into a fully-archived Item, for
a "restore" operation such as ingestion of an AIP to recreate an
archive.
|
public static Item installItem(Context c, InProgressSubmission is) throws java.sql.SQLException, java.io.IOException, AuthorizeException
c - DSpace Contextis - submission to installjava.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic static Item installItem(Context c, InProgressSubmission is, java.lang.String suppliedHandle) throws java.sql.SQLException, java.io.IOException, AuthorizeException
c - current contextis - submission to installsuppliedHandle - the existing Handle to give to the installed itemjava.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic static Item restoreItem(Context c, InProgressSubmission is, java.lang.String suppliedHandle) throws java.sql.SQLException, java.io.IOException, AuthorizeException
c - current contextis - submission to installsuppliedHandle - the existing Handle to give the installed item, or null
to create a new one.java.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionpublic static java.lang.String getBitstreamProvenanceMessage(Item myitem) throws java.sql.SQLException
myitem - the item to generate description forjava.sql.SQLExceptionCopyright © 2013 DuraSpace. All Rights Reserved.