Package org.dspace.ctask.replicate
Class BagItRestoreFromAIP
- java.lang.Object
-
- org.dspace.curate.AbstractCurationTask
-
- org.dspace.ctask.replicate.BagItRestoreFromAIP
-
- All Implemented Interfaces:
org.dspace.curate.CurationTask
@Distributive @Mutative public class BagItRestoreFromAIP extends org.dspace.curate.AbstractCurationTaskBagItRestoreFromAIP task performs essentially an 'undelete' on an object that has been deleted from the repository, using the replica copy. If the object is a container, it recovers all its children/members.- Author:
- richardrodgers
- See Also:
TransmitAIP
-
-
Constructor Summary
Constructors Constructor Description BagItRestoreFromAIP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.dspace.curate.Curator curator, String taskId)intperform(org.dspace.content.DSpaceObject dso)Perform 'Recover From AIP' task on a particular object.intperform(org.dspace.core.Context ctx, String id)Perform 'Recover From AIP' task by retrieving an object package of a particular ID (name) and restoring it to the current DSpace Context.
-
-
-
Method Detail
-
init
public void init(org.dspace.curate.Curator curator, String taskId) throws IOException- Specified by:
initin interfaceorg.dspace.curate.CurationTask- Overrides:
initin classorg.dspace.curate.AbstractCurationTask- Throws:
IOException
-
perform
public int perform(org.dspace.content.DSpaceObject dso) throws IOExceptionPerform 'Recover From AIP' task on a particular object. If thedsois aSite, attempt to restore the Site and child objects. Otherwise this method returns an exception.- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Specified by:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
dso- DSpace Object to recover- Returns:
- integer which represents Curator return status
- Throws:
IOException- if IO error
-
perform
public int perform(org.dspace.core.Context ctx, String id) throws IOExceptionPerform 'Recover From AIP' task by retrieving an object package of a particular ID (name) and restoring it to the current DSpace Context.- Specified by:
performin interfaceorg.dspace.curate.CurationTask- Overrides:
performin classorg.dspace.curate.AbstractCurationTask- Parameters:
ctx- current DSpace contextid- identifier of object to restore- Returns:
- integer which represents Curator return status
- Throws:
IOException- if IO error
-
-