org.dspace.app.itemupdate
Class DeleteBitstreamsByFilterAction

java.lang.Object
  extended by org.dspace.app.itemupdate.UpdateBitstreamsAction
      extended by 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


Field Summary
 
Fields inherited from class org.dspace.app.itemupdate.UpdateBitstreamsAction
alterProvenance
 
Constructor Summary
DeleteBitstreamsByFilterAction()
           
 
Method Summary
 void execute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo)
          Delete bitstream
 BitstreamFilter getBitstreamFilter()
          Get filter
 void setBitstreamFilter(BitstreamFilter filter)
          Set filter
 
Methods inherited from class org.dspace.app.itemupdate.UpdateBitstreamsAction
getAlterProvenance, setAlterProvenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteBitstreamsByFilterAction

public DeleteBitstreamsByFilterAction()
Method Detail

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.