Package org.dspace.app.itemupdate
Class AddBitstreamsAction
java.lang.Object
org.dspace.app.itemupdate.UpdateBitstreamsAction
org.dspace.app.itemupdate.AddBitstreamsAction
- All Implemented Interfaces:
UpdateAction
Action to add bitstreams listed in item contents file to the item in DSpace
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorizeServiceprotected BitstreamFormatServiceprotected GroupServiceprotected InstallItemServiceFields inherited from class org.dspace.app.itemupdate.UpdateBitstreamsAction
alterProvenance, bitstreamService, bundleServiceFields inherited from interface org.dspace.app.itemupdate.UpdateAction
itemService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddBitstream(Context context, ItemArchive itarch, Item item, File dir, ContentsEntry ce, boolean suppressUndo, boolean isTest) Add bitstreamvoidexecute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo) Adds bitstreams from the archive as listed in the contents file.Methods inherited from class org.dspace.app.itemupdate.UpdateBitstreamsAction
getAlterProvenance, setAlterProvenance
-
Field Details
-
authorizeService
-
bitstreamFormatService
-
groupService
-
installItemService
-
-
Constructor Details
-
AddBitstreamsAction
public AddBitstreamsAction()
-
-
Method Details
-
execute
public void execute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo) throws IllegalArgumentException, ParseException, IOException, AuthorizeException, SQLException Adds bitstreams from the archive as listed in the contents file.- Parameters:
context- DSpace Contextitarch- Item ArchiveisTest- test flagsuppressUndo- undo flag- Throws:
IOException- if IO errorIllegalArgumentException- if arg exceptionSQLException- if database errorAuthorizeException- if authorization errorParseException- if parse error
-
addBitstream
protected String addBitstream(Context context, ItemArchive itarch, Item item, File dir, ContentsEntry ce, boolean suppressUndo, boolean isTest) throws IOException, IllegalArgumentException, SQLException, AuthorizeException, ParseException Add bitstream- Parameters:
context- DSpace Contextitarch- Item Archiveitem- DSpace Itemdir- directoryce- contents entry for bitstreamsuppressUndo- undo flagisTest- test flag- Returns:
- bundle name
- Throws:
IOException- if IO errorIllegalArgumentException- if arg exceptionSQLException- if database errorAuthorizeException- if authorization errorParseException- if parse error
-