Class 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 Detail

      • status

        protected int status
    • Constructor Detail

      • BitstreamsIntoMetadata

        public BitstreamsIntoMetadata()
    • Method Detail

      • 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.