Class BagItReplaceWithAIP

  • All Implemented Interfaces:
    org.dspace.curate.CurationTask

    @Mutative
    public class BagItReplaceWithAIP
    extends org.dspace.curate.AbstractCurationTask
    BagItReplaceWithAIP task will instate the replica representation of the object in place of the current (repository) one.
    Author:
    richardrodgers
    See Also:
    TransmitAIP
    • Field Summary

      • Fields inherited from class org.dspace.curate.AbstractCurationTask

        configurationService, curator, handleService, taskId
    • Constructor Detail

      • BagItReplaceWithAIP

        public BagItReplaceWithAIP()
    • Method Detail

      • init

        public void init​(org.dspace.curate.Curator curator,
                         String taskId)
                  throws IOException
        Specified by:
        init in interface org.dspace.curate.CurationTask
        Overrides:
        init in class org.dspace.curate.AbstractCurationTask
        Throws:
        IOException
      • perform

        public int perform​(org.dspace.content.DSpaceObject dso)
                    throws IOException
        Perform the 'Replace with AIP' task.

        Actually overwrite any existing object data in the repository with whatever information is contained in the AIP.

        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        dso - the DSpace object to replace
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error