org.dspace.app.itemupdate
Class DeleteBitstreamsByFilterAction
java.lang.Object
org.dspace.app.itemupdate.UpdateBitstreamsAction
org.dspace.app.itemupdate.DeleteBitstreamsByFilterAction
- All Implemented Interfaces:
- UpdateAction
public class DeleteBitstreamsByFilterAction
- extends UpdateBitstreamsAction
Action to delete bitstreams using a specified filter implementing BitstreamFilter
Derivatives for the target bitstreams are not deleted.
The dc.description.provenance field is amended to reflect the deletions
Note: Multiple filters are impractical if trying to manage multiple properties files
in a commandline environment
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteBitstreamsByFilterAction
public DeleteBitstreamsByFilterAction()
setBitstreamFilter
public void setBitstreamFilter(BitstreamFilter filter)
- Set filter
- Parameters:
filter -
getBitstreamFilter
public BitstreamFilter getBitstreamFilter()
- Get filter
- Returns:
- filter
execute
public void execute(Context context,
ItemArchive itarch,
boolean isTest,
boolean suppressUndo)
throws AuthorizeException,
BitstreamFilterException,
IOException,
ParseException,
SQLException
- Delete bitstream
- Parameters:
context - ItemArchive - isTest - suppressUndo -
- Throws:
IllegalArgumentException
ParseException
IOException
AuthorizeException
SQLException
BitstreamFilterException
Copyright © 2010 DuraSpace. All Rights Reserved.