Class METSRestoreFromAIP

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

    @Distributive
    @Mutative
    public class METSRestoreFromAIP
    extends AbstractPackagerTask
    METSRestoreFromAIP task will instate the METS AIP replica representation of the object in place of the current (repository) one.
    Author:
    tdonohue
    See Also:
    TransmitAIP
    • Field Summary

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

        communityService, configurationService, curator, handleService, itemService, taskId
    • Constructor Detail

      • METSRestoreFromAIP

        public METSRestoreFromAIP()
    • 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.core.Context ctx,
                           String id)
                    throws IOException
        Perform the Restore/Replace task.

        Actually restore/replace an object in the repository with whatever information is contained in the AIP.

        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Overrides:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        ctx - current DSpace Context
        id - the ID of DSpace object to restore/replace
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error
      • perform

        public int perform​(org.dspace.content.DSpaceObject dso)
                    throws IOException
        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Throws:
        IOException