Class FetchAIP

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

    public class FetchAIP
    extends org.dspace.curate.AbstractCurationTask
    FetchAIP task will simply retrieve replica representations of the object into the local staging area.
    Author:
    richardrodgers
    See Also:
    TransmitAIP
    • Field Summary

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

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

      Constructors 
      Constructor Description
      FetchAIP()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(org.dspace.curate.Curator curator, String taskId)  
      int perform​(org.dspace.content.DSpaceObject dso)
      Perform the 'Fetch AIP' task
      int perform​(org.dspace.core.Context ctx, String id)
      Perform the 'Fetch AIP' task
      • Methods inherited from class org.dspace.curate.AbstractCurationTask

        dereference, distribute, performItem, performObject, report, setResult, taskArrayProperty, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
    • Constructor Detail

      • FetchAIP

        public FetchAIP()
    • 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 'Fetch AIP' task
        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        dso - DSpace Object to perform on
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error
      • perform

        public int perform​(org.dspace.core.Context ctx,
                           String id)
                    throws IOException
        Perform the 'Fetch AIP' task
        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Overrides:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        ctx - DSpace Context
        id - ID of object whose AIP should be fetched
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error