Package org.dspace.app.itemupdate
Class AddBitstreamsAction
- java.lang.Object
-
- org.dspace.app.itemupdate.UpdateBitstreamsAction
-
- org.dspace.app.itemupdate.AddBitstreamsAction
-
- All Implemented Interfaces:
UpdateAction
public class AddBitstreamsAction extends UpdateBitstreamsAction
Action to add bitstreams listed in item contents file to the item in DSpace
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorizeServiceauthorizeServiceprotected BitstreamFormatServicebitstreamFormatServiceprotected GroupServicegroupServiceprotected InstallItemServiceinstallItemService-
Fields inherited from class org.dspace.app.itemupdate.UpdateBitstreamsAction
alterProvenance, bitstreamService, bundleService
-
Fields inherited from interface org.dspace.app.itemupdate.UpdateAction
itemService
-
-
Constructor Summary
Constructors Constructor Description AddBitstreamsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
authorizeService
protected AuthorizeService authorizeService
-
bitstreamFormatService
protected BitstreamFormatService bitstreamFormatService
-
groupService
protected GroupService groupService
-
installItemService
protected InstallItemService installItemService
-
-
Method Detail
-
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
-
-