public class AddBitstreamsAction extends UpdateBitstreamsAction
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected BitstreamFormatService |
bitstreamFormatService |
protected GroupService |
groupService |
protected InstallItemService |
installItemService |
alterProvenance, bitstreamService, bundleServiceitemService| Constructor and Description |
|---|
AddBitstreamsAction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addBitstream(Context context,
ItemArchive itarch,
Item item,
File dir,
ContentsEntry ce,
boolean suppressUndo,
boolean isTest)
Add bitstream
|
void |
execute(Context context,
ItemArchive itarch,
boolean isTest,
boolean suppressUndo)
Adds bitstreams from the archive as listed in the contents file.
|
getAlterProvenance, setAlterProvenanceprotected AuthorizeService authorizeService
protected BitstreamFormatService bitstreamFormatService
protected GroupService groupService
protected InstallItemService installItemService
public void execute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo) throws IllegalArgumentException, ParseException, IOException, AuthorizeException, SQLException
context - DSpace Contextitarch - Item ArchiveisTest - test flagsuppressUndo - undo flagIOException - if IO errorIllegalArgumentException - if arg exceptionSQLException - if database errorAuthorizeException - if authorization errorParseException - if parse errorprotected String addBitstream(Context context, ItemArchive itarch, Item item, File dir, ContentsEntry ce, boolean suppressUndo, boolean isTest) throws IOException, IllegalArgumentException, SQLException, AuthorizeException, ParseException
context - DSpace Contextitarch - Item Archiveitem - DSpace Itemdir - directoryce - contents entry for bitstreamsuppressUndo - undo flagisTest - test flagIOException - if IO errorIllegalArgumentException - if arg exceptionSQLException - if database errorAuthorizeException - if authorization errorParseException - if parse errorCopyright © 2016 DuraSpace. All rights reserved.