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) |
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 installSQLExceptionAuthorizeExceptionpublic 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 itemSQLExceptionAuthorizeExceptionpublic 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.SQLExceptionIOExceptionAuthorizeExceptionprotected void populateMetadata(Context c, Item item) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionprotected Item finishItem(Context c, Item item, InProgressSubmission is) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionpublic String getBitstreamProvenanceMessage(Context context, Item myitem) throws SQLException
InstallItemServicegetBitstreamProvenanceMessage in interface InstallItemServicemyitem - the item to generate description forSQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.