Class BitstreamsIntoMetadata

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

public class BitstreamsIntoMetadata extends AbstractCurationTask
A curation job to take bitstream URLs and place them into metadata elements.
Author:
Stuart Lewis
  • Field Details

    • status

      protected int status
    • results

      protected List<String> results
  • Constructor Details

    • BitstreamsIntoMetadata

      public BitstreamsIntoMetadata()
  • Method Details

    • perform

      public int perform(DSpaceObject dso)
      Perform the bitstream metadata creation.
      Specified by:
      perform in interface CurationTask
      Specified by:
      perform in class AbstractCurationTask
      Parameters:
      dso - The DSpaceObject to be checked
      Returns:
      The curation task status of the checking
    • logDebugMessage

      protected void logDebugMessage(String message)
      Debugging logging if required
      Parameters:
      message - The message to log
    • addMetadata

      protected void addMetadata(Item item, Bitstream bitstream, String type) throws SQLException
      Add the bitstream metadata to the item
      Parameters:
      item - The item
      bitstream - The bitstream
      type - The type of bitstream
      Throws:
      SQLException - An exception that provides information on a database access error or other errors.