Class ProfileFormats

java.lang.Object
org.dspace.curate.AbstractCurationTask
org.dspace.ctask.general.ProfileFormats
All Implemented Interfaces:
CurationTask

@Distributive public class ProfileFormats extends AbstractCurationTask
ProfileFormats is a task that creates a distribution table of Bitstream formats for it's passed object. Primarily a curation task demonstrator.
Author:
richardrodgers
  • Field Details

  • Constructor Details

    • ProfileFormats

      public ProfileFormats()
  • Method Details

    • perform

      public int perform(DSpaceObject dso) throws IOException
      Perform the curation task upon passed DSO
      Specified by:
      perform in interface CurationTask
      Specified by:
      perform in class AbstractCurationTask
      Parameters:
      dso - the DSpace object
      Returns:
      status code
      Throws:
      IOException - if IO error
    • performItem

      protected void performItem(Item item) throws SQLException, IOException
      Description copied from class: AbstractCurationTask
      Performs task upon a single DSpace Item. Used in conjunction with the distribute method to run a single task across multiple Items.

      You should override this method if you want to use distribute to run your task across multiple DSpace Items.

      Either this method or performObject should be overridden if distribute method is used.

      Overrides:
      performItem in class AbstractCurationTask
      Parameters:
      item - the DSpace Item
      Throws:
      SQLException - if database error
      IOException - if IO error