Class VerifyAIP

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

    @Suspendable(invoked=INTERACTIVE)
    public class VerifyAIP
    extends org.dspace.curate.AbstractCurationTask
    VerifyAIP task will simply test for the presence of a replica representation of the object in the remote store. It succeeds if found, otherwise fails.

    This task is "suspendable" when invoked from the UI. This means that if you run a verification from the UI, this task will return an immediate failure once a single object fails the verification. However, when run from the Command-Line this task will run to completion (i.e. even if an object fails it will continue processing to completion).

    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
      VerifyAIP()  
    • 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)
      Performs the "Verify AIP" task.
      int perform​(org.dspace.core.Context ctx, String id)
      Performs the "Verify AIP" task.
      • Methods inherited from class org.dspace.curate.AbstractCurationTask

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

      • VerifyAIP

        public VerifyAIP()
    • 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
        Performs the "Verify AIP" task.

        Simply tests for presence of AIP in replica ObjectStore.

        Specified by:
        perform in interface org.dspace.curate.CurationTask
        Specified by:
        perform in class org.dspace.curate.AbstractCurationTask
        Parameters:
        dso - the DSpace Object to verify
        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
        Performs the "Verify AIP" task.

        Simply tests for presence of AIP in replica ObjectStore.

        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 to verify
        Returns:
        integer which represents Curator return status
        Throws:
        IOException - if I/O error