public class InstallItemServiceImpl extends Object implements InstallItemService
| Modifier and Type | Field and Description |
|---|---|
protected CollectionService |
collectionService |
protected ContentServiceFactory |
contentServiceFactory |
protected EmbargoService |
embargoService |
protected IdentifierService |
identifierService |
protected ItemService |
itemService |
| Modifier | Constructor and Description |
|---|---|
protected |
InstallItemServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
finishItem(Context c,
Item item,
InProgressSubmission is)
Final housekeeping when adding a new Item into the archive.
|
String |
getBitstreamProvenanceMessage(Context context,
Item myitem)
Generate provenance-worthy description of the bitstreams contained in an
item.
|
Item |
installItem(Context c,
InProgressSubmission is)
Take an InProgressSubmission and turn it into a fully-archived Item,
creating a new Handle.
|
Item |
installItem(Context c,
InProgressSubmission is,
String suppliedHandle)
Take an InProgressSubmission and turn it into a fully-archived Item.
|
protected void |
populateMetadata(Context c,
Item item) |
Item |
restoreItem(Context c,
InProgressSubmission is,
String suppliedHandle)
Turn an InProgressSubmission into a fully-archived Item, for
a "restore" operation such as ingestion of an AIP to recreate an
archive.
|
@Autowired(required=true) protected ContentServiceFactory contentServiceFactory
@Autowired(required=true) protected CollectionService collectionService
@Autowired(required=true) protected EmbargoService embargoService
@Autowired(required=true) protected IdentifierService identifierService
@Autowired(required=true) protected ItemService itemService
public Item installItem(Context c, InProgressSubmission is) throws SQLException, AuthorizeException
InstallItemServiceinstallItem in interface InstallItemServicec - DSpace Contextis - submission to installSQLException - if database errorAuthorizeException - if authorization errorpublic Item installItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, AuthorizeException
InstallItemServiceinstallItem in interface InstallItemServicec - current contextis - submission to installsuppliedHandle - the existing Handle to give to the installed itemSQLException - if database errorAuthorizeException - if authorization errorpublic Item restoreItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, IOException, AuthorizeException
InstallItemServicerestoreItem in interface InstallItemServicec - current contextis - submission to installsuppliedHandle - the existing Handle to give the installed item, or null
to create a new one.SQLException - if database errorIOException - if IO errorAuthorizeException - if authorization errorprotected void populateMetadata(Context c, Item item) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionprotected Item finishItem(Context c, Item item, InProgressSubmission is) throws SQLException, AuthorizeException
c - DSpace Contextitem - Item in questionis - InProgressSubmission objectSQLException - if database errorAuthorizeException - if authorization errorpublic String getBitstreamProvenanceMessage(Context context, Item myitem) throws SQLException
InstallItemServicegetBitstreamProvenanceMessage in interface InstallItemServicecontext - contextmyitem - the item to generate description forSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.