Package org.dspace.content.service
Interface InstallItemService
- All Known Implementing Classes:
InstallItemServiceImpl
public interface InstallItemService
Support to install an Item in the archive.
- Version:
- $Revision$
- Author:
- dstuve
-
Method Summary
Modifier and TypeMethodDescriptiongetBitstreamProvenanceMessage(Context context, Item myitem) Generate provenance-worthy description of the bitstreams contained in an item.getSubmittedByProvenanceMessage(Context context, Item item) Generate provenance description of direct item submission (not through workflow).installItem(Context context, InProgressSubmission is) Take an InProgressSubmission and turn it into a fully-archived Item, creating a new Handle.installItem(Context c, InProgressSubmission is, String suppliedHandle) Take an InProgressSubmission and turn it into a fully-archived 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.
-
Method Details
-
installItem
Take an InProgressSubmission and turn it into a fully-archived Item, creating a new Handle.- Parameters:
context- DSpace Contextis- submission to install- Returns:
- the fully archived Item
- Throws:
SQLException- if database errorAuthorizeException- if authorization error
-
installItem
Item installItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, IOException, AuthorizeException Take an InProgressSubmission and turn it into a fully-archived Item.- Parameters:
c- current contextis- submission to installsuppliedHandle- the existing Handle to give to the installed item- Returns:
- the fully archived Item
- Throws:
IOException- if IO errorSQLException- if database errorAuthorizeException- if authorization error
-
restoreItem
Item restoreItem(Context c, InProgressSubmission is, String suppliedHandle) throws SQLException, IOException, AuthorizeException Turn an InProgressSubmission into a fully-archived Item, for a "restore" operation such as ingestion of an AIP to recreate an archive. This does NOT add any descriptive metadata (e.g. for provenance) to preserve the transparency of the ingest. The ingest mechanism is assumed to have set all relevant technical and administrative metadata fields.- Parameters:
c- current contextis- submission to installsuppliedHandle- the existing Handle to give the installed item, or null to create a new one.- Returns:
- the fully archived Item
- Throws:
IOException- if IO errorSQLException- if database errorAuthorizeException- if authorization error
-
getBitstreamProvenanceMessage
Generate provenance-worthy description of the bitstreams contained in an item.- Parameters:
context- contextmyitem- the item to generate description for- Returns:
- provenance description
- Throws:
SQLException- if database error
-
getSubmittedByProvenanceMessage
Generate provenance description of direct item submission (not through workflow).- Parameters:
context- contextitem- the item to generate description for- Returns:
- provenance description
- Throws:
SQLException- if database error
-