Class BitstreamFilter

java.lang.Object
org.dspace.app.itemupdate.BitstreamFilter
Direct Known Subclasses:
BitstreamFilterByBundleName, BitstreamFilterByFilename, OriginalWithDerivativesBitstreamFilter

public abstract class BitstreamFilter extends Object
Filter interface to be used by ItemUpdate to determine which bitstreams in an Item acceptable for removal.
  • Field Details

  • Constructor Details

    • BitstreamFilter

      public BitstreamFilter()
  • Method Details

    • accept

      public abstract boolean accept(Bitstream bitstream) throws BitstreamFilterException
      The filter method
      Parameters:
      bitstream - Bitstream
      Returns:
      whether the bitstream matches the criteria
      Throws:
      BitstreamFilterException - if filter error
    • initProperties

      public void initProperties(String filepath) throws IOException
      Parameters:
      filepath - - The complete path for the properties file
      Throws:
      IOException - if IO error